-
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
chore: Remove knora-ontologies
symlink (DEV-3236)
#3035
Conversation
webapi/src/main/scala/org/knora/webapi/store/triplestore/upgrade/RepositoryUpdatePlan.scala
Outdated
Show resolved
Hide resolved
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3035 +/- ##
===========================================
+ Coverage 11.74% 88.76% +77.02%
===========================================
Files 246 262 +16
Lines 22907 22806 -101
===========================================
+ Hits 2690 20244 +17554
+ Misses 20217 2562 -17655 ☔ View full report in Codecov by Sentry. |
045761f
to
94ad6c0
Compare
@seakayone The resetting from docker now works, but I don't think it ever worked while running directly from SBT, at least, I can't see how it could have, because it was relying specifically on the docker mounted paths. EDIT: this is not quite the case, because TriplestoreServiceLive loads them locally as well, so I'll have to think about the fix a bit. |
@seakayone Some advice would be helpful, here's the problem: The From the container, cwd = The DefaultRdfData contains a list of paths and introducing a path distinction for the deployment type would be weird. Because of this having the symlink is a wonderful fix, however, if we do indeed want to get rid of it, I would suggest loading both of these resource directories as resources, have them baked in the jar for docker and accessible via regular resource loading mechanism in local dev. It would add 45M of content, however, but at least the access would be uniform. What do you think about the proposition? The non-uniform option would be to create a configuration after all, which would be 2x2 choices – local/container × |
As discussed, I would not like to have the |
I was just once again reminded that there's the third scenario where these files get loaded, so to sum them up:
The third one never worked, so I haven't fixed it. |
Another interesting tidbit: the reset triple store endpoint is guarded by the
|
…ent never worked outside the container
…a through resources
89d6aea
to
039f0e0
Compare
) | ||
) ++ Chunk(RepositoryUpdatePlan.builtInNamedGraphs.toSeq: _*) |
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.
If that is re-used here, I wonder if it should still live in RepositoryUpdatePlan
? It seems more general now.
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 am not entirely sure what would be best. It could be defined in DefaultRdfData indeed, if you wish me to move it.
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.
Don't forget to assign yourself to PR and to go through the checkboxes. If PR doesn't correspond to any issue/ticket, add short description under Task Description/Number
section of the PR template, which tells what is the motivation behind it. Thanks!
knora-ontologies
symlinkknora-ontologies
symlink (DEV-3236)
@mpro7 I added the ticket number to the PR title, I'd truly forgotten it. However, I was wondering what the benefits of adding myself as an assignee are? |
As I mentioned already in one of your former PRs, it's easier to serach through PRs if one is looking for something - it's possible to filter by assignee field too. |
@mpro7 I'm not sure there's much use since I'm already the author, but ok. |
You're right, author works too, but it became our habit so why to change it? I find useful to find recent PRs in history of closed ones. |
@mpro7 Fair enough. |
Pull Request Checklist
Task Description/Number
Issue Number: DEV-
PR Type
Basic requirements for bug fixes and features
Does this PR introduce a breaking change?
Does this PR change client-test-data?