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

Grackle 0.14 #710

Merged
merged 18 commits into from
Oct 16, 2023
Merged

Grackle 0.14 #710

merged 18 commits into from
Oct 16, 2023

Conversation

tpolecat
Copy link
Member

@tpolecat tpolecat commented Sep 12, 2023

This updates the ODB to Grackle 0.14, which improves query elaboration via an Elab monad that replaces manual AST manipulation in many cases. There are also a few changes to accommodate changes in lucuma-graphql-routes and some minor reorg in Grackle.

@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2023

Codecov Report

Attention: 49 lines in your changes are missing coverage. Please review.

Comparison is base (a9e48ae) 79.41% compared to head (0b3efc2) 79.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #710      +/-   ##
==========================================
- Coverage   79.41%   79.24%   -0.18%     
==========================================
  Files         525      525              
  Lines        9470     9533      +63     
  Branches       32       30       -2     
==========================================
+ Hits         7521     7554      +33     
- Misses       1949     1979      +30     
Files Coverage Δ
...dules/service/src/main/scala/lucuma/odb/Main.scala 26.47% <ø> (ø)
.../main/scala/lucuma/odb/graphql/GraphQLRoutes.scala 66.66% <ø> (-5.56%) ⬇️
...scala/lucuma/odb/graphql/binding/EnumBinding.scala 100.00% <100.00%> (ø)
...lucuma/odb/graphql/binding/EnumeratedBinding.scala 100.00% <100.00%> (ø)
.../scala/lucuma/odb/graphql/binding/TagBinding.scala 100.00% <ø> (ø)
...phql/enums/ConditionsExpectationTypeEnumType.scala 100.00% <100.00%> (ø)
...ql/enums/ConditionsMeasurementSourceEnumType.scala 100.00% <100.00%> (ø)
...rc/main/scala/lucuma/odb/graphql/enums/Enums.scala 54.54% <ø> (ø)
.../lucuma/odb/graphql/enums/FilterTypeEnumType.scala 100.00% <100.00%> (ø)
...cuma/odb/graphql/enums/ObsAttachmentTypeEnum.scala 100.00% <100.00%> (ø)
... and 25 more

... and 25 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tpolecat
Copy link
Member Author

I regret to inform you that this is ready for review.

@tpolecat tpolecat marked this pull request as ready for review October 13, 2023 21:16
@tpolecat tpolecat requested a review from swalker2m October 13, 2023 21:16
@tpolecat tpolecat changed the title WIP: update grackle Grackle 0.14 Oct 13, 2023
Copy link
Contributor

@swalker2m swalker2m left a comment

Choose a reason for hiding this comment

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

With the caveat that I only have the vaguest notion of what changed in Grackle and why, the code here that uses it looks a bit better. 👍

@@ -3169,7 +3182,7 @@ type RecordGmosSouthVisitResult {
Right Ascension, choose one of the available units
"""
input RightAscensionInput {
microarcseconds: Long @deprecated
microarcseconds: Long
Copy link
Contributor

Choose a reason for hiding this comment

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

Undeprecated?

Copy link
Member Author

Choose a reason for hiding this comment

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

You can't deprecate fields on input types. Grackle now recognizes this and rejects the schema if you try. Maybe I should just take the opportunity to remove the field.

@tpolecat tpolecat merged commit 10dc68d into main Oct 16, 2023
6 checks passed
@tpolecat tpolecat deleted the update-grackle branch October 16, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants