Skip to content

fix(templates): avoid extra file write - #5971

Open
elzody wants to merge 3 commits into
mainfrom
fix/template-antivirus-double-scan
Open

fix(templates): avoid extra file write#5971
elzody wants to merge 3 commits into
mainfrom
fix/template-antivirus-double-scan

Conversation

@elzody

@elzody elzody commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Avoids an extra file write when no template fields are provided. Not only does this avoid an extra write to the file, but it consequently also prevents the files_antivirus app from doing a second, sequential scan on the file; this should reduce the latency between creating a file and seeing it.

Assisted-by: ClaudeCode:claude-sonnet-4-6

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@elzody
elzody requested review from moodyjmz and rikled August 10, 2026 22:00
@elzody elzody self-assigned this Aug 10, 2026
@elzody
elzody requested a review from juliusknorr as a code owner August 10, 2026 22:00
@elzody elzody added the 3. to review Ready to be reviewed label Aug 10, 2026
@elzody
elzody force-pushed the fix/template-antivirus-double-scan branch from 4392198 to b19aff9 Compare August 10, 2026 22:26
Avoids an extra file write when no template fields are provided. Not
only does this avoid an extra write to the file, but it consequently
also prevents the files_antivirus app from doing a second, sequential
scan on the file; this should reduce the latency between creating a file
and seeing it.

Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
Assisted-by: ClaudeCode:claude-sonnet-4-6
@elzody
elzody force-pushed the fix/template-antivirus-double-scan branch from b19aff9 to 0e10eea Compare August 12, 2026 16:03
elzody added 2 commits August 12, 2026 19:58
The Save As exportmenubutton in the notebookbar is built with an empty
SaveAsMenu (and thus a disabled container) when the File tab panel first
renders before LibreOffice Core has reported the document type. Clicking
a disabled container returns immediately without opening the dropdown,
causing the #saveas-entries > div assertion to time out.

Assert that the button's parent container does not have the disabled
attribute before clicking. Cypress retries this assertion until the
notebookbar rebuilds with the correct document type and a populated
SaveAsMenu, at which point the click reliably opens the dropdown.

Assisted-by: ClaudeCode:claude-sonnet-4-6
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant