-
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
Initial draft for listing new and modified concepts for a vocabulary in the REST API #982
Conversation
Codecov Report
@@ Coverage Diff @@
## master #982 +/- ##
============================================
+ Coverage 59.12% 65.20% +6.08%
- Complexity 1548 1829 +281
============================================
Files 32 32
Lines 4335 5280 +945
============================================
+ Hits 2563 3443 +880
- Misses 1772 1837 +65
Continue to review full report at Codecov.
|
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 is how the JSON output of modifiedConcepts
currently looks:
Some observations:
- JSON-LD context is missing for most fields/properties
- The results are grouped by month, as they are shown in the UI. I think that is unnecessary in a REST API. It would be better to just return a flat list.
- The dates are very complex objects with several fields. It would be better to just return ISO 8601 datetime strings such as
2020-05-04T02:44:12+00:00
, which can then be assigned the xsd:dateTime data type in the JSON-LD context
3ade80f
to
855ef57
Compare
…cepts for a vocabulary
…forming the change list
…ssed by each controller to the format they need
855ef57
to
ce77bc6
Compare
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.
Some rather minor remarks
Other comments on the PR:
|
…ze of the list of changed concepts.
Scrutinizer complains about the getChangeList method docstring:
Method signature:
|
Postponing to the next release, will release 2.6 without this PR since there are still things to improve |
…cepts for a vocabulary
…forming the change list
…ssed by each controller to the format they need
…ze of the list of changed concepts.
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.
Still a few things to improve/fix, but looking pretty good 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.
A couple of minor phpdoc bugs, otherwise ready for merging
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Output can be seen e.g.
curl -X GET --header 'Accept: application/json' http://localhost/Skosmos/rest/v1/yso/modifiedConcepts?lang=en'