feat(recent-search): include recently uploaded files in addition to modified files#1498
feat(recent-search): include recently uploaded files in addition to modified files#1498cristianscheid wants to merge 2 commits intomainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1498 +/- ##
==========================================
- Coverage 85.99% 85.77% -0.22%
==========================================
Files 30 30
Lines 664 668 +4
Branches 194 198 +4
==========================================
+ Hits 571 573 +2
Misses 81 81
- Partials 12 14 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…odified files Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
d4def9b to
304e6e6
Compare
|
Lets wait for nextcloud/server#58327 to be merged before merging this. |
@susnux The PR was merged, should we go ahead and merge this one as well? |
|
What came to my mind: Does this work without the merged PR? |
@susnux Good catch! If we use this feature with server 33.0.0 it will cause errors, since we did not backport the server to that version. Can we still backport the server PR to 33?
Do you have an approach in mind for this? |
|
Either put a new capability into server or use the version const major = Number.parseInt((window.OC?.config?.version ?? '0').split('.')[0])
const path = Number.parseInt((window.OC?.config?.version ?? '0').split('.')[2])
if (major > 33 || (major === 33 && patch > 0)) {
// now use the new stuff
} |
617efd3 to
fb788c5
Compare
…ort it Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
fb788c5 to
2647836
Compare
Thanks for the suggestion @susnux! I’ve just finished the implementation. |
Summary
Updates the recent files search query to include files that were recently uploaded in addition to files that were recently modified. The search now uses an OR condition to match files where either
getlastmodifiedORgetuploadtimeis within the specified time threshold.This change depends on this backend PR which adds support for the
getuploadtimeproperty in file search queries:Checklist
3. to review, feature component)stable32)