-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix(tags): Fix the tag deletion #5298
Conversation
- Add `monitor_tag.value` attribute in `getMonitorTag` SELECT - Add `monitor_id` and `value` for each tag in `preparePreloadData`
✅ Confirmed: This bug fix works as expected. After the recent bug fix #5298, I tested the functionality of the tag system. I can now remove tags in the usual way without having to manually delete them in the database. Everything is working properly with the tag system. @Ionys320 Thank you for your effort and the quick resolution! How I came to this conclusion:I manually added the updated
|
@homelab-alpha we have a much simpler solution for testing PRs ^^ => for this PR, it can be tested via docker run --rm -it -p 3000:3000 -p 3001:3001 --pull always -e 'UPTIME_KUMA_GH_REPO=Ionys320:master' louislam/uptime-kuma:pr-test2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for the quick merge! @CommanderStorm |
@CommanderStorm 😅 I didn't know that! I learned something new today and immediately created a script from it. I have read the Test Pull Requests wiki, but I have a question about it. It seems that the software is no longer up to date (please see the logs) and that the persistent storage is not functioning. Halfway through the exit of the Here is the
|
Sorry, problem is still present in 2.0.0-beta.1 |
@derekoharrow Works fine for me. Can you provide more infos, especially the DB used for your instance? |
@Ionys320, The conversation continued in... |
It worked on most monitors but on a couple of existing ones with multiple tags (with no values in them) it wouldn't delete. I'm running MariaDB I've managed to get around it by cloning the monitor and deleting the tags before saving. |
@derekoharrow, Let’s keep this conversation in one place, please, in this case... Thank you in advance for your cooperation. |
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:
Description
Fixes #5296
Fixes #5277
monitor_tag.value
attribute ingetMonitorTag
SELECTmonitor_id
andvalue
for each tag inpreparePreloadData
Because those two attributes were missing, the
DELETE monitor_tag WHERE [...]
wasn't touching any line because of the empty (null/undefined) parameters.Type of change
Please delete any options that are not relevant.
Checklist