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

test(i): Test top level agg. wt compound relational filter #1870

Merged

Conversation

AndrewSisley
Copy link
Contributor

@AndrewSisley AndrewSisley commented Sep 11, 2023

Relevant issue(s)

Resolves #1868

Description

Adds a test for aggregates with a compound relational filter.

Documents #1869

I believe this predates the release, and may be a fiddly fix with lots more testing required, so I'm documenting it now and moving on - maybe it will be fixed before the release goes out, but will see.

@AndrewSisley AndrewSisley added area/query Related to the query component area/testing Related to any test or testing suite code quality Related to improving code quality labels Sep 11, 2023
@AndrewSisley AndrewSisley added this to the DefraDB v0.7 milestone Sep 11, 2023
@AndrewSisley AndrewSisley requested a review from a team September 11, 2023 18:33
@AndrewSisley AndrewSisley self-assigned this Sep 11, 2023
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.02% 🎉

Comparison is base (3effe3a) 70.38% compared to head (959c79e) 70.41%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1870      +/-   ##
===========================================
+ Coverage    70.38%   70.41%   +0.02%     
===========================================
  Files          232      232              
  Lines        24180    24180              
===========================================
+ Hits         17018    17024       +6     
+ Misses        6001     5997       -4     
+ Partials      1161     1159       -2     
Flag Coverage Δ
all-tests 70.41% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@AndrewSisley
Copy link
Contributor Author

AndrewSisley commented Sep 11, 2023

AssertPanicAndSkipChangeDetection does not work with the http client, the test will not pass until sorted. Looking at how to handle that now.

  • Fix

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. Just a non-blocking name suggestion.

@@ -196,17 +196,24 @@ func init() {
}
}

// AssertPanicAndSkipChangeDetection asserts that the code of function actually panics,
// AssertPanic asserts that the code inside the specified PanicTestFunc panics.
Copy link
Member

Choose a reason for hiding this comment

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

nitpick(non-blocking): Rename suggestion

Suggested change
// AssertPanic asserts that the code inside the specified PanicTestFunc panics.
// AssertPanicOrSkip asserts that the code inside the specified PanicTestFunc panics.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:) I do disagree here, although I think my views over time have shifted, and I might have been the one to originally ask for the longer name. Will leave as AssertPanic unless anyone else requests the change before I rebase and merge.

@AndrewSisley AndrewSisley merged commit 3f64bd5 into sourcenetwork:develop Sep 14, 2023
14 checks passed
@AndrewSisley AndrewSisley deleted the 1868-agg-compound-filter branch September 14, 2023 12:54
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
…work#1870)

## Relevant issue(s)

Resolves sourcenetwork#1868

## Description

Adds a test for aggregates with a compound relational filter.

Documents sourcenetwork#1869
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/query Related to the query component area/testing Related to any test or testing suite code quality Related to improving code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tests for aggregates with compound relational filters
2 participants