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
fix!: transform valueHasUri values from node to string type (DEV-1047) #2094
fix!: transform valueHasUri values from node to string type (DEV-1047) #2094
Conversation
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.
looks good: you missed some println()
, and one question regarding the test. But otherwise should be ok
.../test/scala/org/knora/webapi/store/triplestore/upgrade/plugins/UpgradePluginPR2094Spec.scala
Outdated
Show resolved
Hide resolved
.../test/scala/org/knora/webapi/store/triplestore/upgrade/plugins/UpgradePluginPR2094Spec.scala
Outdated
Show resolved
Hide resolved
knora-base:standoffTagHasStartIndex 2 ; | ||
knora-base:standoffTagHasStartParent <http://rdfh.ch/0103/5LE8P57nROClWUxEPJhiug/values/fEbt5NzaSe6GnCqKoF4Nhg/standoff/1> ; | ||
knora-base:standoffTagHasUUID "dd2e785b-041e-4bcb-a77d-570efe8a068c" ; | ||
knora-base:valueHasUri <http://www.maison-george-sand.fr/> . |
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.
not sure if that makes much sense... but you could consider testing also the case where a URI should not be converted to a string?
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.
This plugin is very specific and picks only the node values in type IriNode
. IMO as with the PR2079 plugin this is enough.
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, spotted just one typo. I assume you've tested it with real standoff data, meaning testing it locally and checking if the app can handle it etc.?
.../src/main/scala/org/knora/webapi/store/triplestore/upgrade/plugins/UpgradePluginPR2094.scala
Outdated
Show resolved
Hide resolved
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! you really like to deploy major versions ;-)
@irinaschubert I double checked that and
|
Kudos, SonarCloud Quality Gate passed!
|
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: DEV-1047
What is the new behavior?
Does this PR introduce a breaking change?
Other information