Skip to content

Conversation

slauriere
Copy link
Contributor

@slauriere slauriere commented Jun 5, 2019

This request aims at changing the identifier of the HTML head extension point.

…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'}))
Copy link
Member

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?

Copy link
Member

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?).

Copy link
Member

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).

Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@vmassol vmassol Jun 6, 2019

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

Copy link
Contributor Author

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.

Copy link
Member

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:

  1. 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.
  2. 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!

Copy link
Member

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/

Copy link
Contributor Author

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.

@vmassol vmassol merged commit 36b1774 into xwiki:master Jun 6, 2019
vmassol pushed a commit that referenced this pull request Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants