fleet/server/datastore
Victor Lyuboslavsky cbea2bf12e
Fixed error when updating a script to exactly match the contents of another script. (#32438)
Fixes #31580 

Fixes issues
- When updating a script to exactly match the content of another script,
we fail
- When updating one script which happens to match content of another
script, both get updated and not just the one being edited

# Checklist for submitter

- [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/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Resolved error when updating a script to exactly match another
script’s contents.
* Improved handling of script content updates: identical contents are
deduplicated and unused versions are cleaned up.
* Scheduled/pending runs are canceled on content updates with clearer
cancellation messaging.

* **Documentation**
  * Added changelog entry describing the fix.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-29 12:38:37 -05:00
..
cached_mysql Allow configuring webhook policy automations for "No team" (#32129) 2025-08-28 16:38:27 -05:00
filesystem Added signed URLs (#25197) 2025-01-09 12:56:54 -06:00
mysql Fixed error when updating a script to exactly match the contents of another script. (#32438) 2025-08-29 12:38:37 -05:00
mysqlredis Refactor EnrollOrbit/EnrollHost (#30872) 2025-07-15 17:22:02 -03:00
redis Add macOS redis cluster support (#29433) 2025-05-27 11:38:59 -04:00
s3 Feat: Perform S3 Uploads with Upload Manager (#32010) 2025-08-20 15:20:53 -04:00