Skip to content
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

XWIKI-18047: Non existing pages can be rated #3233

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

manuelleduc
Copy link
Contributor

Jira URL

https://jira.xwiki.org/browse/XWIKI-18047

Changes

Description

  • Check server side if the page exists before adding a rating
  • Hide the rating UI when the page does not exist

Clarifications

  • N/A

Screenshots & Video

N/A

Executed Tests

mvn clean install -f xwiki-platform-core/xwiki-platform-ratings -Pquality,integration-tests,docker
mvn clean install -f xwiki-platform-core/xwiki-platform-like -Pquality,integration-tests,docker

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • stable-16.4.x
    • stable-15.10.x

@manuelleduc manuelleduc added backport stable-15.10.x Used for automatic backport to 15.10.x branch. backport stable-16.4.x labels Jun 27, 2024
@manuelleduc manuelleduc requested a review from surli June 27, 2024 15:19
@manuelleduc manuelleduc changed the title XWIKI-18047: Non existing pages can be voted XWIKI-18047: Non existing pages can be rated Jul 1, 2024
  * Provide new DocumentReference#valueOf API to extract
    DocumentReferenec from an EntityReference
@surli surli requested a review from tmortagne July 16, 2024 14:33
  * Few improvments in the new API for extracting document reference
    from an entity reference
@surli surli merged commit 3b7d494 into xwiki:master Jul 17, 2024
1 check passed
github-actions bot pushed a commit that referenced this pull request Jul 17, 2024
 * Check server side if the page exists before adding a rating
  *  Hide the rating UI when the page does not exist
  * Provide new DocumentReference#extractReference API to extract
    DocumentReferenec from an EntityReference

---------

Co-authored-by: Simon Urli <simon.urli@xwiki.com>
(cherry picked from commit 3b7d494)
github-actions bot pushed a commit that referenced this pull request Jul 17, 2024
 * Check server side if the page exists before adding a rating
  *  Hide the rating UI when the page does not exist
  * Provide new DocumentReference#extractReference API to extract
    DocumentReferenec from an EntityReference

---------

Co-authored-by: Simon Urli <simon.urli@xwiki.com>
(cherry picked from commit 3b7d494)
surli pushed a commit that referenced this pull request Jul 17, 2024
 * Check server side if the page exists before adding a rating
  *  Hide the rating UI when the page does not exist
  * Provide new DocumentReference#extractReference API to extract
    DocumentReferenec from an EntityReference

---------

Co-authored-by: Simon Urli <simon.urli@xwiki.com>
(cherry picked from commit 3b7d494)
surli pushed a commit that referenced this pull request Jul 17, 2024
 * Check server side if the page exists before adding a rating
  *  Hide the rating UI when the page does not exist
  * Provide new DocumentReference#extractReference API to extract
    DocumentReferenec from an EntityReference

---------

Co-authored-by: Simon Urli <simon.urli@xwiki.com>
(cherry picked from commit 3b7d494)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport stable-15.10.x Used for automatic backport to 15.10.x branch. backport stable-16.4.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants