Skip to content

Commit

Permalink
called getFullRequestData() before export (#8333)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrajwade96 authored Sep 30, 2024
1 parent 11bb202 commit 89e6c7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class NetworkController extends DisposableController
}
List<DartIOHttpRequestData>? _httpRequests;

String? exportAsHarFile() {
Future<String?> exportAsHarFile() async {
await _fetchFullDataBeforeExport();
_httpRequests =
filteredData.value.whereType<DartIOHttpRequestData>().toList();

Expand Down Expand Up @@ -386,6 +387,12 @@ class NetworkController extends DisposableController
serviceConnection.errorBadgeManager.incrementBadgeCount(NetworkScreen.id);
}
}

Future<void> _fetchFullDataBeforeExport() => Future.wait(
filteredData.value
.whereType<DartIOHttpRequestData>()
.map((item) => item.getFullRequestData()),
);
}

/// Class for managing the set of all current sockets, and
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ TODO: Remove this section if there are not any general updates.

## Network profiler updates

TODO: Remove this section if there are not any general updates.
* Resolved an issue in .har export where response content was sometimes missing in the data. - [#8333](https://github.com/flutter/devtools/pull/8333)

## Logging updates

Expand Down

0 comments on commit 89e6c7e

Please sign in to comment.