Skip to content

Commit

Permalink
Upload app id and clean version to bug reports (#2829)
Browse files Browse the repository at this point in the history
* Upload app id and clean version to bug reports

* Add changelog
  • Loading branch information
jmartinesp committed May 10, 2024
1 parent b95df7e commit 1f4b2d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/2829.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing `app_id` and `Version` properties to bug reports.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ class DefaultBugReporter @Inject constructor(
.addFormDataPart("sdk_sha", sdkMetadata.sdkGitSha)
.addFormDataPart("local_time", LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME))
.addFormDataPart("utc_time", LocalDateTime.ofInstant(Instant.now(), ZoneOffset.UTC).format(DateTimeFormatter.ISO_DATE_TIME))
.addFormDataPart("app_id", buildMeta.applicationId)
// Nightly versions have a custom version name suffix that we should remove for the bug report
.addFormDataPart("Version", buildMeta.versionName.replace("-nightly", ""))
currentTracingFilter?.let {
builder.addFormDataPart("tracing_filter", it)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,6 @@ class DefaultBugReporterTest {
}

companion object {
private const val EXPECTED_NUMBER_OF_PROGRESS_VALUE = 15
private const val EXPECTED_NUMBER_OF_PROGRESS_VALUE = 17
}
}

0 comments on commit 1f4b2d3

Please sign in to comment.