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

refactor: rework removing of type annotations (DEV-2079) #2611

Merged
merged 28 commits into from Apr 25, 2023

Conversation

BalduinLandolt
Copy link
Collaborator

@BalduinLandolt BalduinLandolt commented Apr 20, 2023

Pull Request Checklist

Task Description/Number

Issue Number: DEV-2079

Basic Requirements

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • fix: represents bug fixes
  • refactor: represents production code refactoring
  • feat: represents a new feature
  • docs: documentation changes (no production code change)
  • chore: maintenance tasks (no production code change)
  • test: all about tests: adding, refactoring tests (no production code change)
  • other... Please describe:

Does this PR introduce a breaking change?

  • Yes
  • No
  • Maybe (not 100% sure => check with FE)

Does this PR change client-test-data?

  • Yes (don't forget to update the JS-LIB team about the change)
  • No

@BalduinLandolt BalduinLandolt self-assigned this Apr 20, 2023
@linear
Copy link

linear bot commented Apr 20, 2023

@codecov
Copy link

codecov bot commented Apr 20, 2023

Codecov Report

Patch coverage: 5.09% and project coverage change: -72.91 ⚠️

Comparison is base (cc4b7ba) 87.07% compared to head (e5b11ac) 14.16%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2611       +/-   ##
===========================================
- Coverage   87.07%   14.16%   -72.91%     
===========================================
  Files         267      271        +4     
  Lines       28686    28854      +168     
===========================================
- Hits        24979     4088    -20891     
- Misses       3707    24766    +21059     
Impacted Files Coverage Δ
...sponder/projectsmessages/ProjectsMessagesADM.scala 41.09% <0.00%> (-38.10%) ⬇️
...a/org/knora/webapi/messages/util/UserUtilADM.scala 0.00% <0.00%> (-85.72%) ⬇️
...a/org/knora/webapi/messages/util/ValueUtilV1.scala 11.30% <0.00%> (-77.39%) ⬇️
...rg/knora/webapi/messages/util/rdf/JsonLDUtil.scala 1.75% <0.00%> (-83.47%) ⬇️
...essages/util/search/MainQueryResultProcessor.scala 0.00% <ø> (-93.75%) ⬇️
...a/webapi/messages/util/search/QueryTraverser.scala 1.12% <0.00%> (-92.16%) ⬇️
...til/search/gravsearch/GravsearchQueryChecker.scala 0.00% <0.00%> (-88.41%) ⬇️
...earch/mainquery/GravsearchMainQueryGenerator.scala 0.00% <ø> (-98.89%) ⬇️
...ravsearch/prequery/AbstractPrequeryGenerator.scala 0.00% <0.00%> (-85.80%) ⬇️
...requery/GravsearchToCountPrequeryTransformer.scala 0.00% <ø> (ø)
... and 45 more

... and 169 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@BalduinLandolt BalduinLandolt force-pushed the wip/DEV-2078-remove-more-intermediate-interfaces branch from fcd11b2 to f6471f9 Compare April 21, 2023 13:04
Base automatically changed from wip/DEV-2078-remove-more-intermediate-interfaces to main April 21, 2023 13:58
@BalduinLandolt BalduinLandolt force-pushed the wip/DEV-2079-refactor-removing-type-annotations branch from fc86152 to b739cbe Compare April 21, 2023 14:10
@BalduinLandolt BalduinLandolt changed the base branch from main to wip/move-query-transformers April 24, 2023 08:08
Base automatically changed from wip/move-query-transformers to main April 24, 2023 12:20
@BalduinLandolt BalduinLandolt marked this pull request as ready for review April 24, 2023 14:20
} yield whereClause.copy(patterns = wherePatterns)
def removeTypeAnnotations(whereClause: WhereClause): Task[WhereClause] = {
val patterns = whereClause.patterns.flatMap(transformPattern)
ZIO.succeed(whereClause.copy(patterns = patterns))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ZIO.succeed(whereClause.copy(patterns = patterns))
ZIO.succeed(whereClause.copy(patterns))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

doesn't seem to work for copy() on a case class, without named param

Copy link

@irinaschubert irinaschubert left a comment

Choose a reason for hiding this comment

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

LGTM

@BalduinLandolt BalduinLandolt merged commit 461b0b6 into main Apr 25, 2023
13 checks passed
@BalduinLandolt BalduinLandolt deleted the wip/DEV-2079-refactor-removing-type-annotations branch April 25, 2023 08:53
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.

None yet

3 participants