Skip to content

[TSK-1374] Restrict "ValueFilter" searchable types#3148

Merged
haiodo merged 4 commits into
mainfrom
restrict-value-filter-search-types
May 10, 2023
Merged

[TSK-1374] Restrict "ValueFilter" searchable types#3148
haiodo merged 4 commits into
mainfrom
restrict-value-filter-search-types

Conversation

@s0gorelkov

Copy link
Copy Markdown
Contributor

Now the search can only be performed for strings and numbers
Screenshot 2023-05-05 at 15 05 51

Contribution checklist

Brief description

Checklist

  • - UI test added to added/changed functionality?
  • - Screenshot is added to PR if applicable ?
  • - Does the code work? Check whether function and logic are correct.
  • - Does Changelog.md is updated with changes?
  • - Does the translations are up to date?
  • - Does it well tested?
  • - Tested for Chrome.
  • - Tested for Safari.
  • - Go through the changed code looking for typos, TODOs, commented LOCs, debugging pieces of code, etc.
  • - Rebase your branch onto master and upstream branch
  • - Is there any redundant or duplicate code?
  • - Are required links are linked to PR?
  • - Does new code is well documented ?

Related issues

TSK-1374

Now the search can only be performed for strings and numbers

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@icloud.com>
@s0gorelkov
s0gorelkov requested review from BykhovDenis and haiodo May 5, 2023 11:07

// TODO: remove "TypeString" from search types after
// a separate filter for strings is implemented
$: isSearchable = [core.class.TypeNumber, core.class.TypeString].includes(filter.key.attribute.type._class)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We need Enums's here for long categories, but we will loose it. Should we better control it with some mixin?

s0gorelkov added 3 commits May 5, 2023 18:36
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@icloud.com>
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@icloud.com>
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@icloud.com>
@haiodo
haiodo merged commit 488c46e into main May 10, 2023
@haiodo
haiodo deleted the restrict-value-filter-search-types branch May 10, 2023 15:45
MichaelUray pushed a commit to MichaelUray/huly-platform that referenced this pull request Jul 9, 2026
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@icloud.com>
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.

3 participants