-
Notifications
You must be signed in to change notification settings - Fork 808
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
Travis TODO #184
Comments
FYI, #186 is passing despite the owner field being incorrect. |
It did actually catch it, but as an external link, which we currently ignore, unless you manually review them. Before: After: |
Still not right, see the last two commits here: |
I've realised, it's not catching the broken org links, as the site is already coded to defend against them. orgpath contains the actual, potentially incorrect URL https://github.com/pidcodes/pidcodes.github.com/blob/master/_layouts/pid.html#L2 |
Proved here: Are you happy for me to make the change @Arachnid ? It would only make a difference if something gets merged with a broken link. |
Good catch - please do! |
Done, see #198 . To be undone once we get some better suited method of checking the fields, like the hex markdown checks will require. |
Confirmed the link validation will catch people giving their org folder the wrong name, sorted in #198 |
Some possible validation options: |
I'm reasonably happy with verifying the generated HTML; is there a big disadvantage to doing that, or stuff we can't catch? |
For starters, 000a and 000A are different folder names, so you could get two people grabbing the same PID for example (perhaps even force a specific case to fix the sorting). I'm sure once it's in place, there will be other benefits that become easy wins, like ensuring people have filled in the required fields. Perhaps even validating for a license from the various types. |
Yup, case sensitivity and accidental collisions because of that is something I've been worried about for a while. Good point that it's fixable with more sophisticated validation. |
Likewise https://travis-ci.org/pidcodes/pidcodes.github.com/jobs/195217329#L342 , we can validate people are using valid layouts. |
I noticed the invalid layout when reviewing it. Throwing an error would be much more useful here. |
Agreed, I'm hoping jekyll/jekyll#5832 will improve things when it gets merged. |
I've added a basic Python validator in #554. It only does 0x1xxx checking now but should be able to do case checking and file path validation easily. https://github.com/pidcodes/pidcodes.github.com/pull/554/files#diff-c595d105a360259a2077a56eae46bcf3 |
The fourth bullet is done it #582 |
The text was updated successfully, but these errors were encountered: