-
-
Notifications
You must be signed in to change notification settings - Fork 597
feat: Mark missed files from filesystem as "missing" #1977
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
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
76f613d
style: enhance scrollbar appearance with rounded edges and improved d…
zurdi15 b52ea89
feat: add 'missing' flag to platforms and roms, update related handle…
zurdi15 dab9421
fix: update rom missing status handling in scan and platform handlers
zurdi15 82b54c4
feat: add MissingFromFSIcon component and integrate missing flags acr…
zurdi15 6db62bf
style: remove rounded prop from file items in FileInfo component
zurdi15 e31c4de
fix: conditionally render MissingFromFSIcon based on rom.missing status
zurdi15 df59e8e
feat: integrate MissingFromFSIcon for missing platform indication in …
zurdi15 6a77f3a
fix: initialize missing status for platforms and update rom missing s…
zurdi15 8b0a06c
feat: add 'missing' column to multiple tables and update related hand…
zurdi15 cb01b82
feat: add 'missing' property to asset and firmware schemas for tracki…
zurdi15 fdb795d
feat: add missing filter options in API and database handlers for ROMs
zurdi15 cbc7b9c
feat: enhance logging for save uploads and improve missing firmware/p…
zurdi15 a3a3779
fix: correct assertions in platform and ROM tests to reflect expected…
zurdi15 2e76e4d
feat: add missing property to FirmwareSchema for tracking missing fir…
zurdi15 8370b79
feat: add 'missing_from_fs' property to various schemas and update re…
zurdi15 48ed181
feat: rename 'missing' property to 'missing_from_fs' in various schem…
zurdi15 81f9a10
feat: add 'show-missing' property to platform localization files for …
zurdi15 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
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,76 @@ | ||
| """empty message | ||
|
|
||
| Revision ID: 0042_add_missing_fields | ||
| Revises: 0041_assets_t_thumb_cleanup | ||
| Create Date: 2025-06-11 | ||
|
|
||
| """ | ||
|
|
||
| import sqlalchemy as sa | ||
| from alembic import op | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "0042_add_missing_fields" | ||
| down_revision = "0041_assets_t_thumb_cleanup" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| with op.batch_alter_table("platforms", schema=None) as batch_op: | ||
| batch_op.add_column( | ||
| sa.Column("missing", sa.Boolean(), nullable=False, server_default="0") | ||
| ) | ||
|
|
||
| with op.batch_alter_table("roms", schema=None) as batch_op: | ||
| batch_op.add_column( | ||
| sa.Column("missing", sa.Boolean(), nullable=False, server_default="0") | ||
| ) | ||
|
|
||
| with op.batch_alter_table("rom_files", schema=None) as batch_op: | ||
| batch_op.add_column( | ||
| sa.Column("missing", sa.Boolean(), nullable=False, server_default="0") | ||
| ) | ||
|
|
||
| with op.batch_alter_table("firmware", schema=None) as batch_op: | ||
| batch_op.add_column( | ||
| sa.Column("missing", sa.Boolean(), nullable=False, server_default="0") | ||
| ) | ||
|
|
||
| with op.batch_alter_table("saves", schema=None) as batch_op: | ||
| batch_op.add_column( | ||
| sa.Column("missing", sa.Boolean(), nullable=False, server_default="0") | ||
| ) | ||
|
|
||
| with op.batch_alter_table("states", schema=None) as batch_op: | ||
| batch_op.add_column( | ||
| sa.Column("missing", sa.Boolean(), nullable=False, server_default="0") | ||
| ) | ||
|
|
||
| with op.batch_alter_table("screenshots", schema=None) as batch_op: | ||
| batch_op.add_column( | ||
| sa.Column("missing", sa.Boolean(), nullable=False, server_default="0") | ||
| ) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| with op.batch_alter_table("platforms", schema=None) as batch_op: | ||
| batch_op.drop_column("missing") | ||
|
|
||
| with op.batch_alter_table("roms", schema=None) as batch_op: | ||
| batch_op.drop_column("missing") | ||
|
|
||
| with op.batch_alter_table("rom_files", schema=None) as batch_op: | ||
| batch_op.drop_column("missing") | ||
|
|
||
| with op.batch_alter_table("firmware", schema=None) as batch_op: | ||
| batch_op.drop_column("missing") | ||
|
|
||
| with op.batch_alter_table("saves", schema=None) as batch_op: | ||
| batch_op.drop_column("missing") | ||
|
|
||
| with op.batch_alter_table("states", schema=None) as batch_op: | ||
| batch_op.drop_column("missing") | ||
|
|
||
| with op.batch_alter_table("screenshots", schema=None) as batch_op: | ||
| batch_op.drop_column("missing") | ||
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
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
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.
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.