Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Nov 10, 2020

Didn't we miss it? The error dialog? 🤗

@d4rken d4rken added bug Something isn't working maintainers Tag pull requests created by maintainers labels Nov 10, 2020
@d4rken d4rken added this to the 1.7.0 milestone Nov 10, 2020
@d4rken d4rken requested a review from a team November 10, 2020 06:39
BMItr
BMItr previously approved these changes Nov 10, 2020
Copy link
Contributor

@BMItr BMItr left a comment

Choose a reason for hiding this comment

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

👌

fun report(throwable: Throwable, tag: String? = null, info: String? = null)

companion object {
val isAUnitTest: Boolean by lazy {
Copy link
Contributor

Choose a reason for hiding this comment

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

The val could be moved outside the interface, so the companion object is not needed any more.

It seems that isAUnitTest is not a property of the BugReporter.

Copy link
Member Author

@d4rken d4rken Nov 10, 2020

Choose a reason for hiding this comment

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

Then it's resolved for any autocompletion call though, e.g. when typing "is...", we would get isAUnitTest as suggestion, whereas now its context relation is to the bug reporting code is clear. I'd prefer not to have such a niche/workaround piece of code be part of general suggestions. What do you think?

Copy link
Contributor

@chiljamgossow chiljamgossow Nov 10, 2020

Choose a reason for hiding this comment

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

I understand where you are coming from. It makes life easier when writing new code and one knows where to find that method. For me, when reading the source code, BugReporter.isAUnitTest would be confusing. However, it is not bug.

Copy link
Member Author

Choose a reason for hiding this comment

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

Would you find it less confusing if we move it to CWADebug.isAUnitTest?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

58.3% 58.3% Coverage
0.0% 0.0% Duplication

@harambasicluka harambasicluka merged commit cb6e6d6 into release/1.7.x Nov 11, 2020
@harambasicluka harambasicluka deleted the fix/missing_error_dialog branch November 11, 2020 08:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working maintainers Tag pull requests created by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants