-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement document uploading (#1840)
* Refactor common file upload * change naming to addFileDrawer * Add upload document drawer and functionality * Add common file upload * Fix spacing folder paper * fix code smells * cleanup shapefile upload * change naming to reflect which file uploader is used * change object service methods to use the name object * remove duplicate file import * Add is uploaded column to documents widget table * tweak update document * remove unused import * revert icon choices * update package lock * update package lock * add unit test for upload drawer * update tests * remove failing test for now
- Loading branch information
1 parent
fe0331b
commit 439e150
Showing
26 changed files
with
3,909 additions
and
26,971 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,27 @@ | ||
""" Add is_uploaded column to widget_documents table | ||
Revision ID: df842dc6d0b7 | ||
Revises: 47fc88fe0477 | ||
Create Date: 2023-07-14 13:03:24.113767 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'df842dc6d0b7' | ||
down_revision = '47fc88fe0477' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('widget_documents', sa.Column('is_uploaded', sa.Boolean(), nullable=False, server_default=sa.false())) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('widget_documents', 'is_uploaded') | ||
# ### 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
Oops, something went wrong.