XWiki

Introduce DocumentMovingEvent and DocumentMovedEvent events

If it's your first Google Code-In task it's highly recommended to start with Become a community member.

Prerequisites

  • The student will need to have a Jira account, if it's not the case you can signup here
  • The student will also need a https://www.github.com account. You might also want to take a look at Git and GitHub interface documentations.

  • Assign yourself to the Jira issue

Issue

Or maybe DocumentRenamedEvent.

The idea is that there is code which are linking resources to specific document and would like to know when a document has been moved.

For example when you watch some document and that someone move it you are not watching it anymore.

The best place to put this event for now is probably along with the document events in https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-bridge/src/main/java/org/xwiki/bridge/event.

Of course you also need to make sure the standard move code will send those events. See https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/job/MoveJob.java.

Expected Outcome

  • The student must commit the changes and create a pull request on https://github.com/xwiki/xwiki-platform The summary of the Pull Request must have a first line matching the JIRA issue following by a colon and then the title of this issue Add a comment in the jira issue mentioning your pull request and provide a link to it

Links

Getting help

If you have any question you should use the Chat (faster answer, but when there is someone around) or the Forum (more people available, but slower answer).

Task tags

  • java

Students who completed this task

Srijan Jha

Task type

  • code Code
close

2017