Skip to content

Separate entity state from TaskEntityContext onto its own object#179

Merged
jviau merged 1 commit intomicrosoft:feature/entitiesfrom
jviau:split-state
Aug 28, 2023
Merged

Separate entity state from TaskEntityContext onto its own object#179
jviau merged 1 commit intomicrosoft:feature/entitiesfrom
jviau:split-state

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
@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