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

UI: Install/Update Component filter to lower case #2531

Conversation

DerStoecki
Copy link
Contributor

Issue

When entering CamelCased / Uppercase entries in the search bar of component install/update -> the components won't show/cannot be found since the filter is CaseSensitive, while the filteredComponents are not.

see :

entry.filteredComponents = entry.components.filter(entry =>
// Search for filter strings in Component-ID, -Alias and Factory-ID
Utils.matchAll(filters, [
entry.id.toLowerCase(),
entry.alias.toLowerCase(),
entry.factoryId,
]),

Fix

set filter to lowerCase

Co-authored-by: Ulrich Laupp [email protected]

Comparison

Before

Before

After

After

since the filter is applied to entry id/alias .toLowerCase() the filter themself should be lower case too.

Co-authored-by:  Ulrich Laupp  <[email protected]>
@DerStoecki DerStoecki self-assigned this Feb 8, 2024
Copy link

github-actions bot commented Feb 8, 2024

Code Coverage

Copy link
Contributor

@clehne clehne left a comment

Choose a reason for hiding this comment

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

Ok. Not sure if this may breaks any processes at other companys. Maybe someone from Fenecon can have a look at it too.

Copy link
Contributor

@sfeilmeier sfeilmeier left a comment

Choose a reason for hiding this comment

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

Perfect. Thank you!

@sfeilmeier sfeilmeier merged commit 4267c23 into OpenEMS:develop Mar 4, 2024
2 checks passed
fanass-dev pushed a commit to fanass-dev/openems that referenced this pull request May 6, 2024
since the filter is applied to entry id/alias .toLowerCase() the filter themself should be lower case too.

Co-authored-by: Ulrich Laupp <[email protected]>
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