Skip to content

Commit

Permalink
Fix survey metadata URL in documentation. (#7964)
Browse files Browse the repository at this point in the history
* Fix survey metadata URL in documentation.

* formatting
  • Loading branch information
kenzieschmoll authored Jun 21, 2024
1 parent bebfe49 commit 88dec71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/devtools_app/lib/src/shared/development_helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ abstract class StubDevToolsExtensions {
///
/// When this flag is true, [debugSurveyMetadata] will be used instead of what
/// we normally fetch from
/// 'docs.flutter.dev/f/dart-devtools-survey-metadata.json'.
/// 'https://storage.googleapis.com/flutter-uxr/surveys/devtools-survey-metadata.json'.
bool debugSurvey = false;

/// The survey metadata that will be used instead of the live data from
/// 'docs.flutter.dev/f/dart-devtools-survey-metadata.json' when [debugSurvey]
/// is true;
/// 'https://storage.googleapis.com/flutter-uxr/surveys/devtools-survey-metadata.json'
/// when [debugSurvey] is true.
final debugSurveyMetadata = DevToolsSurvey.fromJson(
{
'_comments': [
Expand Down
7 changes: 7 additions & 0 deletions packages/devtools_app/lib/src/shared/survey.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ class SurveyService {

static const _maxShowSurveyCount = 5;

/// The URL that we will fetch the DevTools survey metadata from.
///
/// To run new surveys, update the content at
/// https://github.com/flutter/uxr/blob/master/surveys/devtools-survey-metadata.json.
///
/// This content will be propagated to the storage.googleapis.com domain
/// automatically.
static final _metadataUrl = Uri.https(
'storage.googleapis.com',
'flutter-uxr/surveys/devtools-survey-metadata.json',
Expand Down

0 comments on commit 88dec71

Please sign in to comment.