-
Notifications
You must be signed in to change notification settings - Fork 5
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
Dagster apply_metadata_in
op fails to insert functional_annotation_agg
documents
#611
Comments
@aclum and I met via Zoom a few minutes ago. She explained the situation for me and showed me where I can find the error message in the Dagster UI (Dagit). Since this is the development environment—not the production environment—in order to unblock what she is working on (which is to enable someone else downstream), I was in favor of adding the documents to the database directly (via a Mongo account that has write access to that collection). I want to emphasize that this was in the development environment. So, I did that during the Zoom call; i.e. I added the two documents to the database. As a result, @aclum's work is not blocked by this issue. I will continue looking into this issue. |
apply_metadata_in
op fails to insert functional_annotation_agg
documents
Here's the final couple of lines from the stack trace: File "/opt/dagster/lib/nmdc_runtime/site/ops.py", line 530, in <genexpr>
if all(coll_has_id_index[coll] for coll in docs.keys()): Here are lines 529-531 of the source code the error message is referring to: coll_has_id_index = collection_indexed_on_id(mongo.db)
if all(coll_has_id_index[coll] for coll in docs.keys()):
replace = True
Note that the first line of that source code calls a function named The collection @aclum was trying to insert data into is |
Since I'll be OOO for the next few days (back next Wednesday), I'll hand this issue off to @dwinston and @PeopleMakeCulture. |
Looks like the |
@PeopleMakeCulture any update on this? |
interpret as simple insertion. leave note in code about decision to insist on schema-supplied uniqueness signal. fix #611
* fix: allow "update" of non-`id`-having document collections interpret as simple insertion. leave note in code about decision to insist on schema-supplied uniqueness signal. fix #611 * refactor to add test * fix: rm abandoned candidate test * Update nmdc_runtime/site/ops.py Co-authored-by: eecavanna <[email protected]> --------- Co-authored-by: eecavanna <[email protected]>
* fix: allow "update" of non-`id`-having document collections interpret as simple insertion. leave note in code about decision to insist on schema-supplied uniqueness signal. fix #611 * refactor to add test * fix: rm abandoned candidate test * Update nmdc_runtime/site/ops.py Co-authored-by: eecavanna <[email protected]> --------- Co-authored-by: eecavanna <[email protected]>
Describe the bug
I tried to submit test data to runtime dev for the functional_annotation_agg, the data validates with
json:validate
and returns all okay withjson:submit
but the dagster job fails. Based on the issue see https://dagit-dev.microbiomedata.org/runs/76495c80-9076-4da4-94e5-4baf162a1d6dTo Reproduce
Steps to reproduce the behavior:
Expected behavior
This request should return records
Example user story template:
AS A {user|persona|system},
[INSTEAD OF {current condition}]
I EXPECTED {result}
[SO THAT {value or justification}]
[NO LATER THAN {best by date}]
Screenshots
If applicable, add screenshots to help explain your problem.
Acceptance Criteria
Example scenario-based template:
Given (some given context or precondition), when (I take this action), then (this will be the specific outcome).
Additional context
I think this is b/c those documents don't have id, normally these records are added directly to pymongo by code from nmdc-aggregator
The text was updated successfully, but these errors were encountered: