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

Feature/versioning #779

Closed
wants to merge 3 commits into from
Closed

Feature/versioning #779

wants to merge 3 commits into from

Conversation

Allenskywalker92
Copy link
Contributor

  • rather 1-story 1-commit than sub-atomic commits

  • commit title is meaningful => git history search

  • commit description is helpful => helps the reviewer to understand the changes

  • code is up-to-date with the latest developments of the target branch (rebased to it or whatever) => ⏩-merge for linear history is favoured

  • added code is linted

  • tests are passing (at least locally): we still have some random test failure on CI. thinking of asking spec/examples.txt to be commited

  • in case the changes are visible to the end-user,  video or screenshots should be added to the PR => helps with user testing

  • testing coverage improvement is improved.

  • CHANGELOG :  add a bullet point on top (optional: reference to github issue/PR )

  • parallele PR for documentation  on docusaurus  if the feature/fix is tagged for a release

@Allenskywalker92 Allenskywalker92 self-assigned this Jul 4, 2022
@ptrxyz
Copy link
Contributor

ptrxyz commented Jul 6, 2022

I find that this PR makes it so, that we can't run any rake tasks at build time as there is no database available and the initalizer seems to require one.
Can we have that behavior changed so that no database is needed for tasks that are run at container build time?
That's rake assets:precompile and rake webpacker:compile (as of now, maybe others at some point).

@ptrxyz
Copy link
Contributor

ptrxyz commented Jul 6, 2022

Additional Info:
this PR does not work when we build Docker images. When it comes to building the images, the last step is to run rake assets:precompile and rake webpacker:compile, as those are time consuming steps and we do not want those steps to always run when creating a container from the image.

My theory - and this can also just be complete and utter garbage - is this:
I assume that is because rake loads the whole/most of the rails app and thus at some point runs into the eln_features initializer that then seems to require a database connection. Of course during build time there is no such thing.

The log of the relevant error that occurs is this:
#28 [24/25] RUN cd /chemotion/app &&     export SECRET_KEY_BASE=build &&     export RAILS_ENV=development &&     export NODE_OPTIONS="--max-old-space-size=8192" && rake assets:precompile
#28 7.386 could not translate host name "db" to address: Name or service not known
#28 7.394 rake aborted!
#28 7.394 PG::ConnectionBad: could not translate host name "db" to address: Name or service not known
#28 7.394 /cache/bundle/ruby/2.6.0/gems/pg-0.20.0/lib/pg.rb:56:in `initialize'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/pg-0.20.0/lib/pg.rb:56:in `new'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/pg-0.20.0/lib/pg.rb:56:in `connect'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:692:in `connect'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:223:in `initialize'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:48:in `new'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:48:in `postgresql_connection'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in `new_connection'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in `checkout_new_connection'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in `try_to_checkout_new_connection'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in `acquire_connection'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in `checkout'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in `retrieve_connection'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_handling.rb:90:in `connection'
#28 7.394 /chemotion/app/config/initializers/eln_features.rb:8:in `block in <main>'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/railtie.rb:216:in `instance_eval'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/railtie.rb:216:in `configure'
#28 7.394 /chemotion/app/config/initializers/eln_features.rb:5:in `<main>'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:285:in `block in load'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:285:in `load'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:663:in `block in load_config_initializer'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/notifications.rb:170:in `instrument'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:662:in `load_config_initializer'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:619:in `each'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/engine.rb:619:in `block in <class:Engine>'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:32:in `instance_exec'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:32:in `run'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:61:in `block in run_initializers'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:50:in `each'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:50:in `tsort_each_child'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/initializable.rb:60:in `run_initializers'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:361:in `initialize!'
#28 7.394 /chemotion/app/config/environment.rb:5:in `<main>'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `block in require'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `require'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:337:in `require_environment!'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:520:in `block in run_tasks_blocks'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:61:in `block (2 levels) in define'
#28 7.394 Tasks: TOP => environment
#28 7.394 (See full trace by running task with --trace)
#28 ERROR: executor failed running [/bin/bash -c cd /chemotion/app &&     export SECRET_KEY_BASE=build &&     export RAILS_ENV=development &&     export NODE_OPTIONS="--max-old-space-size=8192" &&     [[ ! -f /chemotion/app/config/klasses.json ]] && echo '[]' > /chemotion/app/config/klasses.json || true &&     cp $(bundle show ketcherails)/app/assets/javascripts/ketcherails/ui/ui.js.erb /tmp/ui.js.bak &&     sed -i 's/Ketcherails::TemplateCategory.with_approved_templates.pluck(:id)/[]/g' $(bundle show ketcherails)/app/assets/javascripts/ketcherails/ui/ui.js.erb &&     rake assets:precompile &&     mv /tmp/ui.js.bak $(bundle show ketcherails)/app/assets/javascripts/ketcherails/ui/ui.js.erb]: exit code: 1
------
 > [24/25] RUN cd /chemotion/app &&     export SECRET_KEY_BASE=build &&     export RAILS_ENV=development &&     export NODE_OPTIONS="--max-old-space-size=8192" &&     [[ ! -f /chemotion/app/config/klasses.json ]] && echo '[]' > /chemotion/app/config/klasses.json || true &&     cp $(bundle show ketcherails)/app/assets/javascripts/ketcherails/ui/ui.js.erb /tmp/ui.js.bak &&     sed -i 's/Ketcherails::TemplateCategory.with_approved_templates.pluck(:id)/[]/g' $(bundle show ketcherails)/app/assets/javascripts/ketcherails/ui/ui.js.erb &&     rake assets:precompile &&     mv /tmp/ui.js.bak $(bundle show ketcherails)/app/assets/javascripts/ketcherails/ui/ui.js.erb:
#28 7.394 /cache/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `block in require'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `require'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:337:in `require_environment!'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:520:in `block in run_tasks_blocks'
#28 7.394 /cache/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:61:in `block (2 levels) in define'
#28 7.394 Tasks: TOP => environment
#28 7.394 (See full trace by running task with --trace)

@ptrxyz
Copy link
Contributor

ptrxyz commented Jul 6, 2022

Using this with an empty database fails, running the migrations again seems to fix it, but that's not how it should be.
So rake db:create followed by rake db:migrate results in this:

SUPER LONG LOG IS HERE
eln_1  | == 20171019102800 ChangeColumnReactionsTemperature: migrating =================
eln_1  | rake aborted!
eln_1  | StandardError: An error has occurred, this and all later migrations canceled:
eln_1  |
eln_1  | PG::UndefinedColumn: ERROR:  column reactions.tmp does not exist
eln_1  | LINE 1: ...actions"."short_label", "reactions"."created_by", "reactions...
eln_1  |                                                              ^
eln_1  | : SELECT  "reactions"."id", "reactions"."name", "reactions"."created_at", "reactions"."updated_at", "reactions"."description", "reactions"."timestamp_start", "reactions"."timestamp_stop", "reactions"."observation", "reactions"."purification", "reactions"."dangerous_products", "reactions"."tlc_solvents", "reactions"."tlc_description", "reactions"."rf_value", "reactions"."temperature", "reactions"."status", "reactions"."reaction_svg_file", "reactions"."solvent", "reactions"."deleted_at", "reactions"."short_label", "reactions"."created_by", "reactions"."tmp" FROM "reactions" ORDER BY "reactions"."id" ASC LIMIT $1
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:677:in `prepare'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:677:in `block in prepare_statement'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in `prepare_statement'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:617:in `exec_cache'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:600:in `execute_and_clear'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:81:in `exec_query'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:482:in `select_prepared'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:68:in `select_all'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/query_cache.rb:106:in `select_all'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/querying.rb:41:in `find_by_sql'
eln_1  | /cache/bundle/ruby/2.6.0/gems/bullet-6.0.0/lib/bullet/active_record52.rb:18:in `find_by_sql'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:560:in `block in exec_queries'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:581:in `block in skip_query_cache_if_necessary'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/query_cache.rb:78:in `uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/query_cache.rb:21:in `uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/delegation.rb:97:in `block in uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:281:in `scoping'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/delegation.rb:97:in `uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:580:in `skip_query_cache_if_necessary'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:547:in `exec_queries'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:422:in `load'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:200:in `records'
eln_1  | /cache/bundle/ruby/2.6.0/gems/bullet-6.0.0/lib/bullet/active_record52.rb:43:in `records'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:224:in `block in in_batches'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:222:in `loop'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:222:in `in_batches'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:135:in `find_in_batches'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:69:in `find_each'
eln_1  | /chemotion/app/db/migrate/20171019102800_change_column_reactions_temperature.rb:5:in `up'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:817:in `exec_migration'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:797:in `block in migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `with_connection'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:796:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:977:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `block in ddl_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:212:in `transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `ddl_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `each'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `migrate_without_lock'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `block in migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1363:in `with_advisory_lock'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1036:in `up'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1011:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
eln_1  | /cache/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
eln_1  | /asdf/installs/ruby/2.6.10/bin/bundle:23:in `load'
eln_1  | /asdf/installs/ruby/2.6.10/bin/bundle:23:in `<main>'
eln_1  |
eln_1  | Caused by:
eln_1  | ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR:  column reactions.tmp does not exist
eln_1  | LINE 1: ...actions"."short_label", "reactions"."created_by", "reactions...
eln_1  |                                                              ^
eln_1  | : SELECT  "reactions"."id", "reactions"."name", "reactions"."created_at", "reactions"."updated_at", "reactions"."description", "reactions"."timestamp_start", "reactions"."timestamp_stop", "reactions"."observation", "reactions"."purification", "reactions"."dangerous_products", "reactions"."tlc_solvents", "reactions"."tlc_description", "reactions"."rf_value", "reactions"."temperature", "reactions"."status", "reactions"."reaction_svg_file", "reactions"."solvent", "reactions"."deleted_at", "reactions"."short_label", "reactions"."created_by", "reactions"."tmp" FROM "reactions" ORDER BY "reactions"."id" ASC LIMIT $1
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:677:in `prepare'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:677:in `block in prepare_statement'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in `prepare_statement'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:617:in `exec_cache'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:600:in `execute_and_clear'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:81:in `exec_query'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:482:in `select_prepared'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:68:in `select_all'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/query_cache.rb:106:in `select_all'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/querying.rb:41:in `find_by_sql'
eln_1  | /cache/bundle/ruby/2.6.0/gems/bullet-6.0.0/lib/bullet/active_record52.rb:18:in `find_by_sql'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:560:in `block in exec_queries'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:581:in `block in skip_query_cache_if_necessary'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/query_cache.rb:78:in `uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/query_cache.rb:21:in `uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/delegation.rb:97:in `block in uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:281:in `scoping'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/delegation.rb:97:in `uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:580:in `skip_query_cache_if_necessary'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:547:in `exec_queries'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:422:in `load'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:200:in `records'
eln_1  | /cache/bundle/ruby/2.6.0/gems/bullet-6.0.0/lib/bullet/active_record52.rb:43:in `records'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:224:in `block in in_batches'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:222:in `loop'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:222:in `in_batches'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:135:in `find_in_batches'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:69:in `find_each'
eln_1  | /chemotion/app/db/migrate/20171019102800_change_column_reactions_temperature.rb:5:in `up'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:817:in `exec_migration'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:797:in `block in migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `with_connection'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:796:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:977:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `block in ddl_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:212:in `transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `ddl_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `each'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `migrate_without_lock'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `block in migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1363:in `with_advisory_lock'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1036:in `up'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1011:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
eln_1  | /cache/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
eln_1  | /asdf/installs/ruby/2.6.10/bin/bundle:23:in `load'
eln_1  | /asdf/installs/ruby/2.6.10/bin/bundle:23:in `<main>'
eln_1  |
eln_1  | Caused by:
eln_1  | PG::UndefinedColumn: ERROR:  column reactions.tmp does not exist
eln_1  | LINE 1: ...actions"."short_label", "reactions"."created_by", "reactions...
eln_1  |                                                              ^
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:677:in `prepare'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:677:in `block in prepare_statement'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in `prepare_statement'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:617:in `exec_cache'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql_adapter.rb:600:in `execute_and_clear'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:81:in `exec_query'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:482:in `select_prepared'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:68:in `select_all'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/query_cache.rb:106:in `select_all'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/querying.rb:41:in `find_by_sql'
eln_1  | /cache/bundle/ruby/2.6.0/gems/bullet-6.0.0/lib/bullet/active_record52.rb:18:in `find_by_sql'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:560:in `block in exec_queries'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:581:in `block in skip_query_cache_if_necessary'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/query_cache.rb:78:in `uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/query_cache.rb:21:in `uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/delegation.rb:97:in `block in uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:281:in `scoping'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/delegation.rb:97:in `uncached'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:580:in `skip_query_cache_if_necessary'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:547:in `exec_queries'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:422:in `load'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:200:in `records'
eln_1  | /cache/bundle/ruby/2.6.0/gems/bullet-6.0.0/lib/bullet/active_record52.rb:43:in `records'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:224:in `block in in_batches'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:222:in `loop'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:222:in `in_batches'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:135:in `find_in_batches'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/batches.rb:69:in `find_each'
eln_1  | /chemotion/app/db/migrate/20171019102800_change_column_reactions_temperature.rb:5:in `up'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:817:in `exec_migration'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:797:in `block in migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `with_connection'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:796:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:977:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `block in ddl_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:212:in `transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `ddl_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `each'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `migrate_without_lock'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `block in migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1363:in `with_advisory_lock'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1036:in `up'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1011:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
eln_1  | /cache/bundle/ruby/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
eln_1  | /cache/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
eln_1  | /asdf/installs/ruby/2.6.10/bin/bundle:23:in `load'
eln_1  | /asdf/installs/ruby/2.6.10/bin/bundle:23:in `<main>'
eln_1  | Tasks: TOP => db:migrate
eln_1  | (See full trace by running task with --trace)
eln_1  | You have 141 pending migrations:
eln_1  |   20171019102800 ChangeColumnReactionsTemperature
eln_1  |   20171121171212 AddUniqCollectionsElements
eln_1  |   20171220140635 AddSiRxnSettingsToReport
eln_1  |   20180115110710 AddPrdAttsToReports
eln_1  |   20180205132254 ReactionsSample
eln_1  |   20180226130228 AddMolfileVersionToSamples
eln_1  |   20180226130229 UpdateMolfileVersion
eln_1  |   20180312095413 AddStereoInfoToSamples
eln_1  |   20180510101010 CreateComputedProps
eln_1  |   20180516151737 DropLegacyTables
eln_1  |   20180518053658 AddAbsMeanPotentialToComputedProp
eln_1  |   20180524103806 AddTimeStampsToAuthenticationKeys
eln_1  |   20180529123358 CreateDelayedJobsKetcher
eln_1  |   20180618052835 AddWasteToReactionsSample
eln_1  |   20180620144623 RefactorLiteraturesAddition
eln_1  |   20180620144710 RefactorLiteraturesRemoval
eln_1  |   20180704131215 AddColumsToReaction
eln_1  |   20180709180000 UserInstrument
eln_1  |   20180723124200 AddIndexOnContainableToContainers
eln_1  |   20180723140300 DropIndexOnAncestryFromContainers
eln_1  |   20180726152200 CollectionSharedNames
eln_1  |   20180801110000 UserIds
eln_1  |   20180801120000 UserAsJson
eln_1  |   20180801130000 SharedUserAsJson
eln_1  |   20180802164000 AddViewSamplesCollections
eln_1  |   20180802170000 AddFuncDetailLevelForSample
eln_1  |   20180807153900 CollectionSharedNamesWithPermission
eln_1  |   20180812115719 AddColumsToAttachment
eln_1  |   20180814131055 RemoveLiteralUnicityConstraint
eln_1  |   20180814141400 MigrateLayoutToProfile
eln_1  |   20180815144035 CreateLiteralGroups
eln_1  |   20180816161600 MigrateLayoutToProfileInt
eln_1  |   20180827140000 CreatePubSubscriptions
eln_1  |   20180831084640 CreateFunctionGroupUserIds
eln_1  |   20180831125901 CreateNotifyMessages
eln_1  |   20180903134741 CreateFunctionGenerateNotifications
eln_1  |   20180918085000 AddInboxArrivalsToMe
eln_1  |   20180918120000 ReportGeneratorNotification
eln_1  |   20180921140800 SendIndividualUsersNotification
eln_1  |   20180925165000 InsertAdministratorAccount
eln_1  |   20181009155001 AddLockableToDevise
eln_1  |   20181029081414 AddAasmStateToAttachments
eln_1  |   20181105103800 ReportMessageFix
eln_1  |   20181122140000 EditorCompletedNotification
eln_1  |   20181122145822 AddImportNotification
eln_1  |   20181128110000 CollectionTakeOwnership
eln_1  |   20181206075723 AddCreatorComputedProps
eln_1  |   20181207091112 AddComputedPropsNotification
eln_1  |   20181207100526 AddGateTransferNotification
eln_1  |   20190110083400 UpdateImportNotification
eln_1  |   20190204152500 AddDurationToReaction
eln_1  |   20190206100500 FixSolventReference
eln_1  |   20190307113259 CurateAttachmentContentType
eln_1  |   20190320145415 PubchemCidCuration
eln_1  |   20190508084000 AddResearchPlanPreviewSvg
eln_1  |   20190514080856 CreatePredictions
eln_1  |   20190604100811 CreateOlsTerms
eln_1  |   20190617144801 AddCollectionZipNotification
eln_1  |   20190617153000 ConvertAnalysisType
eln_1  |   20190618153000 RebuildReactionType
eln_1  |   20190619135600 UpdateFunctionGenerateNotifications
eln_1  |   20190619153000 DefaultRecentProfile
eln_1  |   20190708112047 ChangeOwlColumnName
eln_1  |   20190712090136 CurateProfileRecentOwl
eln_1  |   20190716092051 AddBodyToResearchPlans
eln_1  |   20190722090944 AddColumsToProfile
eln_1  |   20190724100000 FixProfileChmoTitle
eln_1  |   20190731120000 ConvertTemplateToProfile
eln_1  |   20190812124349 CreateResearchPlanTableSchemas
eln_1  |   20190828111502 CreateUserLabels
eln_1  |   20191128100001 AddSampleMetrics
eln_1  |   20200117115709 AddAccountActiveUsers
eln_1  |   20200212100002 AddReactionConditions
eln_1  |   20200306100001 RegenerateResearchPlanRootContainer
eln_1  |   20200513100000 AddAttachmentsFilesize
eln_1  |   20200702091855 AddComputedPropsTddft
eln_1  |   20200710114058 AddUserNameAbbrUniqueIndex
eln_1  |   20200715094007 TagReactantReaction
eln_1  |   20200819093220 ChangeLimitNameAbbreviationToUser
eln_1  |   20200819131000 AddIsbn
eln_1  |   20200820102805 CreateFunctionLabelsByUserSample
eln_1  |   20200820160020 CreateMatrices
eln_1  |   20200824143243 CreateFunctionGenerateUsersMatrix
eln_1  |   20200824143253 CreateFunctionUpdateUsersMatrix
eln_1  |   20200824153242 CreateTriggerUpdateUsersMatrixTrg
eln_1  |   20200827133000 ChangeBoilingMeltingType
eln_1  |   20200827144816 MatriceUserLabel
eln_1  |   20200911075633 UpdateFunctionGenerateUsersMatrixToVersion2
eln_1  |   20200917155839 MatriceComputedProp
eln_1  |   20200928115156 MatriceChemdrawEditor
eln_1  |   20201023170550 MatriceReactionPrediction
eln_1  |   20201027130000 AddLiterialsType
eln_1  |   20201109012155 CreateTextTemplates
eln_1  |   20201123234035 CreateDeviceMetadata
eln_1  |   20201126081805 AddTaskIdToComputedProps
eln_1  |   20201127071139 AddDecoupledToSamples
eln_1  |   20201130121311 AddMolecularMassAndSumFormulaToSamples
eln_1  |   20201201051854 AddDeletedAtToComputedProps
eln_1  |   20201209222212 AddSomeFieldsToMetadata
eln_1  |   20201214090807 AddExtraFieldsToMd
eln_1  |   20201216153122 AddShowLabelToReactionsSample
eln_1  |   20201217172428 CreateResearchPlanMetadata
eln_1  |   20210108230206 AddFieldsToResearchPlanMetadata
eln_1  |   20210216132619 CreateReportTemplates
eln_1  |   20210217164124 ChangeDataInProfile
eln_1  |   20210222154608 MatriceSampleDecoupled
eln_1  |   20210225075410 CreatePrivateNote
eln_1  |   20210303140000 TextTemplateInit
eln_1  |   20210312160000 CreateElementsSamples
eln_1  |   20210316132500 GenericElements
eln_1  |   20210316132800 GenericElementsInit
eln_1  |   20210316133000 GenericSegments
eln_1  |   20210318133000 GenericDatasets
eln_1  |   20210416075103 ChangeResearchPlanTableStructure
eln_1  |   20210429141415 MatriceMarvinjsEditor
eln_1  |   20210527172347 AddSolventToSamples
eln_1  |   20210604232803 GenericConditionMigration
eln_1  |   20210605105020 GenericElementsRevision
eln_1  |   20210605125007 GenericSegmentsRevision
eln_1  |   20210610000001 ResetJsonbDefault
eln_1  |   20210610105014 GenericElementsRevisionMigration
eln_1  |   20210614115000 GenericSegmentsRevisionMigration
eln_1  |   20210617132532 ChangeDataTypeForSolvent
eln_1  |   20210621145002 GenericDatasetsRevision
eln_1  |   20210621155000 GenericDatasetsRevisionMigration
eln_1  |   20210714082826 AddChannelSpectra
eln_1  |   20210816094212 ChangeCollectionNameToChemotionRepo
eln_1  |   20210816113952 CleanReactionSvgFiles
eln_1  |   20210916091017 MatriceNmrSim
eln_1  |   20210924095106 ChangeFileSizeToBeBigintInAttachments
eln_1  |   20210928095129 LogidzeInstall
eln_1  |   20210928095414 AddLogidzeToSamples
eln_1  |   20210928095425 AddLogidzeToReactions
eln_1  |   20211018100329 UpdateUserProfile
eln_1  |   20211021120309 AddTimestampsToReactionsSamples
eln_1  |   20211021131722 AddLogidzeToReactionsSamples
eln_1  |   20211105091019 AssignInboxToSample
eln_1  |   20211111154822 AddLogidzeToResidues
eln_1  |   20211111154836 AddLogidzeToElementalCompositions
eln_1  |   20211112121704 AddLogidzeToAttachments
eln_1  |   20211112121733 AddLogidzeToContainers
eln_1  | Run `rails db:migrate` to update your database then try again.

VadimKeller and others added 3 commits July 15, 2022 09:54
This commit refactors `ReactionDetails` and `SampleDetails` to make them pass eslint checks.

We had  unused functions there, which will be removed by this commit:

- SampleDetails#initiateAnalysisButton

- SampleDetails#initiateAnalysisWithKind

- SampleDetails#transferToDeviceButton

Also disables `forbid-prop-types` in .eslintrc for now. This can be taken out later, when we can better specify the propTypes across the entire project.
Store a history which keeps track of every change made to certain
entities and add a "History" tab to the Reaction/Sample detail pages.
Related entities are displayed in the version history. E.g. Reaction ->
ReactionsSample

Save timestamp and author of the version with the changes. A change diff
to the previous version can be displayed.

Tracked entities:

- Attachment

- Container

- ElementalComposition

- Reaction

- ReactionsSample

- Residue

- Sample

Co-authored-by: VadimKeller <[email protected]>
@PiTrem PiTrem changed the base branch from development-5 to main November 29, 2022 13:28
@PiTrem
Copy link
Member

PiTrem commented Nov 14, 2023

moved to #1253

@PiTrem PiTrem closed this Nov 14, 2023
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.

5 participants