Skip to content

feat(recent-search): include recently uploaded files in addition to modified files#1498

Open
cristianscheid wants to merge 2 commits intomainfrom
feat/1698/recent-files-include-recently-uploaded
Open

feat(recent-search): include recently uploaded files in addition to modified files#1498
cristianscheid wants to merge 2 commits intomainfrom
feat/1698/recent-files-include-recently-uploaded

Conversation

@cristianscheid
Copy link

@cristianscheid cristianscheid commented Feb 13, 2026

  • Resolves: #

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 getlastmodified OR getuploadtime is within the specified time threshold.

This change depends on this backend PR which adds support for the getuploadtime property in file search queries:

Checklist

@cristianscheid cristianscheid self-assigned this Feb 13, 2026
@cristianscheid cristianscheid added type: enhancement 🚀 New feature or request 3. to review 3️⃣ Waiting for reviews labels Feb 13, 2026
@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.77%. Comparing base (bd65425) to head (2647836).
⚠️ Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
lib/dav/davProperties.ts 50.00% 0 Missing and 2 partials ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…odified files

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
@cristianscheid cristianscheid force-pushed the feat/1698/recent-files-include-recently-uploaded branch from d4def9b to 304e6e6 Compare February 13, 2026 17:40
@susnux
Copy link
Contributor

susnux commented Feb 16, 2026

Lets wait for nextcloud/server#58327 to be merged before merging this.

@cristianscheid
Copy link
Author

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?

@susnux
Copy link
Contributor

susnux commented Feb 17, 2026

What came to my mind:

Does this work without the merged PR?
What will happen if you use this feature with 33.0.0 where it was not yet merged?
If it will cause errors we need to put this behind a capability.

@cristianscheid
Copy link
Author

cristianscheid commented Feb 17, 2026

Does this work without the merged PR? What will happen if you use this feature with 33.0.0 where it was not yet merged?

@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?

If it will cause errors we need to put this behind a capability.

Do you have an approach in mind for this?

@susnux
Copy link
Contributor

susnux commented Feb 17, 2026

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
}

@cristianscheid cristianscheid force-pushed the feat/1698/recent-files-include-recently-uploaded branch 2 times, most recently from 617efd3 to fb788c5 Compare February 18, 2026 16:10
…ort it

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
@cristianscheid cristianscheid force-pushed the feat/1698/recent-files-include-recently-uploaded branch from fb788c5 to 2647836 Compare February 18, 2026 16:12
@cristianscheid
Copy link
Author

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
}

Thanks for the suggestion @susnux! I’ve just finished the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review 3️⃣ Waiting for reviews type: enhancement 🚀 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments