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

Separate entity state from TaskEntityContext onto its own object #179

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

jviau
Copy link
Member

@jviau jviau commented Aug 25, 2023

This PR separates entity state from TaskEntityContext into TaskEntityState, which is available off of TaskEntityOperation. The PR also removes binding of TaskEntityOperation from TaskEntity<TState>. The end result is that when using TaskEntity<TState>, users have no direct access to the operation or state. This is to prevent confusing behavior when trying to use direct entity state interactions within TaskEntity<TState>. If a user wants direct operation access, they should derive from ITaskEntity.

Copy link
Member

@sebastianburckhardt sebastianburckhardt left a comment

Choose a reason for hiding this comment

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

LGTM.

(I did not look at the tests but given the current priorities and timeline I think that is appropriate)

@jviau jviau merged commit 2aaabed into microsoft:feature/entities Aug 28, 2023
2 checks passed
@jviau jviau deleted the split-state branch August 28, 2023 21:06
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