Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-11753

PlanFavouriteRemovedEvent and PlanFavouriteAddedEvent Seems to Reverse Functionality

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.2
    • 4.1
    • Plugins
    • None

    Description

      Using Bamboo 4.1, on JDK 6, on Windows 7.

      I wrote a Bamboo Event Listener that implements HibernateEventListener and has a getHandledEventClasses and handle methods like so :

      @Override
      public Class[] getHandledEventClasses() {
      return new Class[]

      { PlanFavouriteAddedEvent.class, PlanFavouriteRemovedEvent.class }

      ;
      }

      @Override
      public void handleEvent(Event event)

      { log.info(event.getClass().getCanonicalName()); }

      I installed the listener as part of a plugin into Bamboo 4.1. Then i went to several plans and marked them as favourites and then unmarked then as a favourite.

      When I clicked to mark a Plan as a favourite (the Star turns gold) and seems to work fine. However in the log is shows :

      com.atlassian.bamboo.event.PlanFavouriteRemovedEvent

      which seems to be the REMOVED event.

      In the user interface I click the button to turn off the plan being a favourite (the star turns back to grey) and in the log the opposite Event is triggered in the log :

      com.atlassian.bamboo.event.PlanFavouriteAddedEvent

      It seems the 2 events got reversed?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ef602377c686 Adam Myatt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: