-
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.
Implement uploading <project_uuid>.hazmapper to tapis. (#54)
* Implement uploading <project_uuid>.hazmapper to tapis. * Improve project save behavior. * Fix tests. * Add tests. * Add deleting agave files. * Add link parameter to observable projects. * Fix tests for project deletion. * Add migrations for project system information. * Save to json rather than empty file. * Fix tests for file suffix. * Remove projectid from tile server tests. * Fix tile server test. * Change test route for tile server. * file_suffix to file_name. * Combine link and export functions and make file deletion a task to avoid 504. * Refactor project export function. * Fix tests for project export. * Fix observable projects for new export. * Retry. * Correct None condition for system_path. * Remove exception for updating tile servers. * Remove observable project export. * Export project for observable projects. * Remove system_name. * Add migration and remove export route from public projects.
- Loading branch information
Showing
12 changed files
with
248 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"""empty message | ||
Revision ID: 751a1f2e8b5a | ||
Revises: 9d043dc43f64 | ||
Create Date: 2021-04-30 21:09:16.630406 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '751a1f2e8b5a' | ||
down_revision = '9d043dc43f64' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('projects', sa.Column('system_file', sa.String(), nullable=True)) | ||
op.add_column('projects', sa.Column('system_id', sa.String(), nullable=True)) | ||
op.add_column('projects', sa.Column('system_name', sa.String(), nullable=True)) | ||
op.add_column('projects', sa.Column('system_path', sa.String(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('projects', 'system_path') | ||
op.drop_column('projects', 'system_name') | ||
op.drop_column('projects', 'system_id') | ||
op.drop_column('projects', 'system_file') | ||
# ### 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""empty message | ||
Revision ID: a1f677535e21 | ||
Revises: 751a1f2e8b5a | ||
Create Date: 2021-05-24 16:42:16.631669 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a1f677535e21' | ||
down_revision = '751a1f2e8b5a' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('projects', 'system_name') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('projects', sa.Column('system_name', sa.VARCHAR(), autoincrement=False, nullable=True)) | ||
# ### 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
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
Oops, something went wrong.