Skip to content

[FRAME-180]: Refactor to remove "Mixed" status#88

Merged
tarecord merged 6 commits into
developfrom
feature/FRAME-180/remove-mixed-status
Oct 3, 2023
Merged

[FRAME-180]: Refactor to remove "Mixed" status#88
tarecord merged 6 commits into
developfrom
feature/FRAME-180/remove-mixed-status

Conversation

@tarecord
Copy link
Copy Markdown
Member

This refactors the status to return a boolean whether the site is opted in or not. I also added some additional tests to verify things are working as expected.

image

@tarecord tarecord self-assigned this Sep 28, 2023
Copy link
Copy Markdown
Contributor

@ChrisMKindred ChrisMKindred left a comment

Choose a reason for hiding this comment

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

This this is a great cleanup for a confusing piece and the tests help make it very clear what is expected from the function. I am concerned that we are changing the signature of a public method. This is all good as long as Stellar is good with the breaking change that causes. Let's make sure we aren't causing a problem with that before merging.

Comment thread src/Telemetry/Opt_In/Status.php Outdated
Comment thread src/Telemetry/Opt_In/Status.php Outdated
We can't change the function signature to use a bool return type because
it could break existing implementations out in the wild.
@tarecord
Copy link
Copy Markdown
Member Author

@ChrisMKindred - Good point, I've reverted back to using integers (1 - Active, 2 - Inactive) and added another test to cover the is_active() method.

Copy link
Copy Markdown
Contributor

@ChrisMKindred ChrisMKindred left a comment

Choose a reason for hiding this comment

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

👍 much better not requiring a depreciation now.

@tarecord tarecord merged commit 9dbc4ab into develop Oct 3, 2023
@tarecord tarecord deleted the feature/FRAME-180/remove-mixed-status branch October 3, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants