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(TriplestoreServiceLive): minor improvements #2721

Merged
merged 4 commits into from
Jun 29, 2023
Merged

Conversation

mpro7
Copy link
Collaborator

@mpro7 mpro7 commented Jun 29, 2023

Pull Request Checklist

Task Description/Number

Minor logging improvements and extracting duplicated code to private method.

Issue Number: NO-TICKET

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

@mpro7 mpro7 self-assigned this Jun 29, 2023
@mpro7 mpro7 marked this pull request as ready for review June 29, 2023 08:07
Copy link
Collaborator

@BalduinLandolt BalduinLandolt left a comment

Choose a reason for hiding this comment

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

LGTM, two minor, cosmetic suggestions, if you like them

} yield DropDataGraphByGraphACK()

private def dropGraph(graphName: String): Task[Unit] =
ZIO.logInfo(s"Dropping graph: $graphName") *>
ZIO.logInfo(s"==>> Dropping graph: $graphName") *>
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.logInfo(s"==>> Dropping graph: $graphName") *>
ZIO.logInfo(s" ==>> Dropping graph: $graphName") *>

this will look nice with indention ^^

@mpro7 mpro7 enabled auto-merge (squash) June 29, 2023 14:17
@mpro7 mpro7 changed the title chore(TriplestoreServiceLive): minor improvements refactor(TriplestoreServiceLive): minor improvements Jun 29, 2023
@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Patch coverage: 63.33% and project coverage change: +70.65 🎉

Comparison is base (e3a19dd) 9.55% compared to head (a9a67a5) 80.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##            main    #2721       +/-   ##
==========================================
+ Coverage   9.55%   80.20%   +70.65%     
==========================================
  Files        279      279               
  Lines      28936    28893       -43     
==========================================
+ Hits        2766    23175    +20409     
+ Misses     26170     5718    -20452     
Impacted Files Coverage Δ
...tore/triplestore/impl/TriplestoreServiceLive.scala 77.71% <18.18%> (+77.71%) ⬆️
...main/scala/org/knora/webapi/config/AppConfig.scala 83.33% <77.77%> (-2.39%) ⬇️
...scala/org/knora/webapi/routing/Authenticator.scala 67.72% <100.00%> (+67.72%) ⬆️

... and 246 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.

@mpro7 mpro7 merged commit d31ba01 into main Jun 29, 2023
13 checks passed
@mpro7 mpro7 deleted the t-service-logs branch June 29, 2023 14:41
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