-
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: Add watermark support (DEV-2993) (DEV-2991) #3003
Conversation
…se to return a boolean for the asset permission response
watermark.tif
to knora-sipi container
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3003 +/- ##
===========================================
+ Coverage 11.74% 88.52% +76.77%
===========================================
Files 246 259 +13
Lines 22907 23097 +190
===========================================
+ Hits 2690 20446 +17756
+ Misses 20217 2651 -17566 ☔ View full report in Codecov by Sentry. |
watermark.tif
to knora-sipi containerwatermark.tif
to knora-sipi container (DEV-2993)
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.
Tests are failing and have 2 questions:
...n/scala/org/knora/webapi/messages/admin/responder/projectsmessages/ProjectsMessagesADM.scala
Outdated
Show resolved
Hide resolved
watermark.tif
to knora-sipi container (DEV-2993)…pct:n" notation which allowed n to be outside of 1<=n<=100
… no restriction is returned from the api
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 think the documentation needs to be updated and final question - what about the knora-ontology change? Should then the version be bumped and plugin created? If so, maybe we shouldn't include this PR to tomorrows release?
webapi/src/main/scala/org/knora/webapi/slice/admin/api/ProjectsEndpoints.scala
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/slice/admin/api/ProjectsEndpointsHandler.scala
Show resolved
Hide resolved
It is part of this PR … c28e711 |
Either I will create a followup which lets us update the single statement in the db or it will have to be a manual step. Since we are unsure about if the IMHO, if we update the knora-admin ontology in the db manually it should not keep us from bringing this feature online. |
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.
LGTM 👍
Pull Request Checklist
Task Description/Number
watermark.tif
to knora-sipi container which is used for watermarking.knora-admin:projectRestrictedViewWatermark
property to aboolean
.POST admin/projects/[shortcode|iri]/RestrictedViewSettings
endpoints with an optionalwatermark
boolean value.GET admin/files/[shortcode]/filename
andGET admin/projects/[shortcode|iri]/RestrictedViewSettings
endpoints to return thewatermark
boolean.zio-mock
dependency and related tests.Depends on dasch-swiss/sipi#405 being released in a new Sipi version.
Updating the knora base version is done in a followup PR #3005
PR Type
Basic requirements for bug fixes and features
Does this PR introduce a breaking change?
Does this PR change client-test-data?