-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into automatic-delivery-of-microsalt
- Loading branch information
Showing
71 changed files
with
1,767 additions
and
1,598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
alembic/versions/2023_12_27_584840c706a0_remove_uploaded_to_vogue_at.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""remove_uploaded_to_vogue_at | ||
Revision ID: 584840c706a0 | ||
Revises: 27ec5c4c0380 | ||
Create Date: 2023-12-27 11:50:22.278213 | ||
""" | ||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "584840c706a0" | ||
down_revision = "27ec5c4c0380" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.drop_column("analysis", "uploaded_to_vogue_at") | ||
|
||
|
||
def downgrade(): | ||
op.add_column("analysis", sa.Column("uploaded_to_vogue_at", sa.DateTime(), nullable=True)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__title__ = "cg" | ||
__version__ = "54.9.1" | ||
__version__ = "55.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from cg.meta.archive.ddn.constants import MetadataFields | ||
from cg.store.models import Sample | ||
|
||
|
||
def get_metadata(sample: Sample) -> list[dict]: | ||
"""Returns metadata generated from a sample.""" | ||
metadata: list[dict] = [ | ||
{ | ||
MetadataFields.NAME.value: MetadataFields.CUSTOMER_NAME.value, | ||
MetadataFields.VALUE.value: sample.customer.name, | ||
}, | ||
{ | ||
MetadataFields.NAME.value: MetadataFields.PREP_CATEGORY.value, | ||
MetadataFields.VALUE.value: sample.prep_category, | ||
}, | ||
{ | ||
MetadataFields.NAME.value: MetadataFields.SAMPLE_NAME.value, | ||
MetadataFields.VALUE.value: sample.name, | ||
}, | ||
{ | ||
MetadataFields.NAME.value: MetadataFields.SEQUENCED_AT.value, | ||
MetadataFields.VALUE.value: sample.last_sequenced_at, | ||
}, | ||
{ | ||
MetadataFields.NAME.value: MetadataFields.TICKET_NUMBER.value, | ||
MetadataFields.VALUE.value: sample.original_ticket, | ||
}, | ||
] | ||
return metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.