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

Not so basic collection e2e tests #354

Merged
merged 13 commits into from
May 2, 2023
Merged

Conversation

sandreae
Copy link
Member

@sandreae sandreae commented Apr 27, 2023

Todo

Separated this PR into multiple to deal with the other issues 👍

closes: #348 #350

📋 Checklist

  • Add tests that cover your changes
  • Add this PR to the Unreleased section in CHANGELOG.md
  • Link this PR to any issues it closes
  • New files contain a SPDX license header

@sandreae sandreae linked an issue Apr 27, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Patch coverage: 99.71% and project coverage change: +2.17 🎉

Comparison is base (caf6bfb) 90.23% compared to head (1585b93) 92.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #354      +/-   ##
==========================================
+ Coverage   90.23%   92.40%   +2.17%     
==========================================
  Files          70       70              
  Lines        6175     6520     +345     
==========================================
+ Hits         5572     6025     +453     
+ Misses        603      495     -108     
Impacted Files Coverage Δ
aquadoggo/src/graphql/utils.rs 95.85% <0.00%> (+36.94%) ⬆️
aquadoggo/src/db/stores/query.rs 96.71% <100.00%> (+2.15%) ⬆️
aquadoggo/src/graphql/queries/collection.rs 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@adzialocha
Copy link
Member

Hahaha, beautiful!!! 🙈❤️

Comment on lines +813 to +817
// @TODO: fails due to syntax errors or unrecognized tokens in db, see: https://github.com/p2panda/aquadoggo/issues/349
// #[case("(filter: { title: { notIn: [ \"Natural's Not In\" ] } })", "")]
// #[case("(filter: { title: { eq: \"Natural's Not In\" } })", "")]
// #[case("(filter: { title: { notEq: \"Natural's Not In\", in: [ \"Oh Bondage Up Yours!\", \"Speed Of Life\" ] } })", "")]
// #[case("(filter: { title: { notEq: \"Natural's Not In\" }, release_year: { gt: 1978 }, artist: { in: [ \"X-ray Spex\"] } })", "")]
Copy link
Member Author

Choose a reason for hiding this comment

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

Errors returned from database here because of recognised tokens

Comment on lines +783 to +787
// @TODO: these fails, see: https://github.com/p2panda/aquadoggo/issues/353
// #[case("(meta: { owner: { eq: \"2f8e50c2ede6d936ecc3144187ff1c273808185cfbc5ff3d3748d1ff7353fc96\" } })", "")]
// #[case("(meta: { owner: { notEq: \"2f8e50c2ede6d936ecc3144187ff1c273808185cfbc5ff3d3748d1ff7353fc96\" } })", "")]
// #[case("(meta: { owner: { in: [ \"2f8e50c2ede6d936ecc3144187ff1c273808185cfbc5ff3d3748d1ff7353fc96\" ] } })", "")]
// #[case("(meta: { owner: { notIn: [ \"2f8e50c2ede6d936ecc3144187ff1c273808185cfbc5ff3d3748d1ff7353fc96\" ] } })", "")]
Copy link
Member Author

Choose a reason for hiding this comment

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

Errors returned from database here because no owner field present.

@sandreae sandreae force-pushed the not-so-basic-collection-e2e-tests branch from e864fd4 to c91eb21 Compare April 28, 2023 21:37
@adzialocha
Copy link
Member

Wondering if we can split this up in multiple PRs?

@sandreae sandreae force-pushed the not-so-basic-collection-e2e-tests branch from c0f53a5 to c91eb21 Compare May 2, 2023 14:12
@sandreae sandreae requested a review from adzialocha May 2, 2023 14:29
@sandreae sandreae marked this pull request as ready for review May 2, 2023 15:17
@adzialocha adzialocha merged commit a843c1a into main May 2, 2023
8 checks passed
@adzialocha adzialocha deleted the not-so-basic-collection-e2e-tests branch May 2, 2023 15:42
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.

Parsing filter lists twice Incomplete documents encountered when performing collection query
2 participants