-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat(DCF-450): Add DRS Fields #357
feat(DCF-450): Add DRS Fields #357
Conversation
The style in this PR agrees with This formatting comment was generated automatically by a script in uc-cdis/wool. |
c506ec7
to
2764cbc
Compare
Adds description, content_updated_time and content_created_time to IndexRecord. Maps content_updated_time and content_created_time to updated_time and created_time in the DRS responses. Maps IndexRecord updated_time and created_time to index_updated_time and index_created_time in DRS responses.
2764cbc
to
1845dd8
Compare
migrations/versions/a72f117515c5_add_description_created_time_and_.py
Outdated
Show resolved
Hide resolved
tests/postgres/migrations/test_a72f117515c5_add_description_created_time_and_.py
Outdated
Show resolved
Hide resolved
bundle = get_bundle_doc(bundles=dids) | ||
if has_description: | ||
bundle["description"] = "A description" |
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.
maybe get_bundle_doc
should just accept a description?
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.
Is there a reason we'd need to check an inputted description rather than just a generic string here?
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'm not sure i understand your question, i meant that you could do bundle = get_bundle_doc(bundles=dids, has_description=True)
or bundle = get_bundle_doc(bundles=dids, description=xxx)
on L61 and let get_bundle_doc
add the description
but it's just a detail
0c274e1
to
db66756
Compare
…points, verifies updated isn't before created on updates
@@ -2646,3 +2646,56 @@ def test_get_dist(client): | |||
"type": "indexd", | |||
} | |||
] | |||
|
|||
|
|||
def test_changing_timestamps_updated_not_before_created(client, user): |
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.
could you add doc string to these tests? ex: "test that the updated date entered does not come before created date"
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.
Added to the confusingly named ones, let me know if there's more docs you want me to add for these tests.
Jira Ticket: DCF-450
New Features
Breaking Changes
Bug Fixes
Improvements
Dependency updates
Deployment changes