Skip to content

Commit

Permalink
Merge branch 'xwiki:master' into XWIKI-21773
Browse files Browse the repository at this point in the history
  • Loading branch information
Sereza7 authored Feb 12, 2024
2 parents 849e535 + 1c596ea commit 89793a1
Show file tree
Hide file tree
Showing 1,002 changed files with 10,448 additions and 4,851 deletions.
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
backport stable-16.0.x:
- head-branch: ['^weblate']

backport stable-15.10.x:
- head-branch: ['^weblate']

backport stable-15.5.x:
- head-branch: ['^weblate']

backport stable-14.10.x:
- head-branch: ['^weblate']
26 changes: 26 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Backport
on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
name: Backport
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
steps:
- uses: tibdex/backport@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
30 changes: 24 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-pom</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
<!-- Note: Do NOT set the <relativePath> tag here as this can cause issues. For example imagine you're using
Jenkins and you have the following directory structure:
workspace/xwiki-commons
Expand All @@ -41,7 +41,7 @@
<artifactId>xwiki-platform</artifactId>
<name>XWiki Platform - Parent POM</name>
<packaging>pom</packaging>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
<description>XWiki Platform - Parent POM</description>
<properties>
<!-- Useful for external Maven projects that extend the Platform POM. Must not be used by Platform project! -->
Expand All @@ -61,15 +61,15 @@
<jetty.client.version>9.4.53.v20231009</jetty.client.version>
<jetty.server.version>10.0.19</jetty.server.version>
<jetty.version>${jetty.client.version}</jetty.version>
<netty.version>4.1.104.Final</netty.version>
<netty.version>4.1.105.Final</netty.version>
<hibernate.version>5.6.15.Final</hibernate.version>
<dockerJava.version>3.3.4</dockerJava.version>
<cvssCalculator.version>1.4.2</cvssCalculator.version>
<solr.version>8.11.2</solr.version>
<zookeeper.version>3.9.1</zookeeper.version>

<!-- Versions of other software we need in our functional tests -->
<testcontainers.version>1.19.3</testcontainers.version>
<testcontainers.version>1.19.4</testcontainers.version>
<!-- The LO version must point to the latest version from "Still" branch (LTS). When upgrading the version make
sure the new version is available from https://download.documentfoundation.org/libreoffice/stable/
Note: We don't need to exact version (e.g. 7.2.7.2) since the LTS is made available using a max of 2 dots
Expand Down Expand Up @@ -106,7 +106,7 @@
<hsqldb.version>2.7.2</hsqldb.version>
<mysql.groupId>com.mysql</mysql.groupId>
<mysql.artifactId>mysql-connector-j</mysql.artifactId>
<mysql.version>8.2.0</mysql.version>
<mysql.version>8.3.0</mysql.version>
<mariadb.groupId>org.mariadb.jdbc</mariadb.groupId>
<mariadb.artifactId>mariadb-java-client</mariadb.artifactId>
<mariadb.version>3.3.2</mariadb.version>
Expand Down Expand Up @@ -432,7 +432,7 @@
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.12.6</version>
<version>2.12.7</version>
</dependency>
<!-- Common WebJars -->
<dependency>
Expand Down Expand Up @@ -1167,6 +1167,19 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>vue</artifactId>
<version>2.7.16</version>
<exclusions>
<!-- Excluded because this dependency is 1) not used at runtime since all out components are pre-compiled 2)
not currently deployable on webjars.org (see https://github.com/webjars/webjars/issues/1976) -->
<exclusion>
<groupId>org.webjars.npm</groupId>
<artifactId>vue__compiler-sfc</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<build>
Expand Down Expand Up @@ -1510,6 +1523,11 @@
<options>esversion:11,maxparams:5,maxdepth:3,maxstatements:20,maxcomplexity:10,camelcase,maxlen:120</options>
</configuration>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.15.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down
86 changes: 4 additions & 82 deletions xwiki-platform-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-core</artifactId>
<name>XWiki Platform - Core - Parent POM</name>
Expand Down Expand Up @@ -125,87 +125,9 @@
Single justification example:
-->
<revapi.differences>
<justification>Those APIs are still available with legacy packages.</justification>
<criticality>allowed</criticality>
<differences>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.XWiki::addTooltip(java.lang.String, java.lang.String, com.xpn.xwiki.XWikiContext)</old>
</item>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.XWiki::addTooltip(java.lang.String, java.lang.String, java.lang.String, com.xpn.xwiki.XWikiContext)</old>
</item>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.XWiki::addTooltipJS(com.xpn.xwiki.XWikiContext)</old>
</item>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.api.Document::displayTooltip(java.lang.String)</old>
</item>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.api.Document::displayTooltip(java.lang.String, com.xpn.xwiki.api.Object)</old>
</item>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.doc.XWikiDocument::displayTooltip(java.lang.String, com.xpn.xwiki.XWikiContext)</old>
</item>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.doc.XWikiDocument::displayTooltip(java.lang.String, com.xpn.xwiki.objects.BaseObject, com.xpn.xwiki.XWikiContext)</old>
</item>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.api.XWiki::addTooltip(java.lang.String, java.lang.String)</old>
</item>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.api.XWiki::addTooltip(java.lang.String, java.lang.String, java.lang.String)</old>
</item>
<item>
<ignore>true</ignore>
<code>java.method.removed</code>
<old>method java.lang.String com.xpn.xwiki.api.XWiki::addTooltipJS()</old>
</item>
</differences>
</revapi.differences>
<revapi.differences>
<differences>
<item>
<criticality>allowed</criticality>
<code>java.class.nonFinalClassInheritsFromNewClass</code>
<old>class org.xwiki.filter.instance.output.DocumentInstanceOutputProperties</old>
<new>class org.xwiki.filter.instance.output.DocumentInstanceOutputProperties</new>
<superClass>org.xwiki.filter.instance.output.EntityInstanceOutputProperties</superClass>
<justification>Not a breakage, the old DocumentInstanceOutputProperties content has been moved to the new EntityInstanceOutputProperties class and old class now inherits from the new one</justification>
</item>
</differences>
</revapi.differences>
<revapi.differences>
<differences>
<item>
<ignore>true</ignore>
<code>java.class.nonFinalClassInheritsFromNewClass</code>
<old>class org.xwiki.livedata.macro.LiveDataMacroParameters</old>
<new>class org.xwiki.livedata.macro.LiveDataMacroParameters</new>
<superClass>org.xwiki.livedata.internal.LiveDataRendererParameters</superClass>
<justification>Not a runtime breaking change.</justification>
<criticality>allowed</criticality>
</item>
</differences>
</revapi.differences>



</analysisConfiguration>
</configuration>
</plugin>
Expand Down
4 changes: 2 additions & 2 deletions xwiki-platform-core/xwiki-platform-activeinstalls2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-core</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-activeinstalls2</artifactId>
<name>XWiki Platform - Active Installs 2 - Parent POM</name>
<packaging>pom</packaging>
<description>Parent POM for the Active Installs 2 modules</description>
<properties>
<!-- Tag for the ElasticSearch docker image to use from https://hub.docker.com/_/elasticsearch -->
<elasticsearch.version>8.11.2</elasticsearch.version>
<elasticsearch.version>8.12.1</elasticsearch.version>
</properties>
<build>
<pluginManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-activeinstalls2</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-activeinstalls2-api</artifactId>
<name>XWiki Platform - Active Installs 2 - API</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-activeinstalls2</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-activeinstalls2-test</artifactId>
<name>XWiki Platform - Active Installs 2 - Tests - Parent POM</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-activeinstalls2-test</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-activeinstalls2-test-docker</artifactId>
<name>XWiki Platform - Active Installs 2 - Tests - Functional Docker Tests</name>
Expand Down
2 changes: 1 addition & 1 deletion xwiki-platform-core/xwiki-platform-administration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-core</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-administration</artifactId>
<name>XWiki Platform - Administration - Parent POM</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-administration</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-administration-test</artifactId>
<name>XWiki Platform - Administration - Tests - Parent POM</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-administration-test</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-administration-test-docker</artifactId>
<name>XWiki Platform - Administration - Tests - Functional Docker Tests</name>
Expand Down Expand Up @@ -64,6 +64,13 @@
<version>${project.version}</version>
<type>xar</type>
</dependency>
<!-- The UserProfile sheet is used to disable/enable user profiles -->
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-user-profile-ui</artifactId>
<version>${project.version}</version>
<type>xar</type>
</dependency>
<!-- ================================
Test only dependencies
================================ -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@

@UITest(properties = {
// Add the RightsManagerPlugin needed by the test
"xwikiCfgPlugins=com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin"
"xwikiCfgPlugins=com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin",
// Programming rights are required to disable/enable user profiles (cf. XWIKI-21238)
"xwikiPropertiesAdditionalProperties=test.prchecker.excludePattern=.*:XWiki\\.XWikiUserProfileSheet"
})
public class UsersGroupsRightsManagementIT
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-administration-test</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-administration-test-pageobjects</artifactId>
<name>XWiki Platform - Administration - Tests - Page Objects</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.Arrays;
import java.util.List;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.xwiki.test.ui.po.BootstrapSelect;
Expand Down Expand Up @@ -52,7 +53,8 @@ public LocalizationAdministrationSectionPage()
waitUntilActionButtonIsLoaded();
// Wait for asynchronous widgets to be loaded
getDriver().waitUntilCondition(driver -> multiLingualSelect.isDisplayed() && defaultLanguageSelect.isDisplayed()
&& supportedLanguagesSelect.isDisplayed());
&& (multiLingualSelect.findElement(By.xpath(".//option[@value='0']")).isSelected()
|| supportedLanguagesSelect.isDisplayed()));
}

public void setMultiLingual(boolean isMultiLingual)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-administration</artifactId>
<version>16.0.0-SNAPSHOT</version>
<version>16.1.0-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-administration-ui</artifactId>
<name>XWiki Platform - Administration - UI</name>
Expand Down
Loading

0 comments on commit 89793a1

Please sign in to comment.