Skip to content
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

Add history command to CLI #349

Merged
merged 1 commit into from
Jun 28, 2022
Merged

Add history command to CLI #349

merged 1 commit into from
Jun 28, 2022

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Jun 28, 2022

What this PR does / why we need it:

Add history command to CLI

$ yorkie history --help
Show the history of a document

Usage:
  yorkie history [project name] [document key] [flags]

Flags:
  -h, --help   help for history

$ yorkie history default codemirror
 SEQ  MESSAGE                                       SNAPSHOT
   1  create content if not exists                  {"content":""}
   2  update selection by 62babe7f977bc0f1cb53f7c3  {"content":""}
   3  update content by 62babe7f977bc0f1cb53f7c3    {"content":"a"}
   4  update content by 62babe7f977bc0f1cb53f7c3    {"content":"ab"}
   5  update content by 62babe7f977bc0f1cb53f7c3    {"content":"abc"}
   6  update content by 62babe7f977bc0f1cb53f7c3    {"content":"abcd"}
   7  update content by 62babe7f977bc0f1cb53f7c3    {"content":"abcde"}
   8  update content by 62babe7f977bc0f1cb53f7c3    {"content":"abcdef"}

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

@codecov
Copy link

codecov bot commented Jun 28, 2022

Codecov Report

Merging #349 (47eb9de) into main (f6a4aa1) will increase coverage by 0.10%.
The diff coverage is 10.34%.

@@            Coverage Diff             @@
##             main     #349      +/-   ##
==========================================
+ Coverage   48.36%   48.47%   +0.10%     
==========================================
  Files          66       66              
  Lines        5485     5446      -39     
==========================================
- Hits         2653     2640      -13     
+ Misses       2553     2523      -30     
- Partials      279      283       +4     
Impacted Files Coverage Δ
api/types/auth_webhook.go 45.45% <ø> (-2.38%) ⬇️
client/client.go 12.08% <ø> (+0.88%) ⬆️
server/backend/database/memory/database.go 47.12% <0.00%> (-0.93%) ⬇️
server/backend/database/mongo/client.go 9.13% <0.00%> (-0.29%) ⬇️
server/rpc/yorkie_server.go 46.42% <100.00%> (+5.80%) ⬆️
pkg/splay/splay.go 83.33% <0.00%> (-4.63%) ⬇️
pkg/document/json/rga_tree_split.go 73.93% <0.00%> (-1.07%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6a4aa1...47eb9de. Read the comment docs.

@hackerwins hackerwins marked this pull request as ready for review June 28, 2022 10:37
@hackerwins hackerwins merged commit 147cd1f into main Jun 28, 2022
@hackerwins hackerwins deleted the list-changes branch June 28, 2022 10:40
jeonjonghyeok pushed a commit to jeonjonghyeok/yorkie that referenced this pull request Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant