Maintenance: sort affected monitors alphabetically #1674

Open
opened 2026-02-28 02:29:07 -05:00 by deekerman · 1 comment
Owner

Originally created by @peschmae on GitHub (Dec 24, 2022).

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

The list of 'affected monitors' on the new maintenance page, isn't sorted alphabetically, but (I assume) by ID.

The list on the right hand side with all monitors, is sorted alphabetically and to have a consistent behaviour it would be nice to sort the list of affected monitors the same way.

👟 Reproduction steps

Create a new monitor called X, and afterwards a new monitor called A.

In the list with all monitors, A will be placed above X.

Navigate to the maintenance page and create a new maintenance window. In the list of 'affected monitors' X will be above A

If an additional monitor is created called G is will be listed in between A and X on the overview, but in the list on the maintenance page, it will be at the bottom.

👀 Expected behavior

All dropdown where the user can choose Monitors, are sorted alphabetically.

😓 Actual Behavior

Dropdowns are sorted by creationDate / ID

🐻 Uptime-Kuma Version

1.19.0

💻 Operating System and Arch

Debian based docker image

🌐 Browser

Chrome / irrelevant

🐋 Docker Version

irrelevant

🟩 NodeJS Version

irrelevant

📝 Relevant log output

No response

Originally created by @peschmae on GitHub (Dec 24, 2022). ### ⚠️ Please verify that this bug has NOT been raised before. - [X] I checked and didn't find similar issue ### 🛡️ Security Policy - [X] I agree to have read this project [Security Policy](https://github.com/louislam/uptime-kuma/security/policy) ### Description The list of 'affected monitors' on the new maintenance page, isn't sorted alphabetically, but (I assume) by ID. The list on the right hand side with all monitors, is sorted alphabetically and to have a consistent behaviour it would be nice to sort the list of affected monitors the same way. ### 👟 Reproduction steps Create a new monitor called `X`, and afterwards a new monitor called `A`. In the list with all monitors, `A` will be placed above `X`. Navigate to the maintenance page and create a new maintenance window. In the list of 'affected monitors' `X` will be above `A` If an additional monitor is created called `G` is will be listed in between `A` and `X` on the overview, but in the list on the maintenance page, it will be at the bottom. ### 👀 Expected behavior All dropdown where the user can choose Monitors, are sorted alphabetically. ### 😓 Actual Behavior Dropdowns are sorted by creationDate / ID ### 🐻 Uptime-Kuma Version 1.19.0 ### 💻 Operating System and Arch Debian based docker image ### 🌐 Browser Chrome / irrelevant ### 🐋 Docker Version irrelevant ### 🟩 NodeJS Version irrelevant ### 📝 Relevant log output _No response_
Author
Owner

@CommanderStorm commented on GitHub (Jun 3, 2023):

@peschmae has this been resolved in #2786?
If yes, could you please close this issue?
If no, could you edit it, to make the difference more clear? ^^

@CommanderStorm commented on GitHub (Jun 3, 2023): @peschmae has this been resolved in #2786? If yes, could you please close this issue? If no, could you edit it, to make the difference more clear? ^^
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#1674
No description provided.