Support inclusion of configuration#1412
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 |
osma
left a comment
There was a problem hiding this comment.
I started looking at this but unfortunately didn't finish testing everything. However, I found two issues:
-
The
Content-typeheader (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!
|
I doubt this is related to this isse because the |








Reasons for creating this PR
This adds repeatable configuration property
skosmos:includeConfigto include configuration from file or URL. The configuration is cached as usual, based on modification time ofconfig.ttlonly.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-onlyclass, color contrast)