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

Process POST requests in SortControl #173

Merged
merged 5 commits into from
Aug 3, 2023

Conversation

nilmerg
Copy link
Member

@nilmerg nilmerg commented Jul 25, 2023

resolves #172

closes #74

@nilmerg nilmerg added the enhancement New feature or request label Jul 25, 2023
@nilmerg nilmerg added this to the v0.9.0 milestone Jul 25, 2023
@nilmerg nilmerg self-assigned this Jul 25, 2023
@cla-bot cla-bot bot added the cla/signed label Jul 25, 2023
@nilmerg nilmerg force-pushed the feature/sort-control-post-support-172 branch from 96ca6b3 to 8027ca0 Compare July 25, 2023 09:10
@nilmerg nilmerg force-pushed the feature/sort-control-post-support-172 branch from 8027ca0 to 3cd95ba Compare July 27, 2023 07:30
nilmerg added a commit to Icinga/icingaweb2-module-businessprocess that referenced this pull request Aug 3, 2023
A future update will remove support for the $url parameter
and the columns are mandatory anyway. And since we use late
static binding in self::create(), we can guarantee that the
instance creation will always succeed.

Currently, no released code uses the constructor directly,
so it's safe to adjust the visiblity.
If `CompatController::createSortControl()` is not used,
handleRequest may not be called. This is the case for
Icinga DB Web < 1.1 and Icinga Web Graphite integration
<= 1.2.3.

Should be easily reverted.
Icinga Cube does not even use `CompatController::createSortControl()`
or a custom override like Icinga Web Graphite Integration. Therefore,
unless it calls handleRequest(), we still need to load the sort rule
from the request in getSort() directly.

Should be easily reverted.
@nilmerg nilmerg force-pushed the feature/sort-control-post-support-172 branch from 3cd95ba to 981f105 Compare August 3, 2023 13:24
@nilmerg nilmerg merged commit 8de7d69 into main Aug 3, 2023
6 of 12 checks passed
@nilmerg nilmerg deleted the feature/sort-control-post-support-172 branch August 3, 2023 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SortControl does not process POST requests properly
1 participant