-
Notifications
You must be signed in to change notification settings - Fork 178
Improve release default value #325
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
Changes from all commits
42cebd8
4c1d901
5e3b50b
fb6e5eb
9be2e8c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ package.xml | |
.idea | ||
.php_cs.cache | ||
docs/_build | ||
var |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
namespace Sentry\SentryBundle\DependencyInjection; | ||
|
||
use Jean85\PrettyVersions; | ||
use PackageVersions\Versions; | ||
use Sentry\Options; | ||
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; | ||
|
@@ -111,7 +112,7 @@ public function getConfigTreeBuilder(): TreeBuilder | |
->prototype('scalar'); | ||
$optionsChildNodes->scalarNode('project_root'); | ||
$optionsChildNodes->scalarNode('release') | ||
->defaultValue(Versions::getVersion(Versions::ROOT_PACKAGE_NAME)) | ||
->defaultValue(PrettyVersions::getVersion(Versions::ROOT_PACKAGE_NAME)->getPrettyVersion()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this still going to lead to trackable hashes in sentry? The previous version kinda did There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the behavior, from the readme:
[EDIT] The short version is just the tag. So, it should. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Jean85 most software is released via rolling If sentry can work with that, we should be OK, just wanted to make sure of that. |
||
->info('Release version to be reported to sentry, see https://docs.sentry.io/workflow/releases/?platform=php') | ||
->example('my/application@ff11bb'); | ||
$optionsChildNodes->floatNode('sample_rate') | ||
|
This file was deleted.
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.
This removal seems wrong, as the code is still depending directly on
\PackageVersions\Versions::ROOT_PACKAGE_NAME
insrc/DependencyInjection/Configuration.php
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.
That's right, a composer-checker run would have spotted that. BTW this will not break the app since that is an implicit dependency of
jean85/pretty-package-versions
.