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

Revert "Space admins can create "Menu/Product Groups" and reorder them for display on their marketplace" #2422

Merged
merged 1 commit into from
May 24, 2024

Conversation

anaulin
Copy link
Member

@anaulin anaulin commented May 24, 2024

Reverts #2361

This PR cannot be released as-is, because the migration it contains fails with:

rake aborted!
StandardError: An error has occurred, all later migrations canceled: (StandardError)
PG::UndefinedColumn: ERROR:  column "bazaar_id" does not exist
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `exec'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `block (2 levels) in raw_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:1024:in `block in with_raw_connection'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:996:in `with_raw_connection'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:52:in `block in raw_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:1134:in `log'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:51:in `raw_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:519:in `internal_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:131:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:25:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:45:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:470:in `add_index'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration/default_strategy.rb:10:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1043:in `block in method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1013:in `block in say_with_time'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1013:in `say_with_time'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1032:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:17:in `block (2 levels) in method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/checker.rb:101:in `perform'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:16:in `block in method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:15:in `catch'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:15:in `method_missing'
/app/db/migrate/20240514174529_add_position_index_to_marketplace_tags.rb:5:in `change'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:982:in `exec_migration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:966:in `block (2 levels) in migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:965:in `block in migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:229:in `with_connection'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:964:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:5:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1174:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1525:in `block in execute_migration_in_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1578:in `ddl_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migrator.rb:4:in `ddl_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1524:in `execute_migration_in_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1499:in `each'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1499:in `migrate_without_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1444:in `block in migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1596:in `with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1444:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1270:in `up'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1245:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:243:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/database_tasks.rb:5:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:196:in `block (2 levels) in prepare_all'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:518:in `with_temporary_pool'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:180:in `block in prepare_all'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:562:in `block (2 levels) in each_current_configuration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:559:in `each'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:559:in `block in each_current_configuration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:558:in `each'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:558:in `each_current_configuration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:179:in `prepare_all'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/railties/databases.rake:399:in `block (2 levels) in <main>'
Caused by:
ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR:  column "bazaar_id" does not exist (ActiveRecord::StatementInvalid)
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `exec'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `block (2 levels) in raw_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:1024:in `block in with_raw_connection'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:996:in `with_raw_connection'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:52:in `block in raw_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:1134:in `log'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:51:in `raw_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:519:in `internal_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:131:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:25:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:45:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:470:in `add_index'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration/default_strategy.rb:10:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1043:in `block in method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1013:in `block in say_with_time'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1013:in `say_with_time'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1032:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:17:in `block (2 levels) in method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/checker.rb:101:in `perform'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:16:in `block in method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:15:in `catch'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:15:in `method_missing'
/app/db/migrate/20240514174529_add_position_index_to_marketplace_tags.rb:5:in `change'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:982:in `exec_migration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:966:in `block (2 levels) in migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:965:in `block in migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:229:in `with_connection'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:964:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:5:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1174:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1525:in `block in execute_migration_in_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1578:in `ddl_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migrator.rb:4:in `ddl_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1524:in `execute_migration_in_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1499:in `each'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1499:in `migrate_without_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1444:in `block in migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1596:in `with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1444:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1270:in `up'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1245:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:243:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/database_tasks.rb:5:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:196:in `block (2 levels) in prepare_all'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:518:in `with_temporary_pool'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:180:in `block in prepare_all'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:562:in `block (2 levels) in each_current_configuration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:559:in `each'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:559:in `block in each_current_configuration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:558:in `each'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:558:in `each_current_configuration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:179:in `prepare_all'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/railties/databases.rake:399:in `block (2 levels) in <main>'
Caused by:
PG::UndefinedColumn: ERROR:  column "bazaar_id" does not exist (PG::UndefinedColumn)
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `exec'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `block (2 levels) in raw_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:1024:in `block in with_raw_connection'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:996:in `with_raw_connection'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:52:in `block in raw_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:1134:in `log'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:51:in `raw_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:519:in `internal_execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:131:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:25:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:45:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:470:in `add_index'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration/default_strategy.rb:10:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1043:in `block in method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1013:in `block in say_with_time'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1013:in `say_with_time'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1032:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:17:in `block (2 levels) in method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/checker.rb:101:in `perform'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:16:in `block in method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:15:in `catch'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:15:in `method_missing'
/app/db/migrate/20240514174529_add_position_index_to_marketplace_tags.rb:5:in `change'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:982:in `exec_migration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:966:in `block (2 levels) in migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:965:in `block in migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:229:in `with_connection'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:964:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migration.rb:5:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1174:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1525:in `block in execute_migration_in_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1578:in `ddl_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/migrator.rb:4:in `ddl_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1524:in `execute_migration_in_transaction'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1499:in `each'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1499:in `migrate_without_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1444:in `block in migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1596:in `with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1444:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1270:in `up'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/migration.rb:1245:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:243:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/strong_migrations-1.8.0/lib/strong_migrations/database_tasks.rb:5:in `migrate'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:196:in `block (2 levels) in prepare_all'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:518:in `with_temporary_pool'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:180:in `block in prepare_all'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:562:in `block (2 levels) in each_current_configuration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:559:in `each'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:559:in `block in each_current_configuration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:558:in `each'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:558:in `each_current_configuration'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/tasks/database_tasks.rb:179:in `prepare_all'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.1/lib/active_record/railties/databases.rake:399:in `block (2 levels) in <main>'
Tasks: TOP => db:prepare
(See full trace by running task with --trace)
D, [2024-05-24T01:46:34.067542 #16] DEBUG -- sentry: Sentry HTTP Transport will connect to https://o268108.ingest.sentry.io
D, [2024-05-24T01:46:34.067774 #16] DEBUG -- sentry: Initializing the Sentry background worker with 8 threads
E, [2024-05-24T01:46:34.344375 #16] ERROR -- : uninitialized constant CardComponentPreview
E, [2024-05-24T01:46:34.344415 #16] ERROR -- : uninitialized constant AlertComponentPreview
E, [2024-05-24T01:46:34.344427 #16] ERROR -- : uninitialized constant ButtonComponentPreview
E, [2024-05-24T01:46:34.348419 #16] ERROR -- : uninitialized constant Marketplace::ProductComponentPreview
E, [2024-05-24T01:46:34.348451 #16] ERROR -- : uninitialized constant Marketplace::TaxRateComponentPreview
E, [2024-05-24T01:46:34.348464 #16] ERROR -- : uninitialized constant Marketplace::StripeOverviewComponentPreview
D, [2024-05-24T01:46:34.659586 #16] DEBUG -- :    (0.8ms)  SELECT pg_try_advisory_lock(5229527196001863195)
D, [2024-05-24T01:46:34.662126 #16] DEBUG -- :   ActiveRecord::SchemaMigration Load (2.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
D, [2024-05-24T01:46:34.667158 #16] DEBUG -- :   ActiveRecord::InternalMetadata Load (2.2ms)  SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1  [[nil, "environment"]]
I, [2024-05-24T01:46:34.667366 #16]  INFO -- : Migrating to AddPositionIndexToMarketplaceTags (20240514174529)
== 20240514174529 AddPositionIndexToMarketplaceTags: migrating ================
D, [2024-05-24T01:46:34.672714 #16] DEBUG -- :    (1.9ms)  SHOW server_version_num
D, [2024-05-24T01:46:34.673628 #16] DEBUG -- :    (0.7ms)  SET statement_timeout TO 3600000
D, [2024-05-24T01:46:34.674349 #16] DEBUG -- :    (0.6ms)  SET lock_timeout TO 10000
D, [2024-05-24T01:46:34.675078 #16] DEBUG -- :    (0.7ms)  SHOW lock_timeout
-- add_index(:marketplace_tags, [:bazaar_id, :position], {:unique=>true, :algorithm=>:concurrently})
D, [2024-05-24T01:46:34.677597 #16] DEBUG -- :    (1.3ms)  CREATE UNIQUE INDEX CONCURRENTLY "index_marketplace_tags_on_bazaar_id_and_position" ON "marketplace_tags" ("bazaar_id", "position")
D, [2024-05-24T01:46:34.678854 #16] DEBUG -- :    (1.2ms)  SELECT pg_advisory_unlock(5229527196001863195)
I, [2024-05-24T01:46:34.684847 #16]  INFO -- sentry: [Transport] Sending envelope with items [event] 5191fb7dcd184c688c46051d2315921f to Sentry
D, [2024-05-24T01:46:34.686675 #16] DEBUG -- sentry: Killing session flusher
D, [2024-05-24T01:46:34.686728 #16] DEBUG -- sentry: Shutting down background worker

I believe the problem is that AddPositionIndexToMarketplaceTags is trying to add an index based on bazaar_id, which is a column that no longer exists in the database.

@anaulin anaulin requested a review from rosschapman May 24, 2024 02:02
@anaulin anaulin merged commit 6e58f3c into main May 24, 2024
3 checks passed
@anaulin anaulin deleted the revert-2361-tag-sections branch May 24, 2024 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant