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

(Improve order flow) Clean up the Order model #4082

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

islean
Copy link
Contributor

@islean islean commented Jan 14, 2025

Description

The order model contains several attributes which should not exist. connect_to_ticket should not exist at all and user_id is not set in the form so it should be marked as a private attribute. Closes https://github.com/Clinical-Genomics/improve-order-flow/issues/100

Added

  • Tests for the order rules

Changed

Fixed

  • connect_to_ticket removed from Order
  • user_id is made into a private attribute

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 ...

@islean islean requested a review from a team as a code owner January 14, 2025 14:02
Copy link

@clingen-sthlm clingen-sthlm temporarily deployed to stage January 14, 2025 14:08 Inactive
@islean
Copy link
Contributor Author

islean commented Jan 14, 2025

Order placed correctly

image

Copy link
Contributor

@diitaz93 diitaz93 left a comment

Choose a reason for hiding this comment

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

Looks great ⭐

@islean islean merged commit 217b84f into improve-order-flow-main Jan 14, 2025
9 checks passed
@islean islean deleted the rework-user-id branch January 14, 2025 14:52
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