Skip to content

feat: Mark missed files from filesystem as "missing"#1977

Merged
zurdi15 merged 17 commits into
masterfrom
romm-1784
Jun 13, 2025
Merged

feat: Mark missed files from filesystem as "missing"#1977
zurdi15 merged 17 commits into
masterfrom
romm-1784

Conversation

@zurdi15

@zurdi15 zurdi15 commented Jun 12, 2025

Copy link
Copy Markdown
Member

Description
This PR changes the scanner behaviour when any entity (rom, platform or firmware) is missing from the filesystem. Now instead of purging it from the database, will be marked as missing avoiding user data loss. If the file is restored (same path, same filename) and a scan is performed, will be unmarked as missing again.

Checklist

  • I've tested the changes locally
  • I've updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes

Screenshots

image

image

Closes #1784, #1976

@trunk-io

trunk-io Bot commented Jun 12, 2025

Copy link
Copy Markdown

Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information.

@zurdi15
zurdi15 changed the base branch from release to master June 12, 2025 14:43
@github-actions

github-actions Bot commented Jun 12, 2025

Copy link
Copy Markdown
Contributor

Test Results

92 tests   92 ✅  29s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 81f9a10.

♻️ This comment has been updated with latest results.

@gantoine gantoine left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for keeping the implementation clean 🫡

Comment thread backend/alembic/versions/0042_add_missing_rom_flag.py Outdated
Comment thread backend/handler/database/firmware_handler.py
@zurdi15
zurdi15 requested a review from gantoine June 12, 2025 23:07
@zurdi15
zurdi15 merged commit c4213ff into master Jun 13, 2025
11 checks passed
@zurdi15
zurdi15 deleted the romm-1784 branch June 13, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants