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.

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.

1 participant