In this PR - https://github.com/GEOLYTIX/xyz/pull/1283 We fixed an issue so you cannot update the layer qID.
However, we also need to check on specifically editing an id field - as we use %{id} for the location ID.
If you have a location of qID 123 and want to update ID to 5
You would expect it to run
UPDATE X set field = 5 WHERE qID = 123
It will actually run
UPDATE X set field = 5 WHERE qID = 5
So this PR just checks on specifically editing an id field - as we use %{id} for the location ID, and prevents it.
In this PR - https://github.com/GEOLYTIX/xyz/pull/1283 We fixed an issue so you cannot update the layer qID. However, we also need to check on specifically editing an id field - as we use %{id} for the location ID.
If you have a location of qID 123 and want to update ID to 5 You would expect it to run
It will actually run
So this PR just checks on specifically editing an id field - as we use %{id} for the location ID, and prevents it.