Skip to content
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

Keep xklb-metadata.db when doing manual testing #286

Open
deldesir opened this issue Nov 18, 2024 · 1 comment
Open

Keep xklb-metadata.db when doing manual testing #286

deldesir opened this issue Nov 18, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@deldesir
Copy link
Collaborator

deldesir commented Nov 18, 2024

Testing changes to IIAB Calibre-Web requires starting with a fresh database instead of keeping/using the existing /library/calibre-web/xklb-metadata.db. The process would involve to:

  1. Remove the database with rm -f /library/calibre-web/xklb-metadata.db.
  2. Restart Calibre-Web to regenerate xklb-metadata.db automatically by xklb (or SQLAlchemy if the refactoring changes are applied) when submitting a new video to download.

However, this approach has become cumbersome, especially as the database grows with important data or if specific data needs to be selectively modified rather than fully reset. Removing the entire database is overkill then when only one or a few rows need to be removed for testing purposes.

Proposed Workaround

Instead of removing the entire database, a more targeted approach can be used with lb search-db.

Steps:

  1. Delete the affected row:
    lb search-db /library/calibre-web/xklb-metadata.db media <video_URL> --delete-rows
  2. Submit the video again via the "Download to IIAB" button in the web UI.

This approach helps to avoid unnecessary deletion and regeneration of xklb-metadata.db.

@holta holta added documentation Improvements or additions to documentation question Further information is requested labels Nov 18, 2024
@holta
Copy link
Member

holta commented Nov 18, 2024

Proposed Workaround

Instead of removing the entire database, a more targeted approach can be used with lb search-db.

Steps:

  1. Delete the affected rows:
    lb search-db /library/calibre-web/xklb-metadata.db media <video_URL> --delete-rows
  2. Submit the video again via the "Download to IIAB" button in the web UI.
  • @deldesir is this new approach ready to be promoted to testing volunteers?

  • Can you mention other/relevant Test Plan(s) (or future testing scenarios) where this will help, if possible?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants