Project

Profile

Help

Refactor #2140

closed

Migrate repo_distributors collection to repository_distributor table.

Added by jortel@redhat.com over 8 years ago. Updated over 4 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

The data in the repo_distributors collection needs to be migrated into the repository_distributor table in postgres.

For each field in the repo_distributors document:

repo_distributors   =>  repository_distributor
____________________|____________________________
                    => id (generated)
distributor_id      => name
distributor_type_id => type
auto_publish        => auto_publish
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(RepositoryDistributor):
        setting1 = models.TextField()
        setting2 = models.TextField()
        ...
    
        class Meta:
            unique_together = ()
    

Related issues

Copied to Migration Plugin - Refactor #2182: Migrate repo_importers collection to repository_importer table.CLOSED - DUPLICATE

Actions
Copied to Pulp - Refactor #2184: Migrate repo_group_distributors collection to group_distributor table.CLOSED - WONTFIX

Actions
Copied to Migration Plugin - Refactor #2185: Migrate repo_content_units collection to repository_content table.CLOSED - DUPLICATE

Actions
Actions #1

Updated by jortel@redhat.com over 8 years ago

  • Description updated (diff)
Actions #2

Updated by jortel@redhat.com over 8 years ago

  • Tags Pulp 3 added
  • Tags deleted (Pulp 3 Prefactor)
Actions #3

Updated by jortel@redhat.com over 8 years ago

  • Description updated (diff)
Actions #4

Updated by jortel@redhat.com over 8 years ago

  • Subject changed from Migrate repo_distributors collection to distributor table. to Migrate repo_distributors collection to repository_distributor table.
  • Description updated (diff)
Actions #5

Updated by jortel@redhat.com over 8 years ago

  • Description updated (diff)
Actions #6

Updated by jortel@redhat.com over 8 years ago

  • Copied to Refactor #2182: Migrate repo_importers collection to repository_importer table. added
Actions #7

Updated by jortel@redhat.com over 8 years ago

  • Description updated (diff)
Actions #8

Updated by jortel@redhat.com over 8 years ago

  • Copied to Refactor #2184: Migrate repo_group_distributors collection to group_distributor table. added
Actions #9

Updated by jortel@redhat.com over 8 years ago

  • Copied to Refactor #2185: Migrate repo_content_units collection to repository_content table. added
Actions #10

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #11

Updated by dkliban@redhat.com over 5 years ago

  • Parent issue deleted (#2116)
Actions #12

Updated by ttereshc over 4 years ago

  • Status changed from NEW to CLOSED - DUPLICATE

Done as a part of the initial migration plugin release.

Also available in: Atom PDF