-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merging log and history endpoints #1743
Comments
I can see us having a need for a network call to |
The only time we need raw log data is when we're debugging. To me this is less a conversation of "merging log into history", as it is keeping history working the way it currently does, and de-prioritizing the log command. History should (still) return a slice of
This is used by qri desktop, and will also be used in the new UI. We should keep it. @dustmop has guidance on how to handle the source param moving forward, but the TL;DR; remove the |
but to address your last question Asmir, I'd agree we should keep them separate. It's clear to me now that we need both
|
I disagree that |
I'm leaning towards @ramfox's point of view on this. |
We're currently doing this in qrimatic with the Lines 10 to 25 in 0863cf7
Since we expanded a few things have changed that are making this look like the story needs to change. #1741 proposes we add workflow scheduling to logbook, which would be nice to have reflected in the primary Our deign goal should be to have one endpoint that describes the way a dataset has changed over time, and use filters to scope that aggregation down. When @Arqu & @ramfox say "log isn't a plumbing command", I'm hearing: we need to expand the history command to meet our needs. I still maintain log is a plumbing thing. raw logbook operations in and of themselves aren't useful beyond debugging, first & foremost b/c delete operations need to be applied to produce a history. This will only get more complicated once we introduce merging semantics, where you'll need interpret multiple operation logs to produce a history. So I think the thing we need to discuss here is changing the return value of history. We can assume the filtering / aggregation parameter conversation will happen on #1737 |
In #1762 we've cleaned up pieces of this. The |
Closing since the above is enough for 0.10.0 |
Recently we decided to merge
log
andhistory
, however that merge currently goes against our HTTP RPC API pattern.Some quick facts:
history
returnsVersionInfo
history
also handles network call managed by thesource
paramlog
returnsLogEntry
history
takes a subset of theLogEntries
and then augments them with other info from the dataset to fill in theVersionInfo
In order to bring it where we intended to we need to:
LogEntry
orVersionInfo
The text was updated successfully, but these errors were encountered: