-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove repo after sync #1268
remove repo after sync #1268
Conversation
… RepositoryService#create_repository! to RepositoryService#update_or_create_repository for better readability of the code flow.
The current branch has 2 test failures in rspec ./spec/lib/rmt/scc_spec.rb:300 The current patch removes repositories globally if they're no more present in SCC. That's good, but potentially doesn't cover all use cases, like: |
added the logic for repository dissassociation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Description
When there is a repository removed in SCC from a product, it should also get removed from the product in RMT.
How to test
Glue : Remove repository from any product using rails console.
In Rmt : Do sync
- bin/rmt-cli sync
Expected behaviour
The sync process will remove any repositories that:
Repository dissassociation:
Delete association entry from the repositories_services table in glue db and then sync and same should reflect in rmt as well ( in the repositories_services rmt db).
Change Type
Please select the correct option.
Checklist
Please check off each item if the requirement is met.
MANUAL.md
file with any changes to the user experience.package/obs/rmt-server.changes
.Review
Please check out our review guidelines
and get in touch with the author to get a shared understanding of the change.