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

feat: Add cid support for allCommits #857

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #840

Description

Adds cid support for allCommits. Let me know if you dont want this in 0.3.1

Specify the platform(s) on which this was tested:

  • Debian Linux

@AndrewSisley AndrewSisley added feature New feature or request area/query Related to the query component action/no-benchmark Skips the action that runs the benchmark. labels Sep 22, 2022
@AndrewSisley AndrewSisley added this to the DefraDB v0.4 milestone Sep 22, 2022
@AndrewSisley AndrewSisley requested a review from a team September 22, 2022 19:29
@AndrewSisley AndrewSisley self-assigned this Sep 22, 2022
@codecov
Copy link

codecov bot commented Sep 22, 2022

Codecov Report

Merging #857 (66b2566) into develop (ab0da81) will increase coverage by 0.02%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #857      +/-   ##
===========================================
+ Coverage    59.72%   59.74%   +0.02%     
===========================================
  Files          155      155              
  Lines        17332    17341       +9     
===========================================
+ Hits         10351    10361      +10     
+ Misses        6047     6046       -1     
  Partials       934      934              
Impacted Files Coverage Δ
query/graphql/planner/commit.go 89.07% <72.72%> (-1.84%) ⬇️
query/graphql/planner/dagscan.go 82.62% <100.00%> (+1.87%) ⬆️

@@ -173,6 +173,18 @@ func (p *Planner) commitSelectBlock(parsed *mapper.CommitSelect) (*commitSelectN
func (p *Planner) commitSelectAll(parsed *mapper.CommitSelect) (*commitSelectNode, error) {
dag := p.DAGScan(parsed)
headset := p.HeadScan(parsed)

if parsed.Cid != "" {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: pasted from an above function, this can be improved in #858 once things are simpler

Copy link
Member

Choose a reason for hiding this comment

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

sweet!

@@ -173,6 +173,18 @@ func (p *Planner) commitSelectBlock(parsed *mapper.CommitSelect) (*commitSelectN
func (p *Planner) commitSelectAll(parsed *mapper.CommitSelect) (*commitSelectNode, error) {
dag := p.DAGScan(parsed)
headset := p.HeadScan(parsed)

if parsed.Cid != "" {
Copy link
Member

Choose a reason for hiding this comment

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

sweet!

query/graphql/planner/dagscan.go Show resolved Hide resolved
@AndrewSisley AndrewSisley merged commit ec296f7 into develop Sep 23, 2022
@AndrewSisley AndrewSisley deleted the sisley/feat/I840-commits-cid branch September 23, 2022 16:46
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
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/query Related to the query component feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Commits: Add cid support to all_commits
2 participants