qri-io / qri

you're invited to a data party!
https://qri.io
GNU General Public License v3.0
1.1k stars 66 forks source link

feat(whatchanged): Restore the `whatchanged` command #2002

Closed dustmop closed 2 years ago

dustmop commented 2 years ago

The command whatchanged returns what components changed at a specific version of in the history of the dataset.

This command was originally part of FSI, which was removed by commit eaeba31aeb6242bd4aacf79f7c20f9579585d549. However, this command is kind of its own thing, and does not have a hard dependency on FSI functionality. This change adds the command only, without the similar status command, which did depend on FSI.

dustmop commented 2 years ago

Example usage on command-line:

qri whatchanged me/some_ds@/ipfs/QmNvbzZXKSpobfmWC13FBYVSx4LouHdMu1cQKwBV5ANHKk

HTTP API:

curl -X POST localhost:2503/ds/whatchanged -H 'Content-Type: application/json' -d '{"ref": "dustmop/some_ds@/ipfs/QmNvbzZXKSpobfmWC13FBYVSx4LouHdMu1cQKwBV5ANHKk"}'