Skip to content
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

Sentry as option #6759

Merged
merged 3 commits into from
May 16, 2022
Merged

Sentry as option #6759

merged 3 commits into from
May 16, 2022

Conversation

diocas
Copy link
Contributor

@diocas diocas commented Apr 7, 2022

Would you take this? This is quite useful for us to get user's issues without having to wait for a ticket.
I've made it optional and configurable.
But.. Our centrally managed Sentry instance doesn't run the latest version, so the config/package version in here is also not the latest.

@update-docs
Copy link

update-docs bot commented Apr 7, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@ownclouders
Copy link
Contributor

Results for oCISSharingPerm3 https://drone.owncloud.com/owncloud/web/24585/66/1

💥 The acceptance tests failed on retry. Please find the screenshots inside ...

webUISharingFolderAdvancedPermissionMultipleUsers-sharedFolderWithMultipleUsersAdvancedPermissions_feature-L50.png

webUISharingFolderAdvancedPermissionMultipleUsers-sharedFolderWithMultipleUsersAdvancedPermissions_feature-L50.png

💥 The acceptance tests pipeline failed. The build has been cancelled.

Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally (not speaking for team as a whole) I'm a fan of Sentry and of providing this in general . 🎉

But I'm not happy with the PR as it is right now:

  • I'm not a fan of the * imports
    Especially not where you changed the existing import.. Please use named imports (and maybe rename setUser to setSentryUser or sentrySetUser or something for more clarity)

  • We should not introduce outdated dependencies
    Why can't you use an up to date version? Did they really have breaking changes?

@diocas
Copy link
Contributor Author

diocas commented Apr 8, 2022

Thanks for the comments.
Yes, the latest versions are not compatible with the older. The biggest problem is that they introduced a new message that I cannot disable, and this would result in tons of errors.
I can try to see if we can update our central version.

Edit: it looks like it can be disabled after all!

@CLAassistant
Copy link

CLAassistant commented Apr 29, 2022

CLA assistant check
All committers have signed the CLA.

@javfg
Copy link
Contributor

javfg commented Apr 29, 2022

Sorry for the commit message, I was meaning to upload that to my fork. :)

@diocas
Copy link
Contributor Author

diocas commented May 3, 2022

@dschmidt now that @javfg did some improvements, can you do another review?

@diocas diocas requested a review from dschmidt May 5, 2022 09:36
Copy link
Contributor

@pascalwengerter pascalwengerter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with these changes (even though it adds 300kb to the vendor bundle), thanks for updating the dependency in the meantime! @dschmidt what about you?

@pascalwengerter
Copy link
Contributor

@diocas I suggest another rebase once @dschmidt has added another review to get CI green, it has gotten way more reliable recently :)

Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving to unblock, but please revert the import change before merging

@@ -3,7 +3,7 @@ import { RuntimeConfiguration } from './types'
import { buildApplication, NextApplication } from './application'
import { Store } from 'vuex'
import VueRouter from 'vue-router'
import { VueConstructor } from 'vue'
import Vue from 'vue'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, please don't

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As noted, please rebase and revert the change back to importing VueConstructor instead of Vue (and usage below, ofc)

@@ -3,7 +3,7 @@ import { RuntimeConfiguration } from './types'
import { buildApplication, NextApplication } from './application'
import { Store } from 'vuex'
import VueRouter from 'vue-router'
import { VueConstructor } from 'vue'
import Vue from 'vue'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As noted, please rebase and revert the change back to importing VueConstructor instead of Vue (and usage below, ofc)

* @param runtimeConfiguration
*/
export const startSentry = (runtimeConfiguration: RuntimeConfiguration): void => {
if (runtimeConfiguration.sentry?.dsn) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please add this to the docs with a quick note on how to enable

@javfg
Copy link
Contributor

javfg commented May 16, 2022

Hey @pascalwengerter @dschmidt, I've applied the suggestions you requested. Can you take a look?

Thanks!

@pascalwengerter
Copy link
Contributor

Hey @pascalwengerter @dschmidt, I've applied the suggestions you requested. Can you take a look?

Thanks!

Hey, yes it does look good but I reckon you'll need to rebase on the most recent web master one more time due to merge conflicts 🥴

@javfg
Copy link
Contributor

javfg commented May 16, 2022

Hey @pascalwengerter @dschmidt, I've applied the suggestions you requested. Can you take a look?
Thanks!

Hey, yes it does look good but I reckon you'll need to rebase on the most recent web master one more time due to merge conflicts woozy_face

Just did, but the CI is still breaking. Did I miss something?

@@ -6,7 +6,13 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^6.1.1",
"@popperjs/core": "^2.4.0",
<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javfg 👀

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that, should be fixed now.

@javfg javfg force-pushed the up_sentry branch 3 times, most recently from b136e1e to 5debb34 Compare May 16, 2022 11:09
@sonarcloud
Copy link

sonarcloud bot commented May 16, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

30.0% 30.0% Coverage
0.0% 0.0% Duplication

@pascalwengerter pascalwengerter merged commit d2f8544 into owncloud:master May 16, 2022
ownclouders pushed a commit that referenced this pull request May 16, 2022
Author: Diogo Castro <diogo.castro@cern.ch>
Date:   Mon May 16 13:56:21 2022 +0200

    Sentry as option (#6759)

    * Sentry support

    * Extensible Sentry config

    * Apply suggestions, add changelog

    Co-authored-by: Javier Ferrer <javier.ferrer@cern.ch>
@diocas diocas deleted the up_sentry branch May 17, 2022 07:03
@kulmann kulmann mentioned this pull request May 25, 2022
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants