-
Notifications
You must be signed in to change notification settings - Fork 2
Neuroglancer short links #277
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
0501c2b
initial implementation of short links using codex
krokicki 55040dd
formatting
krokicki 79c13a5
fixed eslint warnings
krokicki 7d222c9
moved new link button
krokicki 7cbb3ea
update dialog and naming
krokicki 3b9dea1
deleted duplicate migration
krokicki fa1dbb6
added optional title
krokicki aa6bacd
use name in url
krokicki fa75a75
added edit action
krokicki 4bb982d
clean up text
krokicki 40fe645
updated class/file naming to better reflect the implementation
krokicki be6857c
updated URL paths
krokicki c8df93f
added delete action
krokicki 6934c3c
update text
krokicki 6696a9a
complete renaming to nglink for consistency
krokicki 60bd36c
fixed text
krokicki 3909c33
allow search by URL in both Data Links and NG Links
krokicki 5ba5088
fix: include proxied path url for searching in data links table
allison-truhlar f4e80d9
generalize TableCard
krokicki e381c3e
client side validation for short names
krokicki 1569527
added json state mode
krokicki 7eaf73d
Merge main into ng-short-links-codex
krokicki a4d36fa
updated to use new error handling mechanism
krokicki 25a73a5
formatting
krokicki f98ea0d
refactoring for consistency
krokicki 015f833
refactor: move NGLinksProvider lower in component tree
allison-truhlar ea153a1
refactor: validate short_name on the backend
allison-truhlar e37237f
refactor: remove short_key from NG link POST request as it's not used
allison-truhlar 99e9898
refactor: export NG link payload typesfrom the query for reuse in the…
allison-truhlar 2c24069
refactor: in edit mode for NG links, do not pre-populate URL
allison-truhlar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
fileglancer/alembic/versions/2d1f0e6b8c91_add_neuroglancer_states_table.py
This file contains hidden or 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,42 @@ | ||
| """add neuroglancer_states table | ||
|
|
||
| Revision ID: 2d1f0e6b8c91 | ||
| Revises: 9812335c52b6 | ||
| Create Date: 2025-10-22 00:00:00.000000 | ||
|
|
||
| """ | ||
| from alembic import op | ||
| import sqlalchemy as sa | ||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = '2d1f0e6b8c91' | ||
| down_revision = '9812335c52b6' | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| op.create_table( | ||
| 'neuroglancer_states', | ||
| sa.Column('id', sa.Integer(), primary_key=True, autoincrement=True), | ||
| sa.Column('short_key', sa.String(), nullable=False), | ||
| sa.Column('short_name', sa.String(), nullable=True), | ||
| sa.Column('username', sa.String(), nullable=False), | ||
| sa.Column('url_base', sa.String(), nullable=False), | ||
| sa.Column('state', sa.JSON(), nullable=False), | ||
| sa.Column('created_at', sa.DateTime(), nullable=False), | ||
| sa.Column('updated_at', sa.DateTime(), nullable=False), | ||
| sa.UniqueConstraint('short_key', name='uq_neuroglancer_states_short_key') | ||
| ) | ||
| op.create_index( | ||
| 'ix_neuroglancer_states_short_key', | ||
| 'neuroglancer_states', | ||
| ['short_key'], | ||
| unique=True | ||
| ) | ||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| op.drop_index('ix_neuroglancer_states_short_key', table_name='neuroglancer_states') | ||
| op.drop_table('neuroglancer_states') |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.