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

Badge: exclude duplicated builds #8023

Merged
merged 1 commit into from
Mar 17, 2021
Merged

Badge: exclude duplicated builds #8023

merged 1 commit into from
Mar 17, 2021

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Mar 16, 2021

ref #8015

@stsewd stsewd force-pushed the exclude-dup-builds-badge branch from ed7c12d to 1311bec Compare March 16, 2021 22:37
@stsewd stsewd requested a review from a team March 16, 2021 22:37
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Seems reasonable 👍

).order_by('-date').first()
last_build = (
version.builds
.filter(type='html', state='finished')
Copy link
Member

Choose a reason for hiding this comment

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

I feel like we have another bug where builds are default set to finished when they are created. We should probably change that as well so we don't hit this as well 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean this is another problem (not something I need to change here)?

Copy link
Member

Choose a reason for hiding this comment

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

Yea, it can be done in another PR.

@stsewd stsewd merged commit a6e26a3 into master Mar 17, 2021
@stsewd stsewd deleted the exclude-dup-builds-badge branch March 17, 2021 13:59
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