-
Notifications
You must be signed in to change notification settings - Fork 156
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
Drawio improvements #6125
Drawio improvements #6125
Conversation
a879879
to
794189c
Compare
Should I fix the issue reported by sonar? I can add |
I like that you extracted the private/public link handling and I agree it should be moved out of this app. @pascalwengerter @kulmann I've added this to the Web Fastlane as I need this kind of file handling for fixing other bugs with other apps. We should discuss what a proper place would be for this functionality and loader mixin of media-viewer - be it a mixin, a service or whatever. |
Kudos, SonarCloud Quality Gate passed! |
Oopsie, I forgot I had applied it to draw.io already - so basically you just need to remove your file handling changes and need to make sure all other changes apply cleanly. Hope it's straight forward :) |
Thanks @dschmidt - one addition: draw-io now has the |
Show proper error messages to the user Fix loading spinner
Kudos, SonarCloud Quality Gate passed! |
Results for oC10SharingExternal https://drone.owncloud.com/owncloud/web/22078/40/1
|
Looks like that with the latest changes, drawio no longer takes the configurations and just uses the default values. |
errorFunc(this.$gettext("Saving error. You're not authorized to save this file")) | ||
break | ||
default: | ||
errorFunc(error.message || error) |
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.
We should maybe not leak any internal error message to the user, but we can fix that in a follow up PR imho.
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.
I agree with both statements 😅
errorFunc(this.$gettext("Saving error. You're not authorized to save this file")) | ||
break | ||
default: | ||
errorFunc(error.message || error) |
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.
I agree with both statements 😅
A couple of improvements to Drawio:
Let me know if this strategy for public links is ok. I was thinking of applying the same logic into the app provider/external app, as this is also not working properly with public links.
Maybe the mixin
fileAcess
that I created here can be moved somewhere else and re-used? Where do you suggest?web-pkg
?