Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion dashboard/lib/state/presubmit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,16 @@ class PresubmitState extends ChangeNotifier {
}
}

/// Triggers a data fetch regardless of whether parameters have changed.
void fetch() {
if (pr != null) {
unawaited(fetchAvailableShas());
}
if (sha != null) {
unawaited(fetchGuardStatus());
}
}

/// Selects a specific job and fetches its details.
void selectJob(String jobName) {
if (_selectedJob == jobName) return;
Expand Down Expand Up @@ -532,7 +542,7 @@ class PresubmitState extends ChangeNotifier {

void _fetchRefreshUpdate() {
if (!_active) return;
fetchIfNeeded();
fetch();
if (_selectedJob != null) {
unawaited(fetchJobDetails());
}
Expand Down
Loading