Skip to content

Commit bbc35cb

Browse files
authored
Include pre-releases when building osquery version list constant (#25089)
Also updates said constant via this script to include 5.15.0. Idea for this is that including pre-releases as they're published ensures that by the time the corresponding Fleet release ships we have a current list, without having to cherry-pick these updates. # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [x] Manual QA for all new/changed functionality
1 parent 425182c commit bbc35cb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/scripts/update_osquery_versions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ def fetch_osquery_versions():
1414
resp = conn.getresponse()
1515
content = resp.read()
1616
conn.close()
17-
releases = json.loads(content.decode('utf-8'))
1817

19-
return [release['tag_name'] for release in releases if not release['prerelease']]
18+
return [release['tag_name'] for release in json.loads(content.decode('utf-8'))]
2019

2120
def update_min_osquery_version_options(new_versions):
2221
with open(FILE_PATH, 'r') as file:

changes/osquery-constant-prerelease

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Included osquery pre-releases in daily UI constant update GitHub Actions job

frontend/utilities/constants.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export const MAX_OSQUERY_SCHEDULED_QUERY_INTERVAL = 604800;
8484

8585
export const MIN_OSQUERY_VERSION_OPTIONS = [
8686
{ label: "All", value: "" },
87+
{ label: "5.15.0 +", value: "5.15.0" },
8788
{ label: "5.14.1 +", value: "5.14.1" },
8889
{ label: "5.13.1 +", value: "5.13.1" },
8990
{ label: "5.12.2 +", value: "5.12.2" },

0 commit comments

Comments
 (0)