Skip to content

fix: do not extract fields for blank template - #53477

Merged
elzody merged 2 commits into
masterfrom
fix/unnecessary-template-fields-request
Jun 17, 2025
Merged

fix: do not extract fields for blank template#53477
elzody merged 2 commits into
masterfrom
fix/unnecessary-template-fields-request

Conversation

@elzody

Copy link
Copy Markdown
Contributor

Summary

There is a request to the /ocs/v2.php/apps/files/api/v1/templates/fields/{fileid} endpoint where the file ID is undefined. This was due to the template field extraction request being submitted on the blank template and invalid template selections as well. In this case, we skip the request and use an empty array of fields.

In the end, it saves a few miliseconds of time in these cases.

Checklist

@elzody
elzody requested a review from juliusknorrJune 13, 2025 20:44
@elzodyelzody self-assigned this Jun 13, 2025
@elzody
elzody requested review from a team and skjnldsv as code ownersJune 13, 2025 20:44
@elzody
elzody requested review from artonge and sorbaugh and removed request for a teamJune 13, 2025 20:44
@github-project-automationgithub-project-automationBot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity teamJun 13, 2025
@elzodyelzody moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity teamJun 13, 2025
@elzody
elzody requested a review from a teamJune 16, 2025 19:17
@juliusknorr

Copy link
Copy Markdown
Member

/compile rebase

elzodyand others added 2 commits June 17, 2025 09:58
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command
nextcloud-commandforce-pushed the fix/unnecessary-template-fields-request branch from e8d508e to 77da39cCompareJune 17, 2025 10:00
@nextcloud-command
nextcloud-command requested a review from a team as a code ownerJune 17, 2025 10:00
@elzody

Copy link
Copy Markdown
ContributorAuthor

/backport to stable31

@elzody
elzody merged commit 63b9ea7 into masterJun 17, 2025
@elzody
elzody deleted the fix/unnecessary-template-fields-request branch June 17, 2025 13:47
@github-project-automationgithub-project-automationBot moved this from 👀 In review to ☑️ Done in 📝 Productivity teamJun 17, 2025
@skjnldsvskjnldsv mentioned this pull request Aug 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants

@elzody@juliusknorr@skjnldsv@nextcloud-command