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

Tidy up FlagValueSource #122

Merged
merged 4 commits into from
Jul 16, 2024
Merged

Tidy up FlagValueSource #122

merged 4 commits into from
Jul 16, 2024

Conversation

bok-
Copy link
Contributor

@bok- bok- commented Jul 16, 2024

📒 Description

This PR makes a few changes to FlagValueSource and NonSendableFlagValueSource:

  • Adds an explicit flagValueSourceID property instead of trying to piggy back off Identifiable.
  • Renames name to flagValueSourceName to better disambiguate with other existing properties called name that a type you are trying to conform to FlagValueSource might have.
  • Renames changes to flagValueChanges to better disambiguate with other existing properties called changes that a type you are trying to conform to FlagValueSource might have.

These changes resolve some errors building with Xcode 16 but are also just being a good citizen. We shouldn't be trying to force Identifiable on a type that just wants to be a FlagValueSource when all we need is an ID we can use for managing subscriptions.

This is part of the Vexil 3 alpha series.

bok- added 3 commits July 16, 2024 16:17
To better disambiguate it with other properties that might be called `name` on a type
you are conforming to `FlagValueSource`.
@bok- bok- added the vexil3 Part of the Vexil 3 alpha/beta development label Jul 16, 2024
Copy link

sonarcloud bot commented Jul 16, 2024

@bok- bok- merged commit 247228a into main Jul 16, 2024
26 checks passed
@bok- bok- deleted the flagvaluesource-tidy branch July 16, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vexil3 Part of the Vexil 3 alpha/beta development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant