-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ref: allow hosted js sdk bundles #3365
ref: allow hosted js sdk bundles #3365
Conversation
Wow, this looks quite nice! I'd make it opt-out rather than opt-in as it the assets shouldn't take too much space and this is a great quality of life improvement. I still don't get the reasoning behind using an external volume compared to a project-specific volume tho. Can you expand on that a bit? |
@BYK I made it quite a while ago so I don't really remember. Probably because the nginx container has web container as the dependency, so I think we shouldn't start the nginx container at all. If there is something like "docker compose volume create", that'd be nice. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3365 +/- ##
=======================================
Coverage 99.01% 99.01%
=======================================
Files 3 3
Lines 203 203
=======================================
Hits 201 201
Misses 2 2 ☔ View full report in Codecov by Sentry. |
I mean you don't need to spin up WDYT? |
In the end, I used But I'd still prefer making this opt-in instead. I don't know about other people though. |
Finally. The test passed, but I still need to modify the wordings & docs for this. |
Co-authored-by: Burak Yigit Kaya <ben@byk.im>
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.
Looks pretty good, just one minor comment. This is awesome work!
@@ -0,0 +1,37 @@ | |||
# This will only run if the SETUP_JS_SDK_ASSETS environment variable is set to 1 | |||
if [[ "${SETUP_JS_SDK_ASSETS:-}" == "1" ]]; then |
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.
IMO if we're going to include this as part of the install script moving forwards, I'd like to see it in the .env
file just to surface this as something people can set up. We can leave it as default for opt-in
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.
Oh not you too :(
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.
Oh sorry I read that wrong. Lol.
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.
Okay done
Since this is hanging on my branch, I guess I'll make it out here. A part of making the JS SDK loader script available on the self-hosted sentry. Refer to getsentry/sentry#22715.
Since not everyone is happy on hosting the JS SDK themself, therefore I made it into a feature flag. Set
SETUP_JS_SDK_ASSETS=1
on the.env
file to enable the script. Also setSETUP_JS_SDK_KEEP_OLD_ASSETS=1
to never delete (or basically cleanup) previous JS SDK version.Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.