Bump ord-schema version #56
Conversation
@connorcoley @antonkast-google @n8kim1 Tests are passing. PTAL and test the GUI. |
Thanks @connorcoley for all the good fixes. PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Workup "Input"s have huge font
- Opening a new reaction, adding an outcome product, and using Ketcher causes one POST error to be printed in the console upon opening the window (reaction.js:51558 POST http://localhost:5000/ketcher/molfile 404 (NOT FOUND)) and upon hitting "done", another TypeError (reaction.js:54389 Uncaught TypeError: Cannot read property 'getElementsByTagName' of undefined). This seems to happen for all compound identifier fields, not just products.
Thanks!
Done. Although note that compounds added later will have slightly mismatched heading sizes since we don't have access to them here. We could be fancy about this but it's not jarring like this was.
Good catch. Multiple issues were fixed here:
|
Ah, that's very important!
|
Done. I also made it so that this field is only visible if the role is PRODUCT (like we do with
I sort of like having it unspecified so users see the full list and can consider INTERNAL_STANDARD, etc. Do you agree?
I broadened this a bit (added retention_time to IDENTITY and COUNTS). I agree that we should err on the side of showing more fields if they might be used. Also added some vertical spacing between sections. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks good enough to me to merge and start the data migration. I'd also be okay waiting until @michaelmaser has had a chance to stress test it a bit more, just in case both of us missed something obvious.
I agree. I think it could help prevent unintended species from being added to the product list/reaction SMILES.
I agree with broadening flexibility to avoid restricting use. I agree with adding retention_time to both IDENTITY and COUNTS for the cases @connorcoley mentioned. I don't think there's a need for PURITY either.
I took a look yesterday and had basically the same comments @connorcoley had, which have been addressed. I think it's okay to merge and start migration. Would minor adjustments later on be tolerable or require re-migration? Pardon my naivety, I am less familiar with the editor than the schema. |
Thanks @michaelmaser
Nope, the migration is only required for changes to the schema. One additional test we should do before deploying is making sure that the migrated data successfully round-trips through the editor; this will help us identify anything that we missed in updating the editor to match the new schema. |
Migration to support proto changes in open-reaction-database/ord-schema#496 (reaction.proto diff)
Tasks:
Features
fromCompound
(replaced withData
)ReactionAnalysis
->Analysis
Reaction.workup
->Reaction.workups
Amount
messageSource
messageAnalysis
fieldsProductMeasurement
toProduct
and remove deprecated fieldsNote that this version of ord-schema includes the old reaction.proto as reaction_old.proto to aid in migrating existing data.