-
Notifications
You must be signed in to change notification settings - Fork 18
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!: Remove legacy Sipi upload mechanism (DEV-4260) #3414
Conversation
7fe1865
to
ae1eddd
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3414 +/- ##
===========================================
- Coverage 83.04% 17.88% -65.16%
===========================================
Files 290 304 +14
Lines 23087 22760 -327
===========================================
- Hits 19172 4071 -15101
- Misses 3915 18689 +14774 ☔ View full report in Codecov by Sentry. |
559609b
to
95afa29
Compare
ce62660
to
43606ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have expected the org.knora.webapi.routing.v2.AssetIngestState
and related code to be removed as well.
This would also include removing the header and updating the documentation.
Are planning to do this in a followup PR?
I'll remove it here. |
12552c0
to
eb57f9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be some removed tests rewritten to pointing to dsp-ingest?
Also please change the PR prefix to refactor
.
integration/src/test/scala/org/knora/webapi/testservices/TestClientService.scala
Show resolved
Hide resolved
integration/src/test/scala/org/knora/webapi/testservices/TestClientService.scala
Show resolved
Hide resolved
5f28159
to
f396b25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, overall it looks good to me. I have just some minor issues and suggestion
Just a couple of places where you can look into; I have searched for the ingested header and found these:
❯ rg AssetIngested
integration/src/test/scala/org/knora/webapi/it/v2/StandoffRouteV2ITSpec.scala
54: private val addAssetIngested = addHeader("X-Asset-Ingested", "true")
332: ) ~> addCredentials(BasicHttpCredentials(anythingUserEmail, password)) ~> addAssetIngested
integration/src/test/scala/org/knora/webapi/it/v2/KnoraSipiIntegrationV2ITSpec.scala
67: private val addAssetIngested = addHeader("X-Asset-Ingested", "true")
331: getResponseJsonLD(request ~> addAuthorization ~> addAssetIngested)
❯ rg Asset-Ingested
CHANGELOG.md
341:* X-Asset-Ingested: skip Sipi temp move for updates (DEV-3504) ([#3219](https://github.com/dasch-swiss/dsp-api/issues/3219)) ([8cf4e9d](https://github.com/dasch-swiss/dsp-api/commit/8cf4e9dc5c93261179c1e6fa927448e84899a67f))
docs/03-endpoints/api-v2/editing-values.md
307:it is necessary to send the header `X-Asset-Ingested`
integration/src/test/scala/org/knora/webapi/e2e/v2/ValuesV2R2RSpec.scala
132: val header = addHeader("X-Asset-Ingested", "true")
integration/src/test/scala/org/knora/webapi/it/v2/StandoffRouteV2ITSpec.scala
54: private val addAssetIngested = addHeader("X-Asset-Ingested", "true")
99: ) ~> addHeader("X-Asset-Ingested", "true")
integration/src/test/scala/org/knora/webapi/it/v2/KnoraSipiIntegrationV2ITSpec.scala
67: private val addAssetIngested = addHeader("X-Asset-Ingested", "true")
integration/src/test/scala/org/knora/webapi/it/v2/KnoraSipiIntegrationV2ITSpec.scala
Outdated
Show resolved
Hide resolved
integration/src/test/scala/org/knora/webapi/it/v2/KnoraSipiIntegrationV2ITSpec.scala
Show resolved
Hide resolved
integration/src/test/scala/org/knora/webapi/it/v2/StandoffRouteV2ITSpec.scala
Outdated
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/responders/v2/StandoffResponderV2.scala
Show resolved
Hide resolved
Technically this is a breaking change and not a refactor. I would suggest |
f85c89e
to
3708cb6
Compare
Removed: