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

EZP-31680: Added UDW Search language filter #1407

Merged
merged 1 commit into from Jun 23, 2020
Merged

EZP-31680: Added UDW Search language filter #1407

merged 1 commit into from Jun 23, 2020

Conversation

barw4
Copy link
Member

@barw4 barw4 commented Jun 22, 2020

Question Answer
Tickets https://jira.ez.no/browse/EZP-31680
Improvement? yes
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

PR is a direct continuation of ezsystems/ezplatform-admin-ui-modules#286

Related ezplatform-kernel PR: ezsystems/ezplatform-rest#51

image

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@@ -130,11 +130,14 @@ export const loadAccordionData = (
.catch(showErrorNotification);
};

export const findLocationsBySearchQuery = ({ token, siteaccess, query, limit = QUERY_LIMIT, offset = 0 }, callback) => {
export const findLocationsBySearchQuery = ({ token, siteaccess, query, limit = QUERY_LIMIT, offset = 0, languageCode = null }, callback) => {
const useAlwaysAvailable = true;
Copy link
Member

Choose a reason for hiding this comment

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

I'm no familiar with this option, is this something I would like to change to false in some cases?

Copy link
Member Author

Choose a reason for hiding this comment

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

@dew326 I don't think it should be changed for false while searching in UDW, its hard-coded to true in main "Search" module as well.

Copy link
Member Author

@barw4 barw4 Jun 23, 2020

Choose a reason for hiding this comment

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

"useAlwaysAvailable defaults to true to avoid exceptions on missing translations"

@micszo micszo self-assigned this Jun 23, 2020
@micszo micszo removed their assignment Jun 23, 2020
@lserwatka lserwatka merged commit a750b19 into 2.0 Jun 23, 2020
@lserwatka lserwatka deleted the EZP-31680 branch June 23, 2020 13:25
@lserwatka
Copy link
Member

You can merge it up.

@barw4
Copy link
Member Author

barw4 commented Jun 23, 2020

Done: 87b37d1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants