Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2024-07-22 (3) #8471

Merged
merged 4 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: true

# This is a data migration. It does not change the schema.
class RemoveMapConfigsWithoutMappable < ActiveRecord::Migration[7.0]
class MapConfig < ApplicationRecord
self.table_name = 'maps_map_configs'
end

class Layer < ApplicationRecord
self.table_name = 'maps_layers'

belongs_to :map_config, class_name: 'MapConfig'
end

def change
map_configs = MapConfig.where(mappable_id: nil, mappable_type: nil)
layers = Layer.where(map_config: map_configs)

layers.delete_all
map_configs.delete_all
end
end
3 changes: 2 additions & 1 deletion back/db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7510,6 +7510,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20240516113700'),
('20240606112752'),
('20240612134240'),
('202407081751');
('202407081751'),
('20240722090955');


6 changes: 0 additions & 6 deletions front/cypress/e2e/folder_page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ describe('Project selection page', () => {
cy.get('#e2e-folder-page');
});

it('shows where you are', () => {
cy.get('.e2e-projects-dropdown-link')
.should('have.class', 'active')
.should('be.visible');
});

it('shows the folder title', () => {
cy.get('#e2e-folder-title').contains(folderTitle);
});
Expand Down