Repository navigation
Rename the automation API field schedule-revision to revision - #2859
Merged
Merged
Conversation
v1.1.0 introduced schedule-revision in automation responses and their run-stats. It counts resets of an automation's recurrence and has nothing to do with schedules, so call it revision, in a v1.1.1 patch release while hardly anyone relies on the read-only field yet. The column keeps its name; #2779 renames it in a migration for v1.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <felix@seita.nl>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <felix@seita.nl>
Documentation build overview
|
14 tasks done
Flix6x
added a commit
that referenced
this pull request
Nov 11, 2026
Conflicts resolved: - revision: keep this branch's column rename (main's #2859 renamed only the API name) - execute_automation_job: main's return type and result docs, this branch's data source handling - changelogs: main's versions, with this PR's entry moved to v1.2.0 New features - feature docs: this branch's wording on what counts up the revision Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x
added a commit
that referenced
this pull request
Nov 11, 2026
The v1.1.1 patch release backports #2855, #2861, #2838, #2829, #2851, #2845, #2859, #2850 and #2860 to the 1.1.x branch. Move their changelog bullets out of the v1.2.0 section into a new v1.1.1 section, worded and ordered as on 1.1.x, so the same fixes are not listed as unreleased once 1.1.1 ships. The bullet for #2861 takes the 1.1.x wording, which adds that Python 3.10 keeps the earlier Pillow, dnspython and filelock. The API change log needs no split: v3.0-35 holds only #2859, which ships in v1.1.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x
added a commit
that referenced
this pull request
Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <felix@seita.nl>
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.
Description
v1.1.0 introduced
schedule-revisionin automation responses and in each run of theirrun-stats. It counts the resets of an automation's recurrence (a new cron string or timezone, or reactivation), which keep the durable runs from before and after a reset apart. It has nothing to do with schedules, a word FlexMeasures already uses for the result of scheduling (and for one type of automation), so on a forecast automation the name is misleading.This renames the API field to
revision, for a v1.1.1 patch release, while hardly anyone can rely on it yet: the field is read-only and only days old.AutomationSchema:data_key="revision", with a description of what it countsrun-stats: each run reportsrevisionschedule_revision. Feat: edit automation config #2779 renames it, in a migration, for v1.2.To be backported to 1.1.x, like #2838.
Look & Feel
GET /api/v3_0/assets/<id>/automations/<automation-id>now returns"revision": 1where it returned"schedule-revision": 1, also in each run listed underrun-stats.How to test
pytest flexmeasures/api/v3_0/tests/test_automations_api.pyFurther Improvements
None planned; #2779 follows up with the column rename.
Related Items
Sign-off
🤖 Generated with Claude Code