Project

Profile

Help

Refactor #2182

Migrate repo_importers collection to repository_importer table.

Added by jortel@redhat.com about 3 years ago. Updated 7 days ago.

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

0%

Platform Release:
Blocks Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Complexity:
Verified:
No
Verification Required:
No
Sprint:

Description

The data in the repo_importers collection needs to be migrated into the repository_importer table in postgres.

For each field in the repo_importers document:

repo_importers                =>  repository_importer
______________________________|____________________________
                              => id (generated)
importer_id                   => name
importer_type_id              => type

config['feed']                => feed_url
config['validate']            => validate
config['ssl_validation']      => ssl_validation
config['ssl_ca_cert']         => ssl_ca_certificate
config['ssl_client_cert']     => ssl_client_certificate
config['ssl_client_key']      => ssl_client_key

config['proxy_host']        \
config['proxy_port']        | => proxy_url (joined as scheme://user:password@host:port)
config['proxy_username']    |
config['proxy_password']    /

config['basic_auth_username'] => basic_auth_user
config['basic_auth_password'] => basic_auth_password

config['download_policy']     => download_policy
config['max_downloads']       => max_concurrent_downloads
config['max_speed']           => max_download_bandwidth

last_sync                     => last_sync
                              => 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 importer. The config sub-document no longer exists. Using the master-detail pattern, plugins will extend the configuration by contributing a new model:
    class MyImporter(RepositoryImporter):
        setting1 = models.TextField()
        setting2 = models.TextField()
        ...
    
        class Meta:
            unique_together = ()
    

Related issues

Copied from Pulp - Refactor #2140: Migrate repo_distributors collection to repository_distributor table. NEW Actions

History

#1 Updated by jortel@redhat.com about 3 years ago

  • Copied from Refactor #2140: Migrate repo_distributors collection to repository_distributor table. added

#2 Updated by jortel@redhat.com about 3 years ago

  • Description updated (diff)

#3 Updated by jortel@redhat.com about 3 years ago

  • Description updated (diff)

#4 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

#5 Updated by dkliban@redhat.com 5 months ago

  • Parent task deleted (#2116)

#6 Updated by qlamean9 about 2 months ago

My friend got a project something regarding Migrate repo_importers collection to repository_importer table. I don’t know what it is all about but I have heard it before in my life. He needs to give a start to his project but needs some guidance. He checks grammarly.com review now. If anyone has sufficient knowledge about it then do help!

#7 Updated by yisoo 7 days ago

You cover your wounds, but underneath them A million voices in your head that whisper, "Stop, now" Another twist of the knife, turn of the screws It's all in your mind and it's fighting you Arm yourself, a storm is coming Well, kid... What you gonna do now? It's your reflection looking back to pull you down. rise so good luck boy!
happy wheels run 3

Please register to edit this issue

Also available in: Atom PDF