emencia / diskette

💾 Export and import Django application data and medias
https://diskette.readthedocs.io/
MIT License
1 stars 0 forks source link

Command check #9

Closed sveetch closed 1 week ago

sveetch commented 7 months ago

Is your feature request related to a problem? Please describe.

Currently, the diskette configuration settings are only validated when dumping or loading.

Describe the solution you'd like

Current behavior is working but it could be more helpful to diagnostic invalid configuration without to dump or load anything.

New command diskette_check would be able to:

This will never try to hint about data size since it could be stressful for database to count on everything.

sveetch commented 7 months ago

Adding a new command for this was impractical and not very DRY to implement.

So instead, the existing command dump and load will include a new option --check to perform a dry-run.

Since these command already perform validations, we can use the same routine but without writing, querying or loading anything.

The check option for dump has been implemented and tested in v0.3.3-pre.1