-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update existing file paths in manifests at generation to conform to new convention #1467
Conversation
This reverts commit 1c5621f.
@GiaJordan Thanks for the fix. If my understanding is correct, even without "path" being enabled in the asset view, when users generate a file-based manifest, "Filename" column is now being updated too to include project name in the path? If my understanding is correct, should we add a message and let users know that we are adding "project name" to the path and they could now enable "path" column by themselves in synapse too? But this might not be super important since DCA users can't see most of the schematic log. |
that's correct
From my perspective, it's more important to communicate this kind of thing to the users directly, as well as include in the release notes. Especially since most users will be using the DCA. From my presentation/recommendations and our discussion with @AmyHeiser during the team meeting earlier this week, this is the current plan. That message also exists in the documentation for the new validation rule. |
@thomasyu888 @BryanFauble @linglp |
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'll go ahead and approve the changes as they are now. I noted a few items, but it should not affect any logic you've written.
Quality Gate passedIssues Measures |
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.
LGTM! thanks for all your hard work on this! I think someone on fair should take a last pass on this
@linglp, @GiaJordan , I cloned this branch and did
Then I ran schematic profiler
|
@thomasyu888 thank you so much! This is amazing to see. |
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.
Thanks for your hard work on this Gianna. It looks good to me, and I am happy to see that the new test gets moved to integration folder as well.
@linglp @thomasyu888 @BryanFauble thank you all so much for your reviews, the comments you left were very helpful and I appreciate the time you took to give them |
This PR changes the functionality of file based manifest generation to also update the paths of existing files to account for the change in file path convention in schematic. Also includes more helpful error messages in cases where filepath validation can not be completed because the fileview needs to be updated.
Tests:
test_get_manfiest_with_files
has been updated to check file paths for file based manifests and to ensure that the order of files and the paths themselves are as expected when generating a manifest when new files have been added to the dataset and the existing manifest has paths that need updating.test_submit_filebased_manifest
has been added as a complement totest_submit_metadata_manifest
to actually test submission to synapse in addition to functionality of the method. This is to ensure that manifests with the new paths are able to be submitted.test_fill_in_entity_id_filename
has been updated to match how one of the utilized methods now returns values.test_view_query_exception
has been added to ensure that the appropriate exceptions are raised when the fileview can't be queried