-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add option to not modify readonly files during copy, add logging of time #19894
Conversation
…g of time This may improve performance in certain scenarios with Windows OS.
@TatuLund you have changed the default behaviour, I only wanted a possibility to turn it of. |
@thomasharre Thanks for spotting that. I was testing this locally changing the value back and forth, it was wrong value by accident. |
What's the idea behind the usage of the static field? Is the developer supposed to change it in the application code? |
Yes it would. |
We are only experiencing problems in certain developer environements. A system property would also work, but the current solution with public static field would be a fast way to help us. |
I still would prefer a system property, instead of the static field. Something like |
A system property would also work fine for me. So the code in copyLocalResources would be something like? @TatuLund would that suit you? If yes, could you please commit that? |
@TatuLund the member 'performReadonlyCheck' should not be static |
@thomasharre No, it must be as the method where it is used is static |
@TatuLund
|
@thomasharre Both work, but you are right it is cleaner version. Funny that Sonar did not complain about it. |
@TatuLund thanks @mcollovati could you take another look and descide if this can be merged? |
flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskCopyLocalFrontendFiles.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a comment about naming, other than that LGTM
Quality Gate passedIssues Measures |
…g of time (#19894) (#19906) Allows to skip setting writable flag on copied files by providing the vaadin.frontend.disableWritableFlagCheckOnCopy system property. This may improve performance in certain scenarios with Windows OS. Fixes #19866 Co-authored-by: Tatu Lund <[email protected]>
This ticket/PR has been released with Vaadin 24.5.0.alpha16 and is also targeting the upcoming stable 24.5.0 version. |
Allows to skip setting the writable flag on copied files, by providing the vaadin.frontend.disableWritableFlagCheckOnCopy system property.
This may improve performance in certain scenarios with Windows OS.
Fixes #19866