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

[ui] Generalized namespace handling, generalized facet searching, node pools facet search #23468

Conversation

philrenaud
Copy link
Contributor

Changes the jobs index page's Namespaces dropdown from single select (radio buttons) to checkboxes (multiple OR-based selection)

image

Also fixes an error noted in #23445 where node pools and namespaces with - characters would not filter correctly

Resolves NET-10159

@philrenaud philrenaud self-assigned this Jun 28, 2024
@david-yu
Copy link
Contributor

This looks beautiful! LGTM. I won't approve because that is reserved for engineering!

@@ -202,7 +195,7 @@ export default class JobsIndexController extends Controller {
* @param {Error} e
*/
notifyFetchError(e) {
const firstError = e.errors[0];
const firstError = e.errors?.objectAt(0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should've caught this in #23427, but handling it here. Defensive logic in case there's an errors-less error (driving through a tunnel, etc.)

@@ -433,40 +426,38 @@ export default class JobsIndexController extends Controller {
label: 'NodePool',
options: (this.model.nodePools || []).map((nodePool) => ({
key: nodePool.name,
string: `NodePool == ${nodePool.name}`,
string: `NodePool == "${nodePool.name}"`,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes an issue reported in #23445

@philrenaud philrenaud force-pushed the f-ui/NET-10159-Implement-the-namespace-drop-down-box-on-nomad-UI-as-a-list-of-check-boxes-not-a-list-of-radio-buttons branch from 441242d to 885e836 Compare June 28, 2024 21:07
@philrenaud philrenaud force-pushed the f-ui/NET-10159-Implement-the-namespace-drop-down-box-on-nomad-UI-as-a-list-of-check-boxes-not-a-list-of-radio-buttons branch from 885e836 to a01cde7 Compare June 28, 2024 21:08
Copy link

github-actions bot commented Jun 28, 2024

Ember Test Audit comparison

main 4ee4e91 change
passes 1573 1574 +1
failures 0 0 0
flaky 0 0 0
duration 11m 43s 294ms 11m 30s 212ms -13s 082ms

@philrenaud philrenaud requested review from schmichael and removed request for gulducat July 2, 2024 16:51
@philrenaud philrenaud force-pushed the f-ui/NET-10159-Implement-the-namespace-drop-down-box-on-nomad-UI-as-a-list-of-check-boxes-not-a-list-of-radio-buttons branch from e41e55f to 82664c0 Compare July 2, 2024 16:54
@philrenaud philrenaud force-pushed the f-ui/NET-10159-Implement-the-namespace-drop-down-box-on-nomad-UI-as-a-list-of-check-boxes-not-a-list-of-radio-buttons branch from 82664c0 to 39552cd Compare July 2, 2024 19:27
@philrenaud philrenaud requested review from shoenig and removed request for angrycub July 2, 2024 19:43
Copy link
Contributor

@pkazmierczak pkazmierczak left a comment

Choose a reason for hiding this comment

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

LGTM!

@philrenaud philrenaud added the backport/1.8.x backport to 1.8.x release line label Jul 8, 2024
@philrenaud philrenaud merged commit 6560a0c into main Jul 8, 2024
18 checks passed
@philrenaud philrenaud deleted the f-ui/NET-10159-Implement-the-namespace-drop-down-box-on-nomad-UI-as-a-list-of-check-boxes-not-a-list-of-radio-buttons branch July 8, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.8.x backport to 1.8.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants