Page MenuHomeSoftware Heritage

phabricator: model: Reference the forge's instance name in model
ClosedPublic

Authored by ardumont on Jun 18 2019, 7:20 AM.

Details

Summary

As phabricator is an "instance" lister (there exists multiple instances of
phabricator in the wild), we need to reference that information.

In effect, this aligns phabricator lister with for example the gitlab one.

Related T1801
Related P434 (db migration script)

Annex:

  • models: Unify tablenames using singular as main archive's convention (P434)
Test Plan
  • tox
  • docker
    • up (without diff): test P434 ~> ok
    • down
    • up (with diff): new columns populated

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

ardumont added inline comments.
swh/lister/phabricator/lister.py
88 ↗(On Diff #5289)

@nahimilega btw, something we like to do as default, always leave a dangling comma in data structure. So that the next one modifying has only to duplicate the line and adapt it.

swh/lister/phabricator/lister.py
88 ↗(On Diff #5289)

always leave a dangling comma in data structure.

Ok @ardumont , I will remember this.

This revision is now accepted and ready to land.Jun 18 2019, 10:22 AM
This revision was automatically updated to reflect the committed changes.