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

feat(update): Pydantic model #3828

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

henrikstranneheim
Copy link
Contributor

@henrikstranneheim henrikstranneheim commented Oct 10, 2024

Description

Added

Changed

Fixed

How to prepare for test

  • Ssh to relevant server (depending on type of change)
  • Use stage: us
  • Paxa the environment: paxa
  • Install on stage (example for Hasta):
    bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-tool-stage.sh -e S_cg -t cg -b [THIS-BRANCH-NAME] -a

How to test

  • Do ...

Expected test outcome

  • Check that ...
  • Take a screenshot and attach or copy/paste the output.

Review

  • Tests executed by
  • "Merge and deploy" approved by
    Thanks for filling in who performed the code review and the test!

This version is a

  • MAJOR - when you make incompatible API changes
  • MINOR - when you add functionality in a backwards compatible manner
  • PATCH - when you make backwards compatible bug fixes or documentation/instructions

Implementation Plan

  • Document in ...
  • Deploy this branch on ...
  • Inform to ...

@henrikstranneheim henrikstranneheim requested a review from a team as a code owner October 10, 2024 09:08
Copy link
Contributor

@ahdamin ahdamin left a comment

Choose a reason for hiding this comment

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

I like the effort to sort and organize the variables! LGTM 💯

@henrikstranneheim
Copy link
Contributor Author

@ahdamin Thx for the review! @Karl-Svard Do you have a good way to test this model and do you agree with the type changes?

@henrikstranneheim henrikstranneheim self-assigned this Oct 14, 2024
Copy link
Contributor

@Karl-Svard Karl-Svard left a comment

Choose a reason for hiding this comment

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

Nice work! I believe this shouldn't break anything specific, with the exception of maybe one value (see the comment below). I would test this PR through the order portal as this model is responsible for converting order data before pushing it to LIMS. Use a test order that populates as many of these UDFs as possible and then double-check that it propagates to LIMS correctly. I can help with checking the LIMS part and maybe @islean or @Vince-janv have good examples of orders to use.

reference_genome: str | None
region: str | None
region_code: str | None
quantity: float | None = None
Copy link
Contributor

Choose a reason for hiding this comment

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

This value will populate the text UDF "Quantity" in LIMS. It could be good to test that it doesn't break something

Copy link

@henrikstranneheim
Copy link
Contributor Author

@sysdev Anyone that have time to test this?

Copy link

sonarqubecloud bot commented Dec 2, 2024

@henrikstranneheim
Copy link
Contributor Author

@sysdev Anyone that have time to test this? Should we wait with this until the improve order flow project is done?

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.

3 participants