Skip to content

feat: set creation_time on file creation and render recently created icon#58562

Merged
sorbaugh merged 5 commits intomasterfrom
feat/1699/recent-files-mark-recently-created
Mar 3, 2026
Merged

feat: set creation_time on file creation and render recently created icon#58562
sorbaugh merged 5 commits intomasterfrom
feat/1699/recent-files-mark-recently-created

Conversation

@cristianscheid
Copy link
Contributor

@cristianscheid cristianscheid commented Feb 25, 2026

  • Resolves: #

Summary

This PR:

  • Sets creation_time (on filecache_extended table) when a new file is created
    • e.g. via Collabora on Files app: New > New Document
  • Adds creation_time as a supported field in file search queries
  • Renders a "recently created" icon on the Recent tab for files created in the last 24 hours

An additional frontend PR was opened on nextcloud-libraries/nextcloud-files to enable fetching creation_time:

This backend PR is independent and can be merged first, as it only adds new functionality and should not break existing behavior.

Screenshots

Before:

before

After:

after

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@cristianscheid cristianscheid self-assigned this Feb 25, 2026
@cristianscheid cristianscheid requested review from a team and skjnldsv as code owners February 25, 2026 11:43
@cristianscheid cristianscheid requested review from ArtificialOwl, leftybournes, salmart-dev, sorbaugh and szaimen and removed request for a team February 25, 2026 11:43
@cristianscheid
Copy link
Contributor Author

/backport to stable33

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

@szaimen szaimen added this to the Nextcloud 34 milestone Feb 25, 2026
@cristianscheid
Copy link
Contributor Author

/compile

@cristianscheid
Copy link
Contributor Author

/backport to stable32

@cristianscheid
Copy link
Contributor Author

/backport to stable31

@cristianscheid
Copy link
Contributor Author

/backport to stable30

@cristianscheid
Copy link
Contributor Author

/backport to stable29

@cristianscheid cristianscheid force-pushed the feat/1699/recent-files-mark-recently-created branch from 47ed62b to 97d6894 Compare February 26, 2026 17:44
@cristianscheid
Copy link
Contributor Author

/compile

@cristianscheid cristianscheid force-pushed the feat/1699/recent-files-mark-recently-created branch from d4f0c0b to 50e6fb7 Compare February 27, 2026 19:26
@cristianscheid
Copy link
Contributor Author

/compile

…icon

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
…pload_time capabilities

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
…rop setup() instead of data()

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
…e and crtime instead of attributes.upload_time

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
@cristianscheid cristianscheid force-pushed the feat/1699/recent-files-mark-recently-created branch from 0541888 to 3458d31 Compare March 3, 2026 12:46
@cristianscheid
Copy link
Contributor Author

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@sorbaugh sorbaugh merged commit f6c79c0 into master Mar 3, 2026
181 of 193 checks passed
@sorbaugh sorbaugh deleted the feat/1699/recent-files-mark-recently-created branch March 3, 2026 15:08
@backportbot
Copy link

backportbot bot commented Mar 3, 2026

The backport to stable29 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable29
git pull origin stable29

# Create the new backport branch
git checkout -b backport/58562/stable29

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 7f89490c 3a21ad40 03f93d97 3458d315 3836eb6b

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/58562/stable29

Error: Failed to push branch backport/58562/stable29: remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/nextcloud/server.git/'


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

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

Labels

3. to review Waiting for reviews backport-request enhancement hotspot: file time handling ctime, mtime, etc. handling during various operations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants