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

fix: Fix P2P collection CLI commands #1295

Merged
merged 3 commits into from
Apr 6, 2023
Merged

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #1294

Description

Fixes the P2P collection CLI commands which were previously bound as children of the replicator command. The readme and code suggests they should be children of the rpc command.

@AndrewSisley AndrewSisley added bug Something isn't working area/p2p Related to the p2p networking system action/no-benchmark Skips the action that runs the benchmark. area/cli Related to the CLI binary labels Apr 5, 2023
@AndrewSisley AndrewSisley added this to the DefraDB v0.5 milestone Apr 5, 2023
@AndrewSisley AndrewSisley requested a review from a team April 5, 2023 18:41
@AndrewSisley AndrewSisley self-assigned this Apr 5, 2023
@AndrewSisley AndrewSisley force-pushed the sisley/fix/I1294-cli-p2p branch from 08e5041 to 5511867 Compare April 5, 2023 18:46
@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

Merging #1295 (d33c207) into develop (50870ab) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1295      +/-   ##
===========================================
+ Coverage    70.41%   70.44%   +0.02%     
===========================================
  Files          184      184              
  Lines        17825    17825              
===========================================
+ Hits         12552    12556       +4     
+ Misses        4318     4315       -3     
+ Partials       955      954       -1     
Impacted Files Coverage Δ
cli/p2p_collection_add.go 7.69% <100.00%> (ø)
cli/p2p_collection_getall.go 6.06% <100.00%> (ø)
cli/p2p_collection_remove.go 7.69% <100.00%> (ø)

... and 6 files with indirect coverage changes

Copy link
Collaborator

@fredcarle fredcarle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how that was missed... Really weird as I had tested it manually before. Thanks for fixing.

@AndrewSisley
Copy link
Contributor Author

I wonder how that was missed... Really weird as I had tested it manually before. Thanks for fixing.

I wonder if the path was moved since and these lines were missed.

@AndrewSisley AndrewSisley force-pushed the sisley/fix/I1294-cli-p2p branch from 5511867 to 14141a9 Compare April 5, 2023 19:45
@fredcarle
Copy link
Collaborator

I wonder if the path was moved since and these lines were missed.

That could make sense as it was under a different command previously.

To match what is present in the readme
To match what is present in the readme
To match what is present in the readme
@AndrewSisley AndrewSisley force-pushed the sisley/fix/I1294-cli-p2p branch from 14141a9 to d33c207 Compare April 6, 2023 14:56
@AndrewSisley AndrewSisley merged commit 055e2ea into develop Apr 6, 2023
@AndrewSisley AndrewSisley deleted the sisley/fix/I1294-cli-p2p branch April 6, 2023 15:08
shahzadlone pushed a commit that referenced this pull request Apr 13, 2023
* Configure add to be child of rpc

To match what is present in the readme

* Configure get to be child of rpc

To match what is present in the readme

* Configure remove to be child of rpc

To match what is present in the readme
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
* Configure add to be child of rpc

To match what is present in the readme

* Configure get to be child of rpc

To match what is present in the readme

* Configure remove to be child of rpc

To match what is present in the readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/cli Related to the CLI binary area/p2p Related to the p2p networking system bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

defradb client rpc p2pcollection add yields very unhelpful message
2 participants