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

Make synclist task with policy 'exclude' include all versions not just is_latest AAH-485 #783

Merged

Conversation

alikins
Copy link
Contributor

@alikins alikins commented Jun 1, 2021

Intended fix for 'Syncing from synclist is pulling all content, ignoring sync toggles'

https://issues.redhat.com/browse/AAH-585?focusedCommentId=16232352&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16232352 goes into details about the root cause.

I think the synclist 'curate' is only removing the latest version of the collection from the synclist RepositoryVersion instead of all the versions when the synclist.policy=='exclude'.

This pr is a WIP that sets is_highest=False for exclude case.

Issue: AAH-485

@alikins alikins added backport-4.3 This PR should be backported to stable-4.3 (2.0) type/bug area/tasks Affects galaxy_ng/app/tasks/ labels Jun 1, 2021
@alikins alikins force-pushed the sync_from_synclist_all_content_aah_585 branch from 5cfe9e0 to f9c7a5d Compare June 10, 2021 16:31
@alikins alikins marked this pull request as ready for review June 24, 2021 18:17
Copy link
Member

@rochacbruno rochacbruno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pending also a rebase

galaxy_ng/app/tasks/synclist.py Outdated Show resolved Hide resolved
galaxy_ng/app/tasks/synclist.py Outdated Show resolved Hide resolved
CHANGES/585.bugfix Outdated Show resolved Hide resolved
@rochacbruno rochacbruno merged commit 3bdecca into ansible:master Jul 21, 2021
@patchback
Copy link

patchback bot commented Jul 21, 2021

Backport to stable-4.3: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4.3/3bdecca05086fac8b263e25cd2d4be64f8fa4d8f/pr-783

Backported as #854

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jul 21, 2021
…t is_latest AAH-485 (#783)

* Just adding CHANGES/585.txt with some notes

Issue: AAH-585

* Notes

No-Issue

* WIP: Set is_highest based on synlist.policy

Issue: AAH-585

* Fix synclist include/exclude filter.

Issue: AAH-585

Co-authored-by: Bruno Rocha <rochacbruno@gmail.com>
(cherry picked from commit 3bdecca)
awcrosby pushed a commit to awcrosby/galaxy_ng that referenced this pull request Aug 30, 2021
…t is_latest AAH-485 (ansible#783)

* Just adding CHANGES/585.txt with some notes

Issue: AAH-585

* Notes

No-Issue

* WIP: Set is_highest based on synlist.policy

Issue: AAH-585

* Fix synclist include/exclude filter.

Issue: AAH-585

Co-authored-by: Bruno Rocha <rochacbruno@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tasks Affects galaxy_ng/app/tasks/ backport-4.3 This PR should be backported to stable-4.3 (2.0) type/bug
Projects
None yet
4 participants