Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data_store: fix possible traceback with NoneType items #5394

Merged
merged 2 commits into from
Mar 24, 2023

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Mar 2, 2023

  • Closes data_store_mgr: traceback #5388
  • Even though None is a valid value for an optional field in Protobuf, and even though you can initiate these fields with None values, you cannot later set them to None.

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
  • Tests are included (or explain why tests are not needed).
  • CHANGES.md entry included if this is a change that can affect users
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@oliver-sanders oliver-sanders added this to the cylc-8.1.3 milestone Mar 2, 2023
@oliver-sanders oliver-sanders self-assigned this Mar 2, 2023
* Closes cylc#5388
* Even though `None` is a valid value for an `optional` field in Protobuf,
  and even though you can initiate these fields with `None` values, you
  cannot later set them to `None`.
@oliver-sanders oliver-sanders added the bug Something is wrong :( label Mar 3, 2023
Comment on lines +198 to +200
Note:
If the above doctest fails, then the behaviour of protobuf has changed
and this wrapper might not be necessary any more.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@MetRonnie MetRonnie linked an issue Mar 3, 2023 that may be closed by this pull request
@oliver-sanders oliver-sanders requested a review from wxtim March 8, 2023 10:07
@wxtim
Copy link
Member

wxtim commented Mar 24, 2023

I've deconflicted CHANGES.md and cancelled the test run related to that.

@wxtim wxtim merged commit 670e11f into cylc:8.1.x Mar 24, 2023
@oliver-sanders oliver-sanders deleted the 5388 branch March 24, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

data_store_mgr: traceback
3 participants