-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added Result.run_id * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added run_id to _Metric._add_to_database * added migration * got run_id from envvar * excluded migrations --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4ee4908
commit 0c891bf
Showing
10 changed files
with
99 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,3 +133,4 @@ dmypy.json | |
|
||
# OSX hidden files | ||
.DS_Store | ||
.idea |
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 |
---|---|---|
@@ -1,6 +1,29 @@ | ||
alembic == 1.7.6 | ||
numpy == 1.21.6 | ||
pandas == 1.3.5 | ||
psycopg2 == 2.9.2 | ||
SQLAlchemy[mypy] == 1.4.40 | ||
synthesized_datasets == 0.6 | ||
alembic==1.7.6 | ||
contourpy==1.1.0 | ||
cycler==0.11.0 | ||
fonttools==4.42.1 | ||
greenlet==2.0.2 | ||
importlib-resources==6.0.1 | ||
kiwisolver==1.4.5 | ||
Mako==1.2.4 | ||
MarkupSafe==2.1.3 | ||
matplotlib==3.7.3 | ||
mypy==1.5.1 | ||
mypy-extensions==1.0.0 | ||
numpy==1.21.6 | ||
packaging==23.1 | ||
pandas==1.3.5 | ||
Pillow==10.0.0 | ||
psycopg2==2.9.2 | ||
pyparsing==3.1.1 | ||
python-dateutil==2.8.2 | ||
pytz==2023.3.post1 | ||
scipy==1.10.1 | ||
seaborn==0.12.2 | ||
six==1.16.0 | ||
SQLAlchemy==1.4.40 | ||
sqlalchemy2-stubs==0.0.2a35 | ||
synthesized-datasets==0.6 | ||
tomli==2.0.1 | ||
typing_extensions==4.7.1 | ||
zipp==3.16.2 |
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
33 changes: 33 additions & 0 deletions
33
src/insight/alembic/versions/d2198fd60b0e_added_result_run_id.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,33 @@ | ||
"""Added Result.run_id | ||
Revision ID: d2198fd60b0e | ||
Revises: 9aca5ae68ff5 | ||
Create Date: 2023-09-14 12:25:17.878689 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'd2198fd60b0e' | ||
down_revision = '9aca5ae68ff5' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('result', sa.Column('run_id', sa.VARCHAR(length=50), nullable=False)) | ||
op.alter_column('version', 'name', | ||
existing_type=sa.VARCHAR(length=50), | ||
nullable=False) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('version', 'name', | ||
existing_type=sa.VARCHAR(length=50), | ||
nullable=True) | ||
op.drop_column('result', 'run_id') | ||
# ### end Alembic commands ### |
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