-
Notifications
You must be signed in to change notification settings - Fork 18
Engine Placer #357
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
Engine Placer #357
Conversation
Will update the endpoint documentation on next commit |
api/dao/hierarchy.py
Outdated
session_obj = None | ||
if update_timestamp: | ||
update['$min'] = dict(timestamp=container['timestamp']) | ||
session['timezone'] = dict(timezone=container.get('timezone')) |
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.
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.
The UI renders the session timestamp, so I suggest we keep setting it. It is currently defined to be equal to the oldest acquisition timestamp.
The project timestamp is not used by the UI, as far as I know, and also what we are doing doesn't make a ton of sense, so we could get rid of that part.
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.
It is currently defined to be equal to the oldest acquisition timestamp.
Thanks, that's helpful information. A user can set the timestamp, would we want to overwrite a user's input? Unfortunately we wouldn't be able to differentiate between user input and machine input at this time (as we were discussing), so the question is more "is overwriting a session's timestamp with metadata ever okay?"
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.
After offline conversation, we conclude that the engine placer will only do as it is told and not have side effects, such as updating session timestamps without being explicitly told to do so. Reaper uploads are a different story, though. Side effect will remain there.
Looks good so far. Ping me when changes are done |
Mongo does not approve 😣 |
Non-explicit timestamp setting removed. Will rerun a few tests using the engine and then this is ready for merge. The mongo error above was caused by setting the timestamp in a |
I'll give this a test today. |
This update looks to have a bug that removes or overwrites container files on upload. An acquisition that had a dicom zip lost that file: "files": [
{
"name": "1_1_nifti.nii.gz",
"origin": {
"id": null,
"type": "unknown"
},
"type": "nifti"
}
], |
Fixed issue with metadata for files overwriting what's there during Reruning the engine in a newly bootstrapped environment is also successful. |
Latest changes work; LGTM |
Thanks for reviewing, merging now. |
Addresses #159, #160 and a few other requests made by team members.
Changes:
*Work towards supporting uploads to multiple levels of the hierarchy at once (#160) is being done in a separate branch