Skip to content
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 old RES7 repositories in a database migration #1077

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

felixsch
Copy link
Contributor

part of: https://trello.com/c/BSMxlGDN/3166-help-liberty-team-get-suseconnect-working-on-liberty-7

This removes the old obsolete repositories, since RMT does not automatically remove them.

How to test this change:

  • Find a RMT server which is running for some time now.
  • Check if the server is affected by:
$ rails c
> Product.find(1251).repositories.pluck(:name,:scc_id,  :external_url)
# expect: It should show 4 repositories including 'RES' and 'RES' (src)
  • Run the migration:
$ rails db:migrate
$ rails c
> Product.find(1251).repositories.pluck(:name,:scc_id,  :external_url)
# expect: Does only show 2 repositories

As always, if you have question or suggestions, please do not hesitate to ask!🚀

Thank you!

@suse-tests-pass
Copy link
Collaborator

Well Done! Your tests are still passing.
https://ci.suse.de/job/scc-RMT-integration-tests/355609/console
If the given link has expired,you can force a Prophet rerun by just deleting this comment. (Merged c06d612 into 024478b)

@felixsch felixsch merged commit e9230bf into master Jan 30, 2024
2 checks passed
@felixsch felixsch deleted the remove-old-res-repositories branch January 30, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants