Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

use the newest rollbar.js version, but allow user to select custom one #16

Merged
merged 1 commit into from
Oct 9, 2015

Conversation

filipgolonka
Copy link
Contributor

@@ -53,6 +53,7 @@ ftrrtf_rollbar:
source_map_enabled: true
code_version: "some version string, such as a version number or git sha"
guess_uncaught_frames: true
rollbarjs_version: "rollbar_js_version" // i.e. v1.7, if empty then the newest available version will be used
Copy link

Choose a reason for hiding this comment

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

you should use # for comment, and maybe "newest" as a default value? what you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 for comment, I think that we should allow developer not to pass rollbarjs_version config option, instead of forcing him to fill it with "newest"

@filipgolonka
Copy link
Contributor Author

It can break backward compatibility (I'm not sure) so probably we need to relase it as v1.0

@mplachta
Copy link

mplachta commented Oct 5, 2015

Yeah, I agree with Filip, we discussed this and if we merge this PR, then we should change major version number to let users know that we're breaking backwards compatibility.

@@ -13,14 +13,12 @@
"require" : {
"php" : ">=5.3",
"symfony/framework-bundle": ">=2.3,<3.0",
"ftrrtf/rollbar-notifier": "~1.0"
"ftrrtf/rollbar-notifier": "~1.0",
"twig/extensions": "^1.1"
Copy link
Owner

Choose a reason for hiding this comment

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

Twig is not a mandatory library (and should not be so), it generally can not be installed in a project (e.g. some API).

Copy link

Choose a reason for hiding this comment

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

👍 add as a recommended library?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ftrrtf definitely, but there are tests for it. So I will leave it as suggested package and maybe add it as dev dependency?

@ftrrtf
Copy link
Owner

ftrrtf commented Oct 5, 2015

I've been thinking about such features. But I have not found a good universal solution. Perhaps it makes sense to move towards UMD https://github.com/rollbar/rollbar.js#umd--browserify--requirejs--webpack

@filipgolonka
Copy link
Contributor Author

@ftrrtf I contacted Rollbar support and they gave me info about v1 script (which contains always the newest version from branch v1.x)

@ftrrtf
Copy link
Owner

ftrrtf commented Oct 6, 2015

@filipgolonka ie no problems with incompatible versions of the js clients and the snippet (#16 (comment))?

@@ -49,6 +49,9 @@ public function getConfigTreeBuilder()
->booleanNode('guess_uncaught_frames')
->defaultFalse()
->end()
->scalarNode('rollbarjs_version')
->defaultValue('')
Copy link
Owner

Choose a reason for hiding this comment

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

I think it would be better to setup the default version here, instead RollbarExtension::getRollbarJsVersion
(https://github.com/ftrrtf/FtrrtfRollbarBundle/pull/16/files#diff-38c58ba1801f78ea80e449d3547809dbR109)

@filipgolonka
Copy link
Contributor Author

@ftrrtf yes, I check it with rollbarjs version from 1.3 to 1.7 - everytime it is working.

@ftrrtf
Copy link
Owner

ftrrtf commented Oct 8, 2015

#16 (comment)
I think that there are no real BC breaks, so possible to make the usual release. What do you think, @filipgolonka @mplachta?

@filipgolonka
Copy link
Contributor Author

correct @ftrrtf , now we are sure, that nothing will break, so @mplachta you can do it as usual.

@mplachta
Copy link

mplachta commented Oct 9, 2015

Yeap, merging.

mplachta pushed a commit that referenced this pull request Oct 9, 2015
use the newest rollbar.js version, but allow user to select custom one
@mplachta mplachta merged commit 629bd84 into ftrrtf:master Oct 9, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants