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

feat: expose DELETE /admin/projects as ZIO HTTP route (DEV-1587) #2386

Merged
merged 11 commits into from
Jan 17, 2023

Conversation

irinaschubert
Copy link

@irinaschubert irinaschubert commented Jan 16, 2023

Pull Request Checklist

Task Description/Number

Issue Number: DEV-1587

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?

  • Bugfix: represents bug fixes
  • Refactor: represents production code refactoring
  • Feature: represents a new feature
  • Documentation: documentation changes (no production code change)
  • Chore: maintenance tasks (no production code change)
  • Style: styles updates (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

Does this PR change client-test-data?

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

@swarmia
Copy link

swarmia bot commented Jan 16, 2023

@irinaschubert irinaschubert self-assigned this Jan 16, 2023
@codecov
Copy link

codecov bot commented Jan 16, 2023

Codecov Report

Base: 86.48% // Head: 86.64% // Increases project coverage by +0.15% 🎉

Coverage data is based on head (49c9a28) compared to base (73a18ff).
Patch coverage: 87.50% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2386      +/-   ##
==========================================
+ Coverage   86.48%   86.64%   +0.15%     
==========================================
  Files         271      278       +7     
  Lines       28336    28404      +68     
==========================================
+ Hits        24506    24610     +104     
+ Misses       3830     3794      -36     
Impacted Files Coverage Δ
...rc/main/scala/dsp/schema/domain/SchemaDomain.scala 100.00% <ø> (ø)
dsp-shared/src/main/scala/dsp/errors/Errors.scala 45.00% <0.00%> (-5.00%) ⬇️
...main/scala/org/knora/webapi/core/HttpServerZ.scala 0.00% <ø> (ø)
...ages/util/search/gravsearch/GravsearchParser.scala 68.13% <ø> (ø)
...esponder/ontologymessages/OntologyMessagesV2.scala 86.86% <ø> (ø)
...org/knora/webapi/responders/ActorToZioBridge.scala 0.00% <ø> (ø)
...a/webapi/responders/EntityAndClassIriService.scala 92.00% <ø> (ø)
.../scala/org/knora/webapi/responders/IriLocker.scala 92.30% <ø> (+3.41%) ⬆️
...ora/webapi/responders/v2/OntologyResponderV2.scala 91.62% <ø> (+0.08%) ⬆️
...in/scala/org/knora/webapi/routing/RouteUtilZ.scala 100.00% <ø> (ø)
... and 31 more

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@irinaschubert irinaschubert marked this pull request as ready for review January 17, 2023 08:00
@@ -192,4 +193,22 @@ object ProjectsRouteZSpec extends ZIOSpecDefault {
} yield assertTrue(body.contains(shortname))
}
)

val deleteProjectSpec =
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess you will have to add this test to a suite otherwise it will be ignored.

Copy link
Author

Choose a reason for hiding this comment

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

thanks, done ;)

Copy link
Contributor

@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

@irinaschubert irinaschubert merged commit 6059012 into main Jan 17, 2023
@irinaschubert irinaschubert deleted the wip/dev-1587-expose-delete-project branch January 17, 2023 09:05
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.

3 participants