Skip to content

Add temporary shims to Bug's Codable implementation to support proposed new layout. #419

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

Merged
merged 2 commits into from
May 16, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented May 16, 2024

We're proposing a new set of stored properties for Bug in #412. This new layout is incompatible with the old one when using Codable. This change adds a (very!) temporary workaround to ensure that bugs encoded with the current layout can be decoded with the new one once it is accepted and merged in.

This implementation can be removed when #412 is merged.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…oposed new layout.

We're proposing a new set of stored properties for `Bug` in #412. This new
layout is incompatible with the old one when using `Codable`. This change adds a
(very!) temporary workaround to ensure that bugs encoded with the current layout
can be decoded with the new one once it is accepted and merged in.
@grynspan grynspan added bug 🪲 Something isn't working workaround Workaround for an issue in another component (may need to revert later) public-api Affects public API labels May 16, 2024
@grynspan grynspan self-assigned this May 16, 2024
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

Windows failure is a known issue. Linux CI is down right now. Merging as-is.

@grynspan grynspan merged commit 42fc194 into main May 16, 2024
1 of 3 checks passed
@grynspan grynspan deleted the jgrynspan/bug-encoding-compatibility branch May 16, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working public-api Affects public API workaround Workaround for an issue in another component (may need to revert later)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants