Repository navigation
feat(software-update): update settings and auto-update on the Update Software API CU-17tkuw614a6 - #2849
Merged
Conversation
Contributor
🦩 Flamingo Code ReviewNot reviewed yet. Reviews start when you ask, so the reviewer reads this pull request when it is ready, not when it is opened. When it is ready:
Or comment Updated 2026-10-27 13:43 UTC · workflow run |
kirill-567
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes https://app.clickup.com/t/9013925967/17tkuw614a6
GraphQL for Software Management 2.0. Three parts: Update Software settings and WAITING in Software Actions are implemented; the rest of the design is contract only.
1. Update Software: "Update Settings" and "Auto-update" (implemented)
PackageUpdateMode(WAIT / FORCE),PackageUpdateSettings(Input),SoftwareAutoUpdate(Input).submitSoftwareBundle,createSoftwareScheduleandupdateSoftwareScheduletakeupdateSettings+autoUpdate;SoftwareBundleandSoftwareSchedulereturn them.PackageUpdateSettingsandSoftwareAutoUpdateonSoftwareBundleandSoftwareSchedule. OnePackageUpdateSettingsMapperholds the rules for both:updateSoftwareScheduleis a full replacement.2. Software Actions: WAITING, version, device connectivity (implemented)
SoftwareActionStatus.WAITING: any device waiting on the user (prompt, open app, Ask Later) makes the action WAITING. Same precedence as the package-update roll-up. Status filter and facet include it.SoftwareActionRun.waitingMachineCount(the "N WAITING" chip) andversion(was stored, never returned).PackageUpdateExecutionRecordersetswaitingon the device'sscript_executionsrow on WAITING and clears it on DONE / FAILED. The aggregation counts it, with no extra lookup.package_update_device_state(onefindByTenantIdAndRequestIdInper action), so rows written before the flag existed show it too.SoftwareActionDevice.deviceStatus+lastSeenfor the online dot and "Last Online".SoftwareActionAggregationRepositoryImplITcould not start (the aggregation impl was missing fromRmmIntegrationTestApplication). It now runs, with new cases for WAITING and version.3. Contract only (schema, no resolvers yet)
Software.type,autoUpdate(ON / OFF / NO_PACKAGE / NEEDS_ADOPTION),adoptionCount; auto-update filter + facet; sort byadoptionCount.SoftwareOnDevice.installedBy,adoption { status, packageManager, error },autoUpdate; filters + facets for installed-by, auto-update, customer and device status.SoftwareActionKind(INSTALL / UPDATE / AUTO_UPDATE / ADOPT) on the run and per device;kindsfilter + facet;deviceTagIdson the device filter.adoptSoftware(input): explicitmachineIds, orfilter+searchfor "Add All Devices"; Windows manager MATCH_CUSTOMER / WINGET / CHOCOLATEY; macOS always Brew.turnOffSoftwareAutoUpdate(softwareId).Not in this PR
SoftwareBundleOnlineDispatcherandSoftwareScheduleFireDispatchercomes next. Auto-update only stores the intent.Compatibility
SoftwareActionRun.kindand the new facet lists are non-null by design. Until their resolvers land, a query that selects them fails.WAITINGappears inSoftwareActionStatus, so clients must handle the new value.Change-Set: package-update-settings
Change set
flamingo-stack/fix-route-styles-full-sheet: these pull requests are one change, reviewed together.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.