Details
- Reviewers
douardda vlorentz - Group Reviewers
Reviewers - Commits
- rDCORE829b92cc9ad3: db_testing: Simplify pg_createdb
rDCORE590aeefbc832: core.cli: Reference the possibility to migrate to latest version
rDCORE6aa0f32547ee: swh.core.cli: Remove no longer used --create/--no-create flags
rDCOREdb7c1d0b322b: swh-db-init: Make the db initialization idempotent
rDCORE6eea4a05588c: tests.db_testing: Add a function to read swh's db version
Diff Detail
- Repository
- rDCORE Foundations and core functionalities
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 3025 Build 3862: tox-on-jenkins Jenkins Build 3861: arc lint + arc unit
Event Timeline
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/102/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/107/ for more details.
swh/core/cli.py | ||
---|---|---|
28 | done |
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/109/ for more details.
swh/core/cli.py | ||
---|---|---|
75 | It's to have the db version when we are done migrating the schema. | |
swh/core/tests/db_testing.py | ||
15–39 | I tried but then that would mean i'd need to change the input. At the moment, we can both use dbname and a string like 'service=swh' (providing you have the right .pgass and .pg_service.conf installed). | |
79–80 | So true! |
swh/core/cli.py | ||
---|---|---|
75 | s/migrating/initializing/ |
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/110/ for more details.
swh/core/cli.py | ||
---|---|---|
75 | I know. But since not db_version is always True at this point, you can replace this: if not db_version: db_version = swh_db_version(db_name) with this: db_version = swh_db_version(db_name) |
swh/core/cli.py | ||
---|---|---|
75 | Right! |
I pushed the commits.
So that closes it (good).
and then somehow that screws everything in the diff view (bad).
swh/core/tests/db_testing.py | ||
---|---|---|
15–39 | What i meant was, in the current context it's used (swh.core.cli), this is fine. |