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

Conversation

@marandaneto
Copy link
Contributor

@marandaneto marandaneto commented Jun 29, 2020

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

ref: sentry-core changes for console app

💡 Motivation and Context

it's not possible to use sentry-core standalone, this is a first PR that makes things a bit easier.

💚 How did you test it?

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • All tests passing

🔮 Next steps

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

first pass

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

It looks like the right direction. Are we far from dropping the draft flag?
It's getting pretty daunting to review this, I hope we can merge soon

@marandaneto
Copy link
Contributor Author

It looks like the right direction. Are we far from dropping the draft flag?
It's getting pretty daunting to review this, I hope we can merge soon

interested to learn why it's getting daunting.
nothing changed from your last review, there are no new commits.
basically the next step is to clean up the code and fix tests, work on your comments if any, nothing more to be changed or added, only removed.

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

This is just a draft and it looks huge:

image
image

Probably just 20% of that is actually relevant to the change. Please let's avoid mixing a bunch of refactor in PRs that add a feature or change a core part of the SDK.

@@ -1,43 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
Copy link
Member

Choose a reason for hiding this comment

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

What changed here? Not sure what to review

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably changed by the IDE automatically and will be reverted, Draft PR

@marandaneto
Copy link
Contributor Author

marandaneto commented Jul 11, 2020

This is just a draft and it looks huge:

image
image

Probably just 20% of that is actually relevant to the change. Please let's avoid mixing a bunch of refactor in PRs that add a feature or change a core part of the SDK.

while I agree with the comment,

This is just a draft and it looks huge:

image
image

Probably just 20% of that is actually relevant to the change. Please let's avoid mixing a bunch of refactor in PRs that add a feature or change a core part of the SDK.

while I agree with this statement, we agreed to lift a draft PR to share the knowledge of the session data generator (how we did it), this was asked by you btw on a daily standup.

the only code that actually needed to land in the master branch was #474 which is a separate PR, tested, and merged.

all these changes came for free because I actually needed them to make sentry-core to work standalone.
I'm happy to close this PR and make a new one.
This PR is specifically for sending session data to Sentry and validating its APIs, maybe the title of this PR is misleading, but this was stated in the standup.

Let's please not put a lot of useless comments in a Draft PR and focus on the specific bits mentioned in the daily call, which is the changes from sentry-core that actually is gonna be needed for the new sentry-java, all the rest will be discarded, but if I didn't push it, you won't know how I generated the session data.

I'm trying to improve things here, and trying to reuse some work for the future sentry-java, this PR is just early feedback of "how I would fix sentry-core to be usable in sentry-java", so adding negative/useless comments just makes it harder to continue.

happy to discuss offline as well.

@bruno-garcia
Copy link
Member

while I agree with this statement, we agreed to lift a draft PR to share the knowledge of the session data generator (how we did it), this was asked by you btw on a daily standup.

I wasn't aware they'd come into the same PR. I was genuinely askign why that code is in this PR, since I didn't know if the plan was to merge both things or not, at the same time. Reason why I suggested we don't do that.

I'm trying to improve things here, and trying to reuse some work for the future sentry-java, this PR is just early feedback of "how I would fix sentry-core to be usable in sentry-java", so adding negative/useless comments just makes it harder to continue.

I understand and appreciate the work you put into this and the constant improvement of things. I wasn't trying to add any "negative/useless" comment, simply reiterating what we discussed in several meetings, to try to avoid doing different types of changes (refactor, different features, etc) in a single PR since it can get really difficult to review things.

all these changes came for free because I actually needed them to make sentry-core to work standalone.
I'm happy to close this PR and make a new one.
This PR is specifically for sending session data to Sentry and validating its APIs, maybe the title of this PR is misleading, but this was stated in the standup.

The title is what made it confusing because I thought it was simply the change, as the title says sentry-core changes for console app so all the other code seem not to fit here.

We can catch up offline, no problem. I'm OOO until Tuesday though, sorry.

@marandaneto marandaneto changed the title fix: sentry-core changes for console app ref: sentry-core changes for console app Jul 16, 2020
@marandaneto marandaneto marked this pull request as ready for review July 16, 2020 11:38

public SentryAndroidOptions() {
setSentryClientName(BuildConfig.SENTRY_CLIENT_NAME + "/" + BuildConfig.VERSION_NAME);
setSdkInfo(SdkInfo.createSdkInfo(BuildConfig.SENTRY_CLIENT_NAME, BuildConfig.VERSION_NAME));
Copy link
Member

Choose a reason for hiding this comment

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

This should be an override to SentryOptions ctor which sets it to sentry.java

@marandaneto marandaneto merged commit 89b011b into getsentry:master Jul 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants