Skip to content

Fix find_publication_for_distribution - #78

Open
priteau wants to merge 1 commit into
masterfrom
pub-for-dist
Open

Fix find_publication_for_distribution#78
priteau wants to merge 1 commit into
masterfrom
pub-for-dist

Conversation

@priteau

@priteau priteau commented Jul 2, 2026

Copy link
Copy Markdown
Member

Sorting the publication list so that the most recent are first fixes creation of some distributions in stackhpc-release-train.

@priteau priteau self-assigned this Jul 2, 2026
@priteau
priteau requested a review from a team as a code owner July 2, 2026 12:34

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request modifies plugins/filter/filters.py to sort the publications list using sort_publications before iterating to find a match. The reviewer identified that sorting the entire list is inefficient and potentially error-prone if some publications lack a valid repository_version. They recommend filtering the publications by repository_href first before sorting, and provided a code suggestion to address this.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread plugins/filter/filters.py
Sorting the publication list so that the most recent are first fixes
creation of some distributions in stackhpc-release-train.

@Alex-Welsh Alex-Welsh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@priteau do you want to bump the collection version in the same PR or make a new one for it?

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.

2 participants