Page MenuHomeSoftware Heritage

lister.cli: Clarify cli's configuration loading step
ClosedPublic

Authored by ardumont on Nov 7 2019, 4:08 PM.

Details

Summary

lister.debian: Actually use the db_engine passed to the hook function

The end goal being to actually be able to use it successfully (it did not work).

Test Plan
  • tox
  • Initialize a new db from scratch:
swh lister --db-url "postgresql:///?service=admin-staging-swh-lister" db-init

Diff Detail

Repository
rDLS Listers
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Reuse same configuration in tests without duplicating it

  • lister.cli: Clarify configuration loading step
ardumont retitled this revision from lister.cli: Make the cli override through db-url or config-file work to lister.cli: Clarify cli's configuration loading step.Nov 8 2019, 10:53 AM
ardumont edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Nov 8 2019, 10:57 AM