Use new exclude_fleet_maintained_apps flag (#25674)

for #25427 

This PR updates the calls to the "list software titles" API to include
the `exclude_fleet_maintained_apps=true` flag.

I tested this with https://github.com/fleetdm/fleet/pull/25649
successfully.
This commit is contained in:
Scott Gress 2025-01-30 11:25:33 -06:00 committed by GitHub
parent 8419b8e87a
commit 379156e578
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -48,7 +48,7 @@ module.exports = {
// Get all of the software packages on the Fleet instance.
for(let teamApid of teamApids){
let configurationProfilesResponseData = await sails.helpers.http.get.with({
url: `/api/latest/fleet/software/titles?team_id=${teamApid}`,
url: `/api/latest/fleet/software/titles?team_id=${teamApid}&exclude_fleet_maintained_apps=true`,
baseUrl: sails.config.custom.fleetBaseUrl,
headers: {
Authorization: `Bearer ${sails.config.custom.fleetApiToken}`
@ -63,7 +63,7 @@ module.exports = {
});
for(let softwareWithInstaller of softwareWithSoftwarePackages) {
let softwareWithInstallerResponse = await sails.helpers.http.get.with({
url: `/api/latest/fleet/software/titles/${softwareWithInstaller.id}?team_id=${teamApid}&available_for_install=true`,
url: `/api/latest/fleet/software/titles/${softwareWithInstaller.id}?team_id=${teamApid}&available_for_install=true&exclude_fleet_maintained_apps=true`,
baseUrl: sails.config.custom.fleetBaseUrl,
headers: {
Authorization: `Bearer ${sails.config.custom.fleetApiToken}`

View file

@ -47,7 +47,7 @@ module.exports = {
// Get all of the software packages on the Fleet instance.
for(let teamApid of teamApids){
let configurationProfilesResponseData = await sails.helpers.http.get.with({
url: `/api/latest/fleet/software/titles?team_id=${teamApid}`,
url: `/api/latest/fleet/software/titles?team_id=${teamApid}&exclude_fleet_maintained_apps=true`,
baseUrl: sails.config.custom.fleetBaseUrl,
headers: {
Authorization: `Bearer ${sails.config.custom.fleetApiToken}`
@ -62,7 +62,7 @@ module.exports = {
});
for(let softwareWithInstaller of softwareWithSoftwarePackages) {
let softwareWithInstallerResponse = await sails.helpers.http.get.with({
url: `/api/latest/fleet/software/titles/${softwareWithInstaller.id}?team_id=${teamApid}&available_for_install=true`,
url: `/api/latest/fleet/software/titles/${softwareWithInstaller.id}?team_id=${teamApid}&available_for_install=true&exclude_fleet_maintained_apps=true`,
baseUrl: sails.config.custom.fleetBaseUrl,
headers: {
Authorization: `Bearer ${sails.config.custom.fleetApiToken}`