fastlane-plugin-sentry_api 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bf6e5df1b17f042687dd22fd18486555d04b5cfe3e493f479cfa4ca1e3f392ef
|
|
4
|
+
data.tar.gz: d03707db9075c322a007109bf0e5b73804a1f061657fc39088008623cb0ee2ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dc7401daf7358046bfa80d0a6bbf1cbd929d317825a1f4c70466518b99be17b6656932a735377deccc616773a832434a654ae41cb3c54012053aa81ce3a3c49
|
|
7
|
+
data.tar.gz: 1f0197ae4d7a65f04a294b89d45dac2b9ae45a4f251630dc0664c5be090c0dcf66fe675f1b2ed120651f00f27d64cf0713065d96be39a7b19ea3c57f6cabb1fc
|
data/README.md
CHANGED
|
@@ -325,6 +325,7 @@ The `:latency` section includes:
|
|
|
325
325
|
|
|
326
326
|
The `:issues` section includes:
|
|
327
327
|
- `:top_crashes` — array of top unhandled error issues (always fetched, not release-scoped)
|
|
328
|
+
- `:total_crash_count` — total number of crash issues matching the query (up to 100), useful when you only display top N but want to show the full count
|
|
328
329
|
- `:current_release` — `{ version:, count:, issues: [] }` (when `current_release` is provided)
|
|
329
330
|
- `:previous_release` — same structure (when `previous_release` is provided)
|
|
330
331
|
|
|
@@ -355,6 +356,7 @@ cold = report[:latency][:app_launch][:cold]
|
|
|
355
356
|
UI.message("Cold start p95: #{cold[:p95]}ms")
|
|
356
357
|
|
|
357
358
|
# Top crash issues
|
|
359
|
+
UI.message("Total crash issues: #{report[:issues][:total_crash_count]}")
|
|
358
360
|
report[:issues][:top_crashes].each do |issue|
|
|
359
361
|
UI.message("#{issue[:short_id]}: #{issue[:title]} (#{issue[:event_count]} events)")
|
|
360
362
|
end
|
|
@@ -135,11 +135,13 @@ module Fastlane
|
|
|
135
135
|
# ── TOP CRASH ISSUES ────────────────────────────────────────────
|
|
136
136
|
UI.header("Top Crash Issues")
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
crash_result = fetch_top_crash_issues(
|
|
139
139
|
auth_token: auth_token, org_slug: org_slug, project_slug: project_slug,
|
|
140
140
|
stats_period: stats_period, per_page: params[:crash_issue_count],
|
|
141
141
|
query: params[:crash_query]
|
|
142
142
|
)
|
|
143
|
+
report[:issues][:top_crashes] = crash_result[:issues]
|
|
144
|
+
report[:issues][:total_crash_count] = crash_result[:total_count]
|
|
143
145
|
log_top_crashes(report[:issues][:top_crashes])
|
|
144
146
|
|
|
145
147
|
# ── ISSUES (Release Comparison) ─────────────────────────────────
|
|
@@ -586,17 +588,17 @@ module Fastlane
|
|
|
586
588
|
query: query,
|
|
587
589
|
sort: 'freq',
|
|
588
590
|
statsPeriod: issues_api_stats_period(stats_period),
|
|
589
|
-
per_page:
|
|
591
|
+
per_page: '100'
|
|
590
592
|
}
|
|
591
593
|
)
|
|
592
594
|
|
|
593
595
|
unless response[:status].between?(200, 299)
|
|
594
596
|
UI.error("Sentry Issues API error #{response[:status]}: #{response[:body]}")
|
|
595
|
-
return []
|
|
597
|
+
return { issues: [], total_count: 0 }
|
|
596
598
|
end
|
|
597
599
|
|
|
598
600
|
issues_data = response[:json] || []
|
|
599
|
-
issues_data.first(per_page).map do |issue|
|
|
601
|
+
issues = issues_data.first(per_page).map do |issue|
|
|
600
602
|
{
|
|
601
603
|
id: issue['id'],
|
|
602
604
|
short_id: issue['shortId'],
|
|
@@ -608,6 +610,8 @@ module Fastlane
|
|
|
608
610
|
last_seen: issue['lastSeen']
|
|
609
611
|
}
|
|
610
612
|
end
|
|
613
|
+
|
|
614
|
+
{ issues: issues, total_count: issues_data.length }
|
|
611
615
|
end
|
|
612
616
|
|
|
613
617
|
def fetch_issues_for_release(auth_token:, org_slug:, project_slug:, release:, per_page:)
|