Conversation
|
4c6ba0b to
8c36084
Compare
f17eab1 to
7565f79
Compare
9cbd4bb to
9b75154
Compare
9b75154 to
d914af3
Compare
|
|
||
| // We have a choice whether to include remoteState or remoteStateComparable from below. | ||
| // Including remoteState because in the near future remoteState is expected to become a superset struct of remoteStateComparable | ||
| entry.RemoteState = remoteState |
There was a problem hiding this comment.
Let's discuss the implications of this live.
I think we need to use the remapped one to keep the payloads in the plan comparable by other tools.
There was a problem hiding this comment.
Btw, this is also what triggers inclusion of the remote state in the "skip" actions.
There was a problem hiding this comment.
I think we need to use the remapped one to keep the payloads in the plan comparable by other tools.
Yes, superset == comparable.
Note, we also list paths that are compared explicitly.
Btw, this is also what triggers inclusion of the remote state in the "skip" actions.
Not sure what you mean. It's good to have remote state for skip actions, the difference might be explicitly nullified and it's good to see what the remote value was in this case.
There was a problem hiding this comment.
I agree, but in isolation, the remote state isn't that useful. Only if we also include the local state (and opt the previous state) can we see the full picture.
There was a problem hiding this comment.
I agree, but in isolation, the remote state isn't that useful.
What do you mean by "in isolation"? What's missing from the plan? Note, that new_state is omitted when it's the same as previous state (which we will refer to, we already have it in separate file).
There was a problem hiding this comment.
Merging to unblock follow ups, we can tweak this later.
285fd97 to
6af3532
Compare
d914af3 to
bdf6e86
Compare
59bb417 to
0bb2796
Compare
wip move update test clean up update add jobs_update_remote test include remote state update add 'return false' update tests after rebase update tests fix test remove json plan - differences due to remote state
0bb2796 to
af99623
Compare
Changes
Calculate diff of snapshot state with remote state and calculate action based on that.
Why
Remote drift detection for direct.
Tests
New acceptance tests.