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: Remove redundancies in search by label queries #2933

Merged

Conversation

BalduinLandolt
Copy link
Collaborator

@BalduinLandolt BalduinLandolt commented Nov 15, 2023

Pull Request Checklist

Task Description/Number

Issue Number: DEV-

PR Type

  • build/chore: maintenance tasks (no production code change)
  • docs: documentation changes (no production code change)
  • feat: represents new features
  • fix: represents bug fixes
  • perf: performance improvements
  • refactor: represents production code refactoring
  • test: adding or refactoring tests (no production code change)

Basic requirements for bug fixes and features

  • Tests for the changes have been added
  • Docs have been added / updated

Does this PR introduce a breaking change?

  • Yes

Does this PR change client-test-data?

  • Yes

@BalduinLandolt BalduinLandolt self-assigned this Nov 15, 2023
Copy link

linear bot commented Nov 15, 2023

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

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

Comparison is base (ef714c1) 11.64% compared to head (c83d2b9) 88.50%.
Report is 1 commits behind head on main.

Files Patch % Lines
...org/knora/webapi/responders/v2/SearchQueries.scala 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2933       +/-   ##
===========================================
+ Coverage   11.64%   88.50%   +76.85%     
===========================================
  Files         246      247        +1     
  Lines       22885    22878        -7     
===========================================
+ Hits         2666    20249    +17583     
+ Misses      20219     2629    -17590     

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

@BalduinLandolt BalduinLandolt changed the title refactor: remove redundancies in search by label queries refactor: Remove redundancies in search by label queries Nov 15, 2023
@BalduinLandolt BalduinLandolt marked this pull request as ready for review November 15, 2023 16:39
import org.knora.webapi.store.triplestore.api.TriplestoreService.Queries.Construct
import org.knora.webapi.store.triplestore.api.TriplestoreService.Queries.Select

object SearchUtil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about renaming this to SearchQueries which would reveal the intention of this "util" more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you're right, changed it accordingly

@BalduinLandolt BalduinLandolt enabled auto-merge (squash) November 17, 2023 15:22
@BalduinLandolt BalduinLandolt merged commit a333e34 into main Nov 17, 2023
13 of 14 checks passed
@BalduinLandolt BalduinLandolt deleted the feature/dev-2061-refactor-queries-used-for-search-by-label branch November 17, 2023 15:39
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

2 participants