Skip to content

Conversation

@elzody
Copy link
Contributor

@elzody elzody commented Jun 13, 2025

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 juliusknorr June 13, 2025 20:44
@elzody elzody self-assigned this Jun 13, 2025
@elzody elzody requested review from a team and skjnldsv as code owners June 13, 2025 20:44
@elzody elzody requested review from artonge and sorbaugh and removed request for a team June 13, 2025 20:44
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Jun 13, 2025
@elzody elzody moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Office team Jun 13, 2025
@elzody elzody requested a review from a team June 16, 2025 19:17
@juliusknorr
Copy link
Member

/compile rebase

elzody and others added 2 commits June 17, 2025 09:58
@nextcloud-command nextcloud-command force-pushed the fix/unnecessary-template-fields-request branch from e8d508e to 77da39c Compare June 17, 2025 10:00
@nextcloud-command nextcloud-command requested a review from a team as a code owner June 17, 2025 10:00
@elzody
Copy link
Contributor Author

elzody commented Jun 17, 2025

/backport to stable31

@elzody elzody merged commit 63b9ea7 into master Jun 17, 2025
124 checks passed
@elzody elzody deleted the fix/unnecessary-template-fields-request branch June 17, 2025 13:47
@github-project-automation github-project-automation bot moved this from 👀 In review to ☑️ Done in 📝 Office team Jun 17, 2025
@skjnldsv skjnldsv mentioned this pull request Aug 19, 2025
Sign up for free to 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.

5 participants