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

Use prefix search for run name at the List of runs #1434

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

csordasmarton
Copy link
Contributor

Closes #1409

Instead of exact match use prefix search at the List of runs page for filtering runs.

Instead of exact match use prefix search at the List of runs page
for filtering runs.
@@ -247,7 +247,7 @@ function (declare, dom, ItemFileWriteStore, topic, Dialog, Button,
var runNameFilter = this.get('value');
this.timer = setTimeout(function () {
var runFilter = new CC_OBJECTS.RunFilter();
runFilter.names = [runNameFilter];
runFilter.names = [runNameFilter + '*'];
Copy link
Contributor

@gyorb gyorb Mar 7, 2018

Choose a reason for hiding this comment

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

What it we would use ['*' + runNameFilter + '*'] so you could type partial run names, or we add the extra * somewhere else already to the beginning?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think if the user would like to search partially, he should write * quantifier to the input box. This is how the left side filters works on the Bug overview page (like file filter).

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, let's be consistent for every regex filter.

@gyorb gyorb merged commit 12802c6 into Ericsson:master Mar 8, 2018
@csordasmarton csordasmarton deleted the fix-ui-run-filter branch March 8, 2018 14:25
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.

By clearing the run filter does not filter every run
2 participants