-
Notifications
You must be signed in to change notification settings - Fork 77
Conversation
c31ea31
to
41ffbf7
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
90ff8fa
to
c4abda6
Compare
c4abda6
to
77f0d99
Compare
...ackages/io.improbable.gdk.core/Subscriptions/CommandSenderReceiverSubscriptionManagerBase.cs
Outdated
Show resolved
Hide resolved
...ackages/io.improbable.gdk.core/Subscriptions/CommandSenderReceiverSubscriptionManagerBase.cs
Outdated
Show resolved
Hide resolved
workers/unity/Packages/io.improbable.gdk.core/Subscriptions/Reader.cs
Outdated
Show resolved
Hide resolved
workers/unity/Packages/io.improbable.gdk.core/Subscriptions/WriterSubscriptionManager.cs
Outdated
Show resolved
Hide resolved
workers/unity/Packages/io.improbable.gdk.core/Subscriptions/Reader.cs
Outdated
Show resolved
Hide resolved
workers/unity/Packages/io.improbable.gdk.core/Subscriptions/WriterSubscriptionManager.cs
Outdated
Show resolved
Hide resolved
workers/unity/Packages/io.improbable.gdk.core/Systems/ComponentUpdateSystem.cs
Show resolved
Hide resolved
workers/unity/Packages/io.improbable.gdk.core/Systems/SpatialOSReceiveSystem.cs
Outdated
Show resolved
Hide resolved
workers/unity/Packages/io.improbable.gdk.core/Dynamic/ComponentDatabase.cs
Show resolved
Hide resolved
public bool HasAuthority | ||
{ | ||
get | ||
{ | ||
if (!IsValid) | ||
{ | ||
throw new InvalidOperationException("Cannot read authority when Reader is not valid"); | ||
throw new InvalidOperationException($"Cannot read {nameof(HasAuthority)} when Reader is not valid"); | ||
} | ||
|
||
return ComponentUpdateSystem.GetAuthority(EntityId, ComponentId); | ||
return EntityManager.HasComponent(Entity, ComponentAuthType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On balance, should we make this breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the breaking change here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both the type and name of the property are changing.
We could keep this backwards compatible by changing the return to:
return EntityManager.HasComponent(Entity, ComponentAuthType) ? Authority.Authoritative : Authority.NotAuthoritative;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the endgame is to remove auth loss imminent, I think it's fine to make this breaking change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but removing auth loss imminent doesn't mandate or require this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I just don't see the value in keeping backwards compatibility given we'll be imposing that Authority
is essentially nothing but true or false
Sure it's breaking but it does simplify logic for users (no more ==/!= comparisons)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My opinion is that the bar for making a breaking change should be relatively high and be done for good reason. With this case I don't feel the rationale is strong enough, but if you two both feel otherwise, I'm not gonna die on this hill.
workers/unity/Packages/io.improbable.gdk.core/Dynamic/ComponentDatabase.cs
Show resolved
Hide resolved
public bool HasAuthority | ||
{ | ||
get | ||
{ | ||
if (!IsValid) | ||
{ | ||
throw new InvalidOperationException("Cannot read authority when Reader is not valid"); | ||
throw new InvalidOperationException($"Cannot read {nameof(HasAuthority)} when Reader is not valid"); | ||
} | ||
|
||
return ComponentUpdateSystem.GetAuthority(EntityId, ComponentId); | ||
return EntityManager.HasComponent(Entity, ComponentAuthType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the endgame is to remove auth loss imminent, I think it's fine to make this breaking change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Death to ImminentLoss (and the View)!
Remove Authority from the view Remove AuthImminentLoss support
Remove ViewStorage types
Co-authored-by: Paul Balaji <[email protected]>
e49bc95
to
fb89211
Compare
Co-authored-by: Jamie Brynes <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Description
Experimental change to remove the View and ViewStorage classes.
This also removes our support for AuthorityImminentLoss.
Might move the WorkerFlags from the
WorkerSystem
to theWorker
class. Opinions welcome.Documentation
This will need a rather heavy upgrade guide on: