Skip to content
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

refactor(xmlupload): optimize stash links (DEV-2847) #573

Conversation

Nora-Olivia-Ammann
Copy link
Collaborator

No description provided.

@Nora-Olivia-Ammann Nora-Olivia-Ammann self-assigned this Oct 17, 2023
@Nora-Olivia-Ammann Nora-Olivia-Ammann marked this pull request as draft October 17, 2023 17:29
@Nora-Olivia-Ammann Nora-Olivia-Ammann changed the title refactor(xmlupload): apply optimized stash identification in actual upload (DEV-2833) refactor(xmlupload): apply optimized stash identification in actual upload (DEV-2847) Oct 19, 2023
@linear
Copy link

linear bot commented Oct 19, 2023

DEV-2847 optimize current code

The runtime of the current code is not ideal and can be improved upon.

Some finer details, which are needed for a reliable production code are nor implemented.

After this the logic and the steps should be ready for integration into the production code.

@Nora-Olivia-Ammann Nora-Olivia-Ammann marked this pull request as ready for review October 19, 2023 11:46
@Nora-Olivia-Ammann Nora-Olivia-Ammann changed the title refactor(xmlupload): apply optimized stash identification in actual upload (DEV-2847) refactor(xmlupload): optimized stash identification in diagnose code (DEV-2847) Oct 19, 2023
Copy link
Collaborator

@BalduinLandolt BalduinLandolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionally looks good to me, thanks!
I added some "stylistic" remarks, feel free to apply or ignore them as you see fit.

But I'd like to re-review, once you're done with the modifications to the models.

Copy link
Collaborator

@BalduinLandolt BalduinLandolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more details, but otherwise it looks good to me

src/dsp_tools/analyse_xml_data/extract_links_from_XML.py Outdated Show resolved Hide resolved
src/dsp_tools/analyse_xml_data/extract_links_from_XML.py Outdated Show resolved Hide resolved
@dasch-swiss dasch-swiss deleted a comment from linear bot Oct 19, 2023
@Nora-Olivia-Ammann
Copy link
Collaborator Author

But I'd like to re-review, once you're done with the modifications to the models.

Thanks!
The models though will not be redone. I removed the UploadResource model as the information about the stashes and upload order are now represented by a list and a dictionary respectively. In my opinion this separates the information semantically better and the results are easier to test.

@linear
Copy link

linear bot commented Oct 19, 2023

@Nora-Olivia-Ammann Nora-Olivia-Ammann changed the title refactor(xmlupload): optimized stash identification in diagnose code (DEV-2847) refactor(xmlupload): optimize stash links (DEV-2847) Oct 20, 2023
@Nora-Olivia-Ammann Nora-Olivia-Ammann merged commit 1d20fad into main Oct 20, 2023
6 checks passed
@Nora-Olivia-Ammann Nora-Olivia-Ammann deleted the wip/dev-2833-apply-optimized-stash-identification-in-actual-upload branch October 20, 2023 05:51
@daschbot daschbot mentioned this pull request Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants