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] alert a user on the jobs index page when a deploying job requires manual promotion #20279

Draft
wants to merge 99 commits into
base: main
Choose a base branch
from

Conversation

philrenaud
Copy link
Contributor

@philrenaud philrenaud commented Apr 3, 2024

image

Copy link

github-actions bot commented Apr 3, 2024

Ember Test Audit comparison

bff-job-summary-fe-redux-untangle 7f48efa change
passes 1557 1548 -9
failures 0 9 +9
flaky 0 0 0
duration 11m 32s 594ms 000ms -11m 32s 594ms

@philrenaud philrenaud force-pushed the 20240-ui-alert-a-user-on-the-jobs-index-page-when-a-deploying-job-requires-manual-promotion branch from 722c468 to 14ab4b9 Compare April 9, 2024 14:29
example usage:

```
$ cat jobs.json
{
  "jobs": [
    {"id": "clients", "namespace": "default"},
    {"id": "fail"}
  ]
}

$ cat jobs.json | nomad operator api -X POST /v1/jobs/statuses | jq .
```
with ?index= query param e.g.

```
$ cat jobs.json | nomad operator api -X POST /v1/jobs/statuses?index=1681 | jq .
```
will need to read response headers for index, next_token
with iterator experiments
instead of bespoke ResultIterator experiments
testing.TB and UpsertAllocsRaw()
akin to jobsummary
mainly to for system job accounting
philrenaud and others added 7 commits May 2, 2024 13:56
* modifyIndex-based pagination

* modifyIndex gets its own column and pagination compacted with icons

* A generic withPagination handler for mirage

* Some live-PR changes

* Pagination and button disabled tests

* Job update handling tests for jobs index

* assertion timeout in case of long setTimeouts

* assert.timeouts down to 500ms

* de-to-do

* Clarifying comment and test descriptions
* Beginnings of a search box for filter expressions

* jobSearchBox integration test

* jobs list updateFilter initial test

* Basic jobs list filtering tests

* First attempt at side-by-side facets and search with a computed filter

* Weirdly close to an iterative approach but checked isnt tracked properly

* Big rework to make filter composition and decomposition work nicely with the url

* Namespace facet dropdown added

* NodePool facet dropdown added

* hdsFacet for future testing and basic namespace filtering test

* Namespace filter existence test

* Status filtering

* Node pool/dynamic facet test

* Test patchups

* Attempt at optimize test fix

* Allocation re-load on optimize page explainer

* The Big Un-Skip

* Post-PR-review cleanup
@philrenaud philrenaud force-pushed the bff-job-summary-fe-redux-untangle branch from baa42fe to 3350ebc Compare May 2, 2024 17:58
@philrenaud philrenaud force-pushed the 20240-ui-alert-a-user-on-the-jobs-index-page-when-a-deploying-job-requires-manual-promotion branch from 336755d to 6bdb3fe Compare May 2, 2024 20:32
@philrenaud philrenaud force-pushed the 20240-ui-alert-a-user-on-the-jobs-index-page-when-a-deploying-job-requires-manual-promotion branch from 6bdb3fe to f66680a Compare May 2, 2024 20:58
@philrenaud philrenaud force-pushed the 20240-ui-alert-a-user-on-the-jobs-index-page-when-a-deploying-job-requires-manual-promotion branch from f66680a to 7f48efa Compare May 6, 2024 14:46
@philrenaud philrenaud force-pushed the bff-job-summary-fe-redux-untangle branch 2 times, most recently from fe8636c to 3877fbf Compare May 6, 2024 17:57
Base automatically changed from bff-job-summary-fe-redux-untangle to main May 6, 2024 21:09
{{#unless @job.childStatuses}}
<div class="status-cell">
<Hds::Badge @text="{{capitalize @job.aggregateAllocStatus.label}}" @color={{@job.aggregateAllocStatus.state}} @size="large" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: size="medium" here

@tgross tgross added the stage/needs-rebase This PR needs to be rebased on main before it can be backported to pick up new BPA workflows label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/needs-rebase This PR needs to be rebased on main before it can be backported to pick up new BPA workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui] Alert a user on the jobs index page when a deploying job requires manual promotion
3 participants