Skip to content

Conversation

acotiuga
Copy link
Member

No description provided.

* Retrieves the XWiki private API object.
*
* @return The XWiki private API object
*/
Copy link
Member

Choose a reason for hiding this comment

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

why protected?

@vmassol
Copy link
Member

vmassol commented Mar 31, 2016

This code is missing a unit test

* @param documentRef the document being rated or for which the existing ratings are fetched
* @return the lowest level ratings configuration doc
* @since 8.1M1
*/
Copy link
Member

Choose a reason for hiding this comment

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

You should also add an @unstable annotation

@vmassol
Copy link
Member

vmassol commented Mar 31, 2016

I also see some code manipulating the configuration here

and here
new DocumentReference(RatingsManager.RATINGS_CONFIG_SPACE_PAGE, sourceDoc.getDocumentReference()

Ideally we should only have one place i the Java API to get the config and the Script Service should call that API.

@acotiuga
Copy link
Member Author

PR replaced by 528.

@acotiuga acotiuga closed this Jul 28, 2016
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.

2 participants