User tests: Successful: Unsuccessful:
— Updated the types.json file with the new available Types and Properties
— Small documentation & code refactoring
— Bug fix: if specified, return an empty string on fallback or disabled library, even if a content is available https://github.com/joomla/joomla-cms/pull/4108/files#diff-cd3328236e7aecb09373c1c564b9bbb8R256
Status | Pending | ⇒ | New |
Labels |
Added:
?
?
|
Status | New | ⇒ | Pending |
@betweenbrain The types.json file doesn't have any test. Even if the https://github.com/joomla/joomla-cms/blob/staging/tests/unit/suites/libraries/joomla/microdata/JMicrodataTest.php file has a lot of changes, almost all of them are english language errors, + a new test was added to fix the bug (a logic bug). You think more tests need to be added?
Status | Pending | ⇒ | New |
Labels |
Removed:
?
|
Status | New | ⇒ | Pending |
Status | Pending | ⇒ | Information Required |
Hello @PAlexcom
Thank you for your contribution.
The last comment here was on 16th August 2014. So the question is, Is this issue/pull request still valid?
if so please provide clear test instructions to be able to test / reproduce this issue.
If no reply is received within 4 weeks we will close this issue.
Thanks for understanding!
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-12-12 15:43:16 |
Closed_By | ⇒ | roland-d |
Labels |
Added:
?
|
Milestone |
Added: |
Merged based on review. Library is not used in core itself.
@PAlexcom Nice and usefull piece of code, the JMicrodata class. Thanks.
I started these days to implement microdata in some extensions, but there are differences between schema.org and the types.json file.
I found some missing properties (Event->workPerformed) and expected porperty-types (PostalAddress->addressCountry can be Text too, not only type 'Country')
To avoid hardcoding - where can I get the most recent types.json-file? Should I use your Spider4Schema for that?
@peterpeter Thanks & sorry for the late reply ;)
I started these days to implement microdata in some extensions, but there are differences between schema.org and the types.json file.
That is because the types.json
file is an older version, a new PR should be done in order to update the file.
To avoid hardcoding - where can I get the most recent types.json-file? Should I use your Spider4Schema for that?
Yes, Spider4Schema is the spider/parser that creates the types.json
file, however I'm not sure if it still works properly since schema.org have changed their website recently.
@alexprut I understand you don't remember when it's such an old PR. It is already in Joomla 3.5.0 so it's OK. At least it did go in :)
I hardly dare to ask but could you do a new PR with the updates types.json file? Put me in there as well so I am aware of it. Thank you.
Looks good from a quick review of the file changes. How can this be manually tested? Does https://github.com/joomla/joomla-cms/blob/staging/tests/unit/suites/libraries/joomla/microdata/JMicrodataTest.php need updating?