Skip to content

Handle search suggestions errors#383

Merged
nilmerg merged 3 commits into
mainfrom
handle-search-suggestions-errors
May 21, 2026
Merged

Handle search suggestions errors#383
nilmerg merged 3 commits into
mainfrom
handle-search-suggestions-errors

Conversation

@nilmerg
Copy link
Copy Markdown
Member

@nilmerg nilmerg commented May 21, 2026

\ipl\Web\Control\SearchBar\Suggestions now catch \ipl\Web\Control\SearchBar\SearchException during assembly. Also, an unused CSS class has-more is not added anymore, as the initially planned pagination was never implemented and the refactor now made it unworthy to keep.

\ipl\Web\FormElement\SearchSuggestions's constructor argument is now optional and a setter to show a failure message is added. In addition to that, it catches \Exception during assembly and uses it to indicate a failure on its own.

nilmerg added 3 commits May 21, 2026 13:48
It's not exception nowadays that suggestion providers are lazy
evaluated and hence errors happen at a later stage than before.
It's no exception nowadays that suggestion providers are lazy
evaluated and hence errors happen at a later stage than before.
Additionally, a setter is introduced to indicate a failure
prior assembly.
In case a failure message is set prior assembly, there's
no need to pass a provider so it defaults to an empty
array now.
@nilmerg nilmerg added this to the 0.14.0 milestone May 21, 2026
@nilmerg nilmerg self-assigned this May 21, 2026
@cla-bot cla-bot Bot added the cla/signed label May 21, 2026
Copy link
Copy Markdown
Contributor

@BastianLedererIcinga BastianLedererIcinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I made some local modifications to icingadb-web's QueryColumnsProvider and my notifications-web PR to test the exception handling for both suggestion types.
I will adjust the latter to rely on these changes.

@nilmerg nilmerg merged commit 9edcad8 into main May 21, 2026
14 checks passed
@nilmerg nilmerg deleted the handle-search-suggestions-errors branch May 21, 2026 14:00
nilmerg added a commit to Icinga/icinga-notifications-web that referenced this pull request May 22, 2026
resolve #466 

Introduce `RuleSerializer` to create Json from a configured filter.

Introduce `Icinga\Module\Notifications\Hook\V2` which no longer requires
`serializeRuleFilter()` and `getRuleFilterTargets()` as they are now
obsolete.

Adjust `EventRuleController` to skip target selection use the new
`RuleSerializer`.


require Icinga/ipl-web#380
require Icinga/ipl-web#383
require Icinga/ipl-stdlib#75
require Icinga/ipl-stdlib#76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SearchBar\Suggestions and SearchSuggestions do not handle errors happening duration assembly

2 participants