Skip to content

Commit

Permalink
Add back compat notices as per review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie authored and dwsutherland committed Nov 16, 2022
1 parent 99f9814 commit a522566
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions cylc/flow/broadcast_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,17 @@ def load_db_broadcast_states(self, row_idx, row):
"key": key,
"value": value})

# BACK COMPAT: post_load_db_coerce
# The DB at 8.0.x stores Interval values as neither ISO8601 duration
# string or DurationFloat. This has been fixed at 8.1.0.
# url:
# https://github.com/cylc/cylc-flow/pull/5138
# from:
# 8.0.x
# to:
# 8.1.x
# remove at:
# 8.x
def post_load_db_coerce(self):
"""Coerce DB loaded values to config objects, i.e. DurationFloat."""
for namespaces in self.broadcasts.values():
Expand Down
2 changes: 1 addition & 1 deletion cylc/flow/parsec/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ def _coerce_type(cls, value):
return val


# BACK COMPAT: post_load_db_coerce
# BACK COMPAT: BroadcastConfigValidator
# The DB at 8.0.x stores Interval values as neither ISO8601 duration
# string or DurationFloat. This has been fixed at 8.1.0, and
# the following class acts as a bridge between fixed and broken.
Expand Down

0 comments on commit a522566

Please sign in to comment.