-
-
Notifications
You must be signed in to change notification settings - Fork 601
XWIKI-16457: Update the identifier of the extension point used to make the HTML head plugable #1115
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
Conversation
…e the HTML head plugable - Update extension point id from 'org.xwiki.platform.head' to 'org.xwiki.platform.html.head'
| ## Add HTML tags inside the page's head element, provided by UI Extensions implementing the "org.xwiki.platform.head" Extension Point | ||
| #foreach($uix in $services.uix.getExtensions("org.xwiki.platform.head", {'sortByParameter' : 'order'})) | ||
| ## Add HTML tags inside the page's head element, provided by UI Extensions implementing the "org.xwiki.platform.html.head" Extension Point | ||
| #foreach($uix in $services.uix.getExtensions("org.xwiki.platform.html.head", {'sortByParameter' : 'order'})) |
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.
@slauriere I didn't check the history but if the previous UIXP id was released then it's a backward compatibility breakage. Is that the case?
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.
Just checked and indeed it's a breakage :( The UIXP was introduced in https://jira.xwiki.org/browse/XWIKI-16093 ie 11.1RC1.
BTW the documentation page for it is in a bad shape :( see https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/ExtensionPoint/HTMLHead
It says it's a work in progress which is not true since it was already committed and it's missing the version when it was introduced.
In addition issue https://jira.xwiki.org/browse/XWIKI-16093 has not documentation fields filled so I don't see how XWiki 11.1RC1 could have been released. Seems the RM failed to check missing doc even though it's marked as checked on https://dev.xwiki.org/xwiki/bin/view/ReleasePlans/ReleasePlan11.1RC1 (cc @mflorea do you remember?).
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.
So the canonical solution right now if you want to break an API is to send a vote on the devs list explaining why it's important and evaluating the consequences (at least that's our process).
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.
Related: FTR I created an issue about adding aliases for UIXP but it's not implemented: https://jira.xwiki.org/browse/XWIKI-12982
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.
Just noticed that Caty commented too at https://jira.xwiki.org/browse/XWIKI-16093?focusedCommentId=102664&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-102664
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.
From what I understood it's Caty who close the issue and marked it as fixed in 11.1RC1 since the commit was pushed in this version. So it couldn't be found for the release since it was still open without a fix version.
Indeed good point. So what we're missing is a check to find issues with commits and that are open. I can provide a filter for this. Will do and add to the Release Plan template.
EDIT: I implemented a first version in the ReleasePlan. See https://matrix.to/#/!ikPtGZaGWtyblizzlR:matrix.xwiki.com/$15598204899394wSBie:matrix.xwiki.com?via=matrix.org&via=matrix.xwiki.com&via=chat.weho.st for details
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.
Thanks @surli and @vmassol for the guidance, and apologies for the extra work. I sent a vote to the devs list requesting an API breakage indeed, and I updated the documentation page. I have also filled in the documentation field of both XWIKI-16093 and XWIKI-16457. Please let me know if other actions are needed on my end.
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.
@slauriere thanks for updating the doc page. However, it's not fully correct on 2 aspects:
- the version is still missing. Seems you put in the description which is not the right place. It should be put in the xobject ;) Also make sure that all xproperties are filled.
- it's missing an example with a screenshot. We need a simple example inside the page. It's ok that you provide a link to a real life usage but we also need a simple example.
Thanks!
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.
the version is still missing
You can verify this in the LT at https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/ExtensionPoint/
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've updated the documentation page with the following changes indeed: version added in the XObject, other properties filled in, screenshot added, with also some code sample. Hoping everything is getting in order.
…e the HTML head plugable (#1115)
This request aims at changing the identifier of the HTML head extension point.