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

Feat/hardware by trees checkout #567

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Conversation

WilsonNet
Copy link
Collaborator

@WilsonNet WilsonNet commented Nov 21, 2024

Description

Make the hardware listing accounts for heads of the trees only
This also fix the logic to account for builds

How to test

Go to the hardware listing page

Enter in any of the hardware the details and see how the count is more precise

Note: It is not exactly precise, if this does not get solved in time another ticket will be created

Updated the order_by field in HardwareDetails view to use
"-build__checkout__start_time" instead of "-start_time" for more accurate
ordering of results.
@WilsonNet WilsonNet marked this pull request as draft November 21, 2024 19:27
@WilsonNet WilsonNet force-pushed the feat/hardware-by-trees-checkout branch from cafae56 to 7193edf Compare November 21, 2024 19:43
@WilsonNet WilsonNet marked this pull request as ready for review November 21, 2024 19:45
@lfjnascimento
Copy link
Collaborator

front-end is making two requests, one slow and another fast but we are not using modes for this endpoint

@WilsonNet WilsonNet marked this pull request as draft November 22, 2024 14:12
@WilsonNet WilsonNet force-pushed the feat/hardware-by-trees-checkout branch from e8c6903 to df2aa1d Compare November 22, 2024 16:03
Refactored HardwareView to consolidate __getSlowResult and __getFastResult
methods into a single _getResults method. Updated the order_by field in
checkouts_subquery to use "-start_time" for more accurate ordering that
considerates the head of the branch
Also fix the logic for calculating builds to account for the array of
hardwares

Closes #530
@WilsonNet WilsonNet force-pushed the feat/hardware-by-trees-checkout branch from df2aa1d to c19fb9f Compare November 22, 2024 16:05
@WilsonNet WilsonNet marked this pull request as ready for review November 22, 2024 16:05
Copy link
Collaborator

@lfjnascimento lfjnascimento left a comment

Choose a reason for hiding this comment

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

LGTM

@WilsonNet WilsonNet merged commit e227a57 into main Nov 22, 2024
10 checks passed
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