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 limit support to allCommits query #856

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #

Description

Adds limit support to allCommits query. Let me know if you dont want it 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 18:51
@AndrewSisley AndrewSisley self-assigned this Sep 22, 2022
@codecov
Copy link

codecov bot commented Sep 22, 2022

Codecov Report

Merging #856 (6ee8f27) into develop (0accfa5) will increase coverage by 0.00%.
The diff coverage is 70.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #856   +/-   ##
========================================
  Coverage    59.63%   59.64%           
========================================
  Files          155      155           
  Lines        17284    17294   +10     
========================================
+ Hits         10308    10315    +7     
- Misses        6045     6047    +2     
- Partials       931      932    +1     
Impacted Files Coverage Δ
query/graphql/parser/commit.go 79.66% <70.00%> (-1.98%) ⬇️

Copy link
Member

@shahzadlone shahzadlone left a comment

Choose a reason for hiding this comment

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

Maybe another test for order + limit?

@AndrewSisley
Copy link
Contributor Author

Maybe another test for order + limit?

I couldn't see how that could break here (note this PR only had to add to the parser and gql types, all order/mapper/limit code remains unchanged)

@AndrewSisley
Copy link
Contributor Author

Maybe another test for order + limit?

Added one with offset too in #859 as it makes the offset testing more robust IMO

Copy link
Member

@shahzadlone shahzadlone left a comment

Choose a reason for hiding this comment

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

LGTM

@AndrewSisley AndrewSisley merged commit cf046b7 into develop Sep 22, 2022
@AndrewSisley AndrewSisley deleted the sisley/feat/I839-commit-limit branch September 22, 2022 23:17
@jsimnz
Copy link
Member

jsimnz commented Sep 22, 2022

Didn't properly link a issue 😂

@AndrewSisley
Copy link
Contributor Author

:D my bad, will close it the old fashioned way lol

@jsimnz
Copy link
Member

jsimnz commented Sep 22, 2022

:D my bad, will close it the old fashioned way lol

The good ol' days

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.

3 participants