Skip to content

Commit

Permalink
Merge pull request #34338 from brunobat/build-analytics-part4
Browse files Browse the repository at this point in the history
Build analytics - Improvements III
  • Loading branch information
gsmet authored Jun 28, 2023
2 parents 10c3b0b + 36cf548 commit e59f6d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@ public class ConfigService {
public static final String QUARKUS_ANALYTICS_PROMPT_TIMEOUT = "quarkus.analytics.prompt.timeout";
private static final String NEW_LINE = System.lineSeparator();
public static final String ACCEPTANCE_PROMPT = NEW_LINE
+ "********************************************************************************************************"
+ NEW_LINE
+ "********************************************************************************************************"
+ NEW_LINE
+ "********************************************************************************************************"
+ NEW_LINE
+ "* Please help improve Quarkus!" + NEW_LINE
+ "----------------------------" + NEW_LINE
+ "--- Help improve Quarkus ---" + NEW_LINE
+ "----------------------------" + NEW_LINE
+ "* Learn more: https://quarkus.io/usage/" + NEW_LINE
+ "* Do you agree to contribute anonymous build time data to the Quarkus community? (y/n) " + NEW_LINE;
private static final int DEFAULT_REFRESH_HOURS = 12;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ public class RestClient implements ConfigClient, SegmentClient {
public static final int DEFAULT_TIMEOUT = 3000;// milliseconds
static final String IDENTITY_ENDPOINT = "v1/identify";
static final String TRACK_ENDPOINT = "v1/track";
static final URI CONFIG_URI = getUri(
"https://raw.githubusercontent.com/brunobat/tests/main/03656937-19FD-4C83-9066-C76631D445EA");//FIXME config location
private static final String AUTH_HEADER = getAuthHeader("SGGi49IwHoDEpE4NVBEHJDZ4uyzeoI4M"); //FIXME dev key
static final URI CONFIG_URI = getUri("https://quarkus.io/assets/json/03656937-19FD-4C83-9066-C76631D445EA.json");
private static final String AUTH_HEADER = getAuthHeader("WdCBreXheGC541sGjMMvUknY8c6lLxy5");
private static final int SEGMENT_POST_RESPONSE_CODE = 200; // sad but true

static URI getUri(final String uri) {
Expand Down

0 comments on commit e59f6d4

Please sign in to comment.