You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accommodate ORM schema reorg for search/browse queries (#207)
* Accommodate ORM schema reorg (ord=index, public=payload, derived=computed)
ord-schema's upcoming 0.8 release reorganizes the ORM into role-based schemas:
the served Reaction proto moves to public.reactions, per-dataset metadata
(num_reactions, submitted_at) to public.datasets, and the generated SMILES plus
rdkit_*_id links to the derived.* tables (reaction_smiles, compound_smiles,
product_compound_smiles). The ord.* schema is now a pure search index.
Update the search/browse queries to read from the new locations:
- ReactionSmartsQuery / ReactionComponentQuery join ord.reaction (and the
compound tables) through the derived SMILES tables to reach the rdkit_*_id
links instead of the dropped ord.reaction.rdkit_reaction_id /
compound.rdkit_mol_id columns.
- fetch_reactions reads proto from public.reactions.
- The dataset-stats aggregation joins the derived SMILES tables for the SMILES.
- get_datasets / get_dataset join public.datasets for num_reactions /
submitted_at.
All joins to the derived tables are INNER, mirroring the prior NULL-column
filtering: update_derived_tables inserts a derived row only when a SMILES can be
generated, so un-derivable entities are dropped exactly as before.
Bump the ord-schema pin to >=0.8,<0.9. uv.lock must be regenerated once 0.8.0
is published.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Accommodate ingest/derive split in setup_test_postgres
ord-schema 0.8 splits dataset loading into ingest (add_dataset) and derivation
(update_derived_data); update the test-postgres helper to call both, mirroring the
ord-schema ORM conftest and preserving the rdkit-cartridge gating.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Regenerate uv.lock for ord-schema 0.8.0
0.8.0 is now published, so resolve the >=0.8,<0.9 pin against it (drops the
stale 0.7.1 lock) and pull in uuid6, the new transitive dependency.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments