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

F/692 pause resume jobs at once #868

Merged
merged 5 commits into from
Jan 19, 2025

Conversation

ahnwarez
Copy link
Contributor

@ahnwarez ahnwarez commented Jan 2, 2025

This PR addresses a requested feature in issue #692 so that users can pause or resume all queues at once with a single click. I'm one of the users who is keen to have this feature as it makes easier to control all queues.

A new component is added to the OverviewPage.tsx that displays a drop-down list.

Screenshot 2025-01-03 at 9 09 03 AM

The frontend component calls an api to the backend to loop over every queue to pause or resume.

  • /api/queues/pause
  • /api/queue/resume

…esume functionality; update OverviewPage layout and styles

- Introduced a new `OverviewActions` component that provides pause and resume actions for queues.
- Updated `OverviewPage` to include the new `OverviewActions` component in the header.
- Enhanced CSS for the header layout to improve UI alignment and spacing.
- Added new translation keys for pause and resume actions in the localization files.
…ewActions component

- Updated the OverviewActions component to accept actions as props, enabling pause and resume functionality for queues.
- Implemented pauseAll and resumeAll actions in the useQueues hook.
- Modified OverviewPage to pass the actions prop to OverviewActions, enhancing the user interface for queue management.
- Introduced `pauseAllHandler` and `resumeAllHandler` to handle pausing and resuming all queues.
- Updated `appRoutes` to include new API endpoints for pausing and resuming queues.
- Enhanced `useQueues` hook to integrate API calls for pausing and resuming queues with user confirmation.
- Added corresponding methods in the `Api` service for making requests to the new endpoints.
OverviewActions is renamed to OverviewDropDownActions
@felixmosh
Copy link
Owner

I didn't forgot about this PR, I'm a bit busy, I'll review it ASAP

@felixmosh felixmosh merged commit 62ecfbb into felixmosh:master Jan 19, 2025
3 checks passed
@felixmosh
Copy link
Owner

Thank you for this PR.
I'll refactor this dropdown, to show only the relevant option.

alexandresoro pushed a commit to alexandresoro/ouca that referenced this pull request Jan 19, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@bull-board/api](https://github.com/felixmosh/bull-board) ([source](https://github.com/felixmosh/bull-board/tree/HEAD/packages/api)) | dependencies | minor | [`6.6.2` -> `6.7.0`](https://renovatebot.com/diffs/npm/@bull-board%2fapi/6.6.2/6.7.0) |
| [@bull-board/fastify](https://github.com/felixmosh/bull-board) ([source](https://github.com/felixmosh/bull-board/tree/HEAD/packages/fastify)) | dependencies | minor | [`6.6.2` -> `6.7.0`](https://renovatebot.com/diffs/npm/@bull-board%2ffastify/6.6.2/6.7.0) |

---

### Release Notes

<details>
<summary>felixmosh/bull-board (@&#8203;bull-board/api)</summary>

### [`v6.7.0`](https://github.com/felixmosh/bull-board/blob/HEAD/CHANGELOG.md#v670)

[Compare Source](felixmosh/bull-board@v6.6.2...v6.7.0)

-   F/692 pause resume jobs at once [`#868`](felixmosh/bull-board#868)
-   fix: show only relevant option in overview dropdown [`98aaa5d`](felixmosh/bull-board@98aaa5d)
-   fix: apply settings default tab on failed status as well. [`11cf428`](felixmosh/bull-board@11cf428)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMTYuMSIsInVwZGF0ZWRJblZlciI6IjM5LjExNi4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: https://git.tristess.app/alexandresoro/ouca-backend/pulls/483
Reviewed-by: Alexandre Soro <[email protected]>
Co-authored-by: renovate <[email protected]>
Co-committed-by: renovate <[email protected]>
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