Skip to content

Fix: moving rulesets to bottom_of_folder within same folder via REST …#907

Open
hadu-iteratio wants to merge 1 commit intoCheckmk:masterfrom
iteratio-com:api_bottom_of_folder_fix
Open

Fix: moving rulesets to bottom_of_folder within same folder via REST …#907
hadu-iteratio wants to merge 1 commit intoCheckmk:masterfrom
iteratio-com:api_bottom_of_folder_fix

Conversation

@hadu-iteratio
Copy link
Copy Markdown
Contributor

…API failed

When attempting to reorder rules within the same folder using the REST API, the position value bottom_of_folder did not behave as expected. Although the API returned a success response (HTTP 200), the rule order remained unchanged. In contrast, top_of_folder worked correctly.

The BOTTOM sentinel is now resolved to the correct target index (end of the list) before calling get_index_for_move(). This ensures consistent handling while keeping the existing logic structure intact.

I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Thank you for your contribution. This pull request has been marked as stale as it has not passed the automated tests and there was no activity for the last 14 days.
Please take a look at the ‘Checks’ section for details on the test results and make the necessary changes.

This pull request will be closed due to inactivity after 60 days, if no action is taken.

@github-actions github-actions Bot added the Stale Scheduled for auto-close label May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale Scheduled for auto-close

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant