-
Notifications
You must be signed in to change notification settings - Fork 95
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
Support inclusion of configuration #1412
base: skosmos-2
Are you sure you want to change the base?
Conversation
588cdaf
to
93159a2
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1412 +/- ##
============================================
+ Coverage 69.55% 69.70% +0.14%
- Complexity 1650 1665 +15
============================================
Files 32 32
Lines 4257 4291 +34
============================================
+ Hits 2961 2991 +30
- Misses 1296 1300 +4
... and 1 file with indirect coverage changes 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 in Codecov by Sentry. |
Thanks a lot, this looks promising! I like the way this sidesteps the thorny cache invalidation problem by relying only on the timestamp of |
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 started looking at this but unfortunately didn't finish testing everything. However, I found two issues:
-
The
Content-type
header (see comment) -
The test are passing, but there is now some extra output
Error: $prefix should only contain alpha-numeric characters
, as can be seen here in the CI output under "Run PHPUnit tests". I think this happens because EasyRdf doesn't like namespace prefixes with hyphens (only letters, numbers and underscores are allowed). I did a little digging and found out that the problematic prefix ismultiple-schemes:
but I have no idea where that comes from. Could you take a look?
This adds repeatable configuration property `skosmos:includeConfig` to include configuration from file or URL. The configuration is cached as usual, based on modification time of `config.ttl` only. See NatLibFi#1403 for discussion.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I doubt this is related to this isse because the |
Reasons for creating this PR
This adds repeatable configuration property
skosmos:includeConfig
to include configuration from file or URL. The configuration is cached as usual, based on modification time ofconfig.ttl
only.Link to relevant issue(s), if any
Description of the changes in this PR
Introduce non-recursive inclusion of configuration.
Known problems or uncertainties in this PR
The code is not fully covered by tests, in particular caching of configuration (was not covered before neither) and error messages (would require to add more example configuration files but I did not manage to get this into
GlobalConfigTest.php
).Checklist
.sr-only
class, color contrast)