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

Consider current dashboard query filter and defined parameters when using message list pagination #7683

Merged
merged 7 commits into from Mar 16, 2020

Conversation

linuspahl
Copy link
Contributor

@linuspahl linuspahl commented Mar 12, 2020

Note: Needs a backport to 3.2.

As described in #7680 a message list widget with an own search query does not consider the dashboard search query filter when using the widget pagination.

With this PR we are considering the dashboard filter search query on every search re-execution. A search re-execution currently only happens when using the message list pagination.

Fixes #7680
And also fixes #7665

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@linuspahl linuspahl changed the title Consider current dashboard filter when using message list pagination Consider current dashboard query filter and defined parameters when using message list pagination Mar 12, 2020
@kmerz kmerz self-assigned this Mar 13, 2020
Copy link
Member

@kmerz kmerz left a comment

Choose a reason for hiding this comment

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

Code looks good to me and I could not reproduce the problem when testing the code!

@kmerz kmerz merged commit fc5713f into master Mar 16, 2020
@kmerz kmerz deleted the issue-7665 branch March 16, 2020 15:13
kmerz pushed a commit that referenced this pull request Mar 16, 2020
…sing message list pagination (#7683)

* Always provide current parameter bindings when reexecuting searchtypes

* provide current parameter bindings when using message list pagination

* Remove only in MessageList test

* Remove not needed mock

* Sort message list prop type definitions

* Consider global override query in search re-execution

* Fix linting

* Use current execution state directly from SearchStore
linuspahl added a commit that referenced this pull request Mar 17, 2020
…sing message list pagination (#7693)

* Consider current dashboard query filter and defined parameters when using message list pagination (#7683)

* Always provide current parameter bindings when reexecuting searchtypes

* provide current parameter bindings when using message list pagination

* Remove only in MessageList test

* Remove not needed mock

* Sort message list prop type definitions

* Consider global override query in search re-execution

* Fix linting

* Use current execution state directly from SearchStore

* Use object import for URLUtils, since qualifyURL is not exported in 3.2

Co-authored-by: Linus Pahl <46300478+linuspahl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants