Skip to content

Fix: Set SentryOptions.debug in sentry #376

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

Merged
merged 4 commits into from
Mar 22, 2021

Conversation

ueman
Copy link
Collaborator

@ueman ueman commented Mar 22, 2021

📜 Description

This change sets SentryOptions.debug in sentry_dart so it is available on all platforms/frameworks and not just Flutter.

💡 Motivation and Context

#307

💚 How did you test it?

I added more expects to existing tests.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

🔮 Next steps

@ueman
Copy link
Collaborator Author

ueman commented Mar 22, 2021

The failing tests are from #375

Edit: fixed by merging latest changes

# Conflicts:
#	dart/lib/src/sentry.dart
@ueman ueman marked this pull request as ready for review March 22, 2021 09:46
@ueman ueman mentioned this pull request Mar 22, 2021
3 tasks
@ueman ueman changed the title Fix: Set SentryOptions.debug in sentry_dart (#376) Fix: Set SentryOptions.debug in sentry Mar 22, 2021
Co-authored-by: Manoel Aranda Neto <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #376 (c3bf381) into fix/environment-variables (f37fc9c) will increase coverage by 0.60%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                      Coverage Diff                      @@
##           fix/environment-variables     #376      +/-   ##
=============================================================
+ Coverage                      90.25%   90.85%   +0.60%     
=============================================================
  Files                             52       52              
  Lines                           1652     1652              
=============================================================
+ Hits                            1491     1501      +10     
+ Misses                           161      151      -10     
Impacted Files Coverage Δ
flutter/lib/src/sentry_flutter.dart 93.54% <ø> (-0.21%) ⬇️
dart/lib/src/sentry.dart 87.71% <100.00%> (+2.00%) ⬆️
dart/lib/src/sentry_options.dart 87.50% <0.00%> (+6.25%) ⬆️
dart/lib/src/platform_checker.dart 100.00% <0.00%> (+25.00%) ⬆️
dart/lib/src/diagnostic_logger.dart 100.00% <0.00%> (+83.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f37fc9c...c3bf381. Read the comment docs.

@ueman ueman merged commit 7294bde into fix/environment-variables Mar 22, 2021
@ueman ueman deleted the fix/debug-mode branch March 22, 2021 15:26
@github-actions
Copy link
Contributor

Fails
🚫 Please consider adding a changelog entry for the next release.
`Instructions and example for changelog`$

Please add an entry to CHANGELOG.md` to the "Unreleased" section under the following heading:

To the changelog entry, please add a link to this PR (consider a more descriptive message):`

- Set `SentryOptions.debug` in sentry(#376)

If none of the above apply, you can opt out by adding _#skip-changelog_ to the PR description.

Generated by 🚫 dangerJS against 5f67729

ueman added a commit that referenced this pull request Mar 29, 2021
* Correctly read environment variables

* Changelog

* Remove env vars from sentry_flutter

* Docs & Changelog

* Calm Linter

* Hopefully fix failing tests

* Implement PR feedback

* Another try at fixing the failing tests

* Update CHANGELOG.md

Co-authored-by: Manoel Aranda Neto <[email protected]>

* Fix: Set `SentryOptions.debug` in sentry (#376)

* Fix: Set `SentryOptions.debug` in sentry_dart

* Update CHANGELOG.md

Co-authored-by: Manoel Aranda Neto <[email protected]>

Co-authored-by: Manoel Aranda Neto <[email protected]>

* Only override release and dist if not existing

* Apply PR feedback

* add teardown

* Fix path

* PR feedback

Co-authored-by: Manoel Aranda Neto <[email protected]>
Co-authored-by: Manoel Aranda Neto <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants