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

Sort platforms list #2170

Merged
merged 1 commit into from
Jul 29, 2023
Merged

Sort platforms list #2170

merged 1 commit into from
Jul 29, 2023

Conversation

GuillaumeGomez
Copy link
Member

As you can see:

image

it's currently complicated to find the correct one from the list. However, I'm not sure if it's the best approach to sort the list every time or if we should insert it correctly instead. But in the second case, that would mean updating all the entries in the DB. Not sure which solution you prefer?

@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Jul 27, 2023
Copy link
Member

@syphar syphar left a comment

Choose a reason for hiding this comment

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

Perhaps I'm wrong, but:

When I look at our rustwide-builder, specifically here, it looks like the default target is the first to be added to the list of targets, and then the other targets follow.

The successful_targets vec is then stored in the database, and then used in the code you changed.

This means that currently, the default target is the first in the list, and this would change with this PR. Or am I missing something?

@syphar syphar added S-waiting-on-author Status: This PR is incomplete or needs to address review comments and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Jul 28, 2023
@GuillaumeGomez
Copy link
Member Author

It would change it indeed. But I don't consider it a problem: it'll remain the default platform, no need to put it at the op of the list. I was also thinking about making the current platform text bold or something along the line (in another PR).

@syphar syphar merged commit 9f94719 into rust-lang:master Jul 29, 2023
7 checks passed
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Jul 29, 2023
@GuillaumeGomez GuillaumeGomez deleted the sort-platforms branch July 29, 2023 12:57
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Jul 31, 2023
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