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

siw: improve search result message #9429

Merged
merged 1 commit into from
Jul 8, 2021
Merged

siw: improve search result message #9429

merged 1 commit into from
Jul 8, 2021

Conversation

vince-fugnitto
Copy link
Member

What it does

The following pull-request updates the search-in-workspace result message (which is displayed upon searching) by adding support for additional use-cases and options.

The changes should now support the following messages:

  • no results are found when no options are present.
  • no results are found when includes and excludes are present.
  • no results are found when includes is present.
  • no results are found when excludes is present.
  • results are found (like master) - statistics the search yields.

How to test

For each of the tests, start the application and open the search-in-workspace view:

  • No results found - search for a non-existing term without includes or excludes set.
  • No results found in {a} excluding {b} - search for a non-existing term with includes and excludes present.
  • No results found in {a} - search for a non-existing term with includes present.
  • No results found excluding {a} - search for a non-existing term with excludes present.

The message when results are found should be the same as in master.

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com

@vince-fugnitto vince-fugnitto added enhancement issues that are enhancements to current functionality - nice to haves search in workspace issues related to the search-in-workspace labels May 4, 2021
Copy link
Contributor

@alvsan09 alvsan09 left a comment

Choose a reason for hiding this comment

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

It looks good to me!!
Thanks Vince !

The following commit improves the search result message upon completing
a search-in-workspace search.

The message is improved to handle additional options:
- no results without options.
- no results when including `includes`.
- no results when including `excludes`.
- no results when including `includes` and `excludes`.
- displaying stats when results are found.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
@vince-fugnitto vince-fugnitto merged commit f5d042f into master Jul 8, 2021
@vince-fugnitto vince-fugnitto deleted the vf/siw-message branch July 8, 2021 21:06
@github-actions github-actions bot added this to the 1.16.0 milestone Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that are enhancements to current functionality - nice to haves search in workspace issues related to the search-in-workspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants