Task #6371
Updated by daviddavis about 4 years ago
The Add docs to the plugin writer guide's Plugin Walkthrough[0] has information about about how to set up different classes that the plugin writer needs a Repository to define like Remotes, Content, etc. It doesn't mention Repositories though. Below are some suggestions about what this section should contain. finalize a repo version. ### CONTENT_TYPES Key points: * Plugin writers need to set CONTENT_TYPES with the content types that the Repository can contain. ### finalize_new_version() * Plugin writers can override finalize_new_version() on Repository to validate/munge content * They can define repo_key_fields and call remove_duplicates() to remove duplicates based on repo_key_fields * There are validation methods in repo_version_utils they can use too (eg validate_repo_version()) [0] https://docs.pulpproject.org/plugins/plugin-writer/plugin-walkthrough.html https://docs.pulpproject.org/plugins/plugin-writer/plugin-walkthrough.html#define-your-plugin-remote