Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Targets in Kong were immutable. They were changed to be mutable a few months ago but we can't break compatibility. If target's weight was changed, it resulted in the following: - diff is detected, an update is issued - update operations are translated into delete then create, the ID changes - the update is then reflected into go-memdb, because the ID is new, state package emits an error that it can't update an entity that it didn't previously have This patch ensures that ID across update remains the same. The tests for this is here: Kong/go-kong#85
- Loading branch information