Actions
Refactor #2184
closedRefactor #2116: Migrate mongo collections to postgres tables.
Migrate repo_group_distributors collection to group_distributor table.
Start date:
Due date:
% Done:
0%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
The data in the repo_group_distributors collection needs to be migrated into the group_distributor table in postgres.
For each field in the repo_group_distributors document:
repo_group_distributors => group_distributor
__________________________|____________________________
=> id (generated)
distributor_id => name
distributor_type_id => type
last_publish => last_published
=> last_updated (auto-now)
repo_id => repository_id (by Foreign Key relation)
scratchpad => scratchpad (by Scratchpad relation)
config => (omitted)
Notes:
-
The configuration has been modeled as first class attributes of the distributor. The config sub-document no longer exists. Using the master-detail pattern, plugins will extend the configuration by contributing a new model:
class MyDistributor(GroupDistributor): setting1 = models.TextField() setting2 = models.TextField() ... class Meta: unique_together = ()
Related issues
Actions