Skip to content

Commit

Permalink
Bug 1875874 - Allow null distro and distroVersion in legacy telemetry (
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWu authored May 1, 2024
1 parent c3d13ba commit eeea9f5
Show file tree
Hide file tree
Showing 21 changed files with 168 additions and 42 deletions.
10 changes: 8 additions & 2 deletions schemas/telemetry/bhr/bhr.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1276,11 +1276,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/crash/crash.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/dnssec-study-v1/dnssec-study-v1.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/event/event.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/first-shutdown/first-shutdown.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1292,11 +1292,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/heartbeat/heartbeat.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,11 +1283,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/main/main.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1292,11 +1292,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/modules/modules.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/new-profile/new-profile.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/saved-session/saved-session.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1292,11 +1292,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/shield-icq-v1/shield-icq-v1.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/sync/sync.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,16 @@
"os": {
"properties": {
"distro": {
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"type": "boolean"
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/sync/sync.5.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,16 @@
"os": {
"properties": {
"distro": {
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"type": "boolean"
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/testpilot/testpilot.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/uninstall/uninstall.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1276,11 +1276,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/update/update.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions schemas/telemetry/voice/voice.4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,17 @@
"properties": {
"distro": {
"description": "The name of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"distroVersion": {
"description": "The version of the Linux distribution. This is Linux only. `null` on failure.",
"type": "string"
"type": [
"string",
"null"
]
},
"hasPrefetch": {
"description": "Whether or not the OS-based prefetch application start-up optimization is set. This is Windows-only. `null` on failure.",
Expand Down
10 changes: 8 additions & 2 deletions templates/include/telemetry/environment.1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1231,11 +1231,17 @@
"description": "The version of the OS, e.g. '6.1'. This is `null` on failure."
},
"distro": {
"type": "string",
"type": [
"string",
"null"
],
"description": "The name of the Linux distribution. This is Linux only. `null` on failure."
},
"distroVersion": {
"type": "string",
"type": [
"string",
"null"
],
"description": "The version of the Linux distribution. This is Linux only. `null` on failure."
},
"kernelVersion": {
Expand Down
Loading

0 comments on commit eeea9f5

Please sign in to comment.