Skip to content

JSON backwards compatibility policy and tooling. #4321

@mpharrigan

Description

@mpharrigan

Inspired by #4318 @balopat wants a policy on how we support loading json data from deprecated or deleted classes. We expect data to live statically longer than actively maintained code bases.

Similarly, we should revisit our tooling support for maintaining JSON backwards compatibility. Currently, if the structure of a class is changed, the contributor should rename the existing test data to name.json_inward and add a new name.json with the new structure. This procedure happens somewhat infrequently and isn't well known. It's hard to tell from GitHub diffs if it's been done correctly.

Metadata

Metadata

Assignees

Labels

area/jsonarea/serializationgood first issueThis issue can be resolved by someone who is not familiar with the codebase. A good starting issue.kind/design-issueA conversation around designno QC knowledge neededWant to contribute to Cirq, but don't know quantum computing? This issue is for you.triage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions