Some indicies were added to the Change object, notably on change_at as well as a couple of common lookups: (resource_name, resource_id) and (resource_name, event). These greatly speeds up lookups, especially the change_at index which for example makes the CLI command nsot changes list -l 5 no longer take seconds to return data.
Additionally I added a diff API endpoint to /changes/, which is a thin wrapper around a new diff() method on Change. What this does is take the JSON representations of the given resource at its current state and the state before the Change happened, and returns a unified diff of those two.
Here's an example of what the API returns, taken from the updated CLI that supports this:
Some indicies were added to the Change object, notably on
change_at
as well as a couple of common lookups:(resource_name, resource_id)
and(resource_name, event)
. These greatly speeds up lookups, especially thechange_at
index which for example makes the CLI commandnsot changes list -l 5
no longer take seconds to return data.Additionally I added a
diff
API endpoint to/changes/
, which is a thin wrapper around a newdiff()
method onChange
. What this does is take the JSON representations of the given resource at its current state and the state before the Change happened, and returns a unified diff of those two.Here's an example of what the API returns, taken from the updated CLI that supports this: