danielgtaylor / restish

Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in
https://rest.sh/
MIT License
900 stars 74 forks source link

fix: bulk version inconsistency bug #181

Closed danielgtaylor closed 1 year ago

danielgtaylor commented 1 year ago

This fixes a bug that would sometimes leave dead meta entries and state inconsistency between local & remote, telling you there are diffs and the need to pull when that wasn't the case, particularly for deleted files.

codecov[bot] commented 1 year ago

Codecov Report

Merging #181 (6550d08) into main (a5bae2f) will not change coverage. The diff coverage is 100.00%.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/danielgtaylor/restish/pull/181/graphs/tree.svg?width=650&height=150&src=pr&token=1BMagYibk9&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Daniel+G.+Taylor)](https://codecov.io/gh/danielgtaylor/restish/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Daniel+G.+Taylor) ```diff @@ Coverage Diff @@ ## main #181 +/- ## ======================================= Coverage 74.94% 74.94% ======================================= Files 25 25 Lines 3405 3405 ======================================= Hits 2552 2552 Misses 655 655 Partials 198 198 ``` | [Impacted Files](https://codecov.io/gh/danielgtaylor/restish/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Daniel+G.+Taylor) | Coverage Δ | | |---|---|---| | [bulk/metadata.go](https://codecov.io/gh/danielgtaylor/restish/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Daniel+G.+Taylor#diff-YnVsay9tZXRhZGF0YS5nbw==) | `65.00% <100.00%> (ø)` | | ------ [Continue to review full report at Codecov](https://codecov.io/gh/danielgtaylor/restish/pull/181?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Daniel+G.+Taylor). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Daniel+G.+Taylor) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://codecov.io/gh/danielgtaylor/restish/pull/181?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Daniel+G.+Taylor). Last update [a5bae2f...6550d08](https://codecov.io/gh/danielgtaylor/restish/pull/181?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Daniel+G.+Taylor). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Daniel+G.+Taylor).