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

Search: Add folder search #1215

Merged

Conversation

SMillerDev
Copy link
Contributor

This adds folder search to the unified search.

@nextcloud/news and @nextcloud/designers any opinions on what should be searchable in news? I'm currently thinking just feeds and folders.

@anoymouserver
Copy link
Contributor

anoymouserver commented Mar 2, 2021

The previous search implementation allowed to search for items (using the searchIndex field) which was pretty useful in my opinion.
Maybe the search could be contextual .. from outside the News app it could find feeds and folders (and link to it) and if the focus is our app it could also filter the currently displayed items (the current frontend doesn't allow linking to items).


Filtering is apparently possible using the emitted events (which is currently undocumented):
https://github.com/nextcloud/deck/blob/57acc60a27c27e912e90a4ff57d66a6655260bcf/src/main.js#L78-L83
But I don't know whether this is compatible with our current Angular frontend.

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

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

Good for me

@Grotax Grotax added API Impact API/Backend code enhancement labels Mar 3, 2021
@SMillerDev SMillerDev force-pushed the feature/search/restore_folders branch from 0d51d28 to 8f511d5 Compare March 25, 2021 21:21
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
@SMillerDev SMillerDev force-pushed the feature/search/restore_folders branch from 8f511d5 to 1541d7d Compare March 25, 2021 21:26
@codecov-io
Copy link

Codecov Report

Merging #1215 (9cde1ff) into master (2baa7a2) will decrease coverage by 0.73%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1215      +/-   ##
============================================
- Coverage     87.25%   86.51%   -0.74%     
- Complexity      701      708       +7     
============================================
  Files            60       61       +1     
  Lines          2519     2537      +18     
============================================
- Hits           2198     2195       -3     
- Misses          321      342      +21     
Impacted Files Coverage Δ Complexity Δ
lib/Search/FolderSearchProvider.php 0.00% <0.00%> (ø) 7.00 <7.00> (?)
lib/Fetcher/FeedFetcher.php 88.57% <0.00%> (-0.17%) 37.00% <0.00%> (ø%)
lib/Service/FeedServiceV2.php 100.00% <0.00%> (ø) 28.00% <0.00%> (ø%)
lib/Command/Debug/ItemList.php 0.00% <0.00%> (ø) 6.00% <0.00%> (ø%)
lib/Command/Debug/FeedItemList.php 0.00% <0.00%> (ø) 6.00% <0.00%> (ø%)
lib/Command/Debug/FolderItemList.php 0.00% <0.00%> (ø) 8.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2baa7a2...9cde1ff. Read the comment docs.

@SMillerDev SMillerDev merged commit da61c93 into nextcloud:master Mar 29, 2021
@SMillerDev SMillerDev deleted the feature/search/restore_folders branch March 29, 2021 07:25
Grotax added a commit that referenced this pull request Apr 3, 2021
Changed
- Add BATS as integration tests (#1213)
- Update FeedFetcher to import categories from feeds (#1248)
- Update serialization of item to include categories (#1248)
- Make PHPStan stricter (#955)
- Search: Add folder search (#1215)
- Improve test coverage (#1263)
- Allow directly adding a feed without going through the discovery process (#1265)

Fixed
- Do not show deleted feeds in item list (#1214)
- Fix update queries (#1211)
@Grotax Grotax mentioned this pull request Apr 3, 2021
Grotax added a commit that referenced this pull request Apr 3, 2021
Changed
- Add BATS as integration tests (#1213)
- Update FeedFetcher to import categories from feeds (#1248)
- Update serialization of item to include categories (#1248)
- Make PHPStan stricter (#955)
- Search: Add folder search (#1215)
- Improve test coverage (#1263)
- Allow directly adding a feed without going through the discovery process (#1265)

Fixed
- Do not show deleted feeds in item list (#1214)
- Fix update queries (#1211)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Grotax added a commit that referenced this pull request Apr 3, 2021
Changed
- Add BATS as integration tests (#1213)
- Update FeedFetcher to import categories from feeds (#1248)
- Update serialization of item to include categories (#1248)
- Make PHPStan stricter (#955)
- Search: Add folder search (#1215)
- Improve test coverage (#1263)
- Allow directly adding a feed without going through the discovery process (#1265)

Fixed
- Do not show deleted feeds in item list (#1214)
- Fix update queries (#1211)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Neo11 pushed a commit to Neo11/news that referenced this pull request May 28, 2022
* Search: Add folder search

Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Neo11 pushed a commit to Neo11/news that referenced this pull request May 28, 2022
Changed
- Add BATS as integration tests (nextcloud#1213)
- Update FeedFetcher to import categories from feeds (nextcloud#1248)
- Update serialization of item to include categories (nextcloud#1248)
- Make PHPStan stricter (nextcloud#955)
- Search: Add folder search (nextcloud#1215)
- Improve test coverage (nextcloud#1263)
- Allow directly adding a feed without going through the discovery process (nextcloud#1265)

Fixed
- Do not show deleted feeds in item list (nextcloud#1214)
- Fix update queries (nextcloud#1211)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Impact API/Backend code enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants