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

Move VPNProtocolType serialization to Data layer #318

Merged
merged 2 commits into from
Jul 2, 2023

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Jul 2, 2023

It's crucial that the data layer has full control over how entities are (de)serialized.

Do not leave this choice up to the domain layer by defining an enum as a raw value type, because any change in the enum raw value would literally be a disaster, i.e. any serialized data would break instantly.

@keeshux keeshux added the refactoring Improves software architecture label Jul 2, 2023
@keeshux keeshux added this to the 2.2.0 milestone Jul 2, 2023
@keeshux keeshux self-assigned this Jul 2, 2023
@keeshux keeshux force-pushed the refactoring/vpn-protocol-serialization branch from 20796ed to 4158c68 Compare July 2, 2023 11:14
@keeshux keeshux merged commit ddf3dc3 into master Jul 2, 2023
@keeshux keeshux deleted the refactoring/vpn-protocol-serialization branch July 2, 2023 11:27
keeshux added a commit that referenced this pull request Jul 3, 2023
keeshux added a commit that referenced this pull request Jul 3, 2023
Reverts #318

`Codable` compliance at the domain layer (`Profile` etc.) makes this
change in serialization destructive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Improves software architecture
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant