HomeDevCentral

Promote imported FANTOIR version

Description

Promote imported FANTOIR version

Summary:
When a new FANTOIR file has been imported to a new table,
declare in the configuration the new table to use.

For convenience, a fantoir view is also provided, as an alias
to the promoted table.

When other tables will need a foreign key to the fantoir table,
this command will also be responsible to update them.

This strategy allows to transparently update the datasource
while allowing consumers still to use it pending update.

Ref T1750.

Test Plan:

  • run fantoir-datasource promote fantoir_202210
  • check view fantoir and table fantoir_config are created
  • run it again to check idempotency

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1750

Differential Revision: https://devcentral.nasqueron.org/D2733

Details

Provenance
derecksonAuthored on Jan 12 2023, 03:56
derecksonPushed on Jan 12 2023, 05:35
Reviewer
dereckson
Differential Revision
D2733: Promote imported FANTOIR version
Parents
rDS502520b33e3c: Update Arcanist callsign
Branches
Unknown
Tags
Unknown
Tasks
T1750: Import FANTOIR database