Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Add supports for pulp notification callbacks #9

Closed
wants to merge 1 commit into from

Conversation

ohadlevy
Copy link
Member

  • adds /api/repositories/events POST action
  • adds PulpEventHandler class to parse and act on the events.
  • adds an option to auto register events on pulp, this however is dead code
    at the moment since i would assume the workflow will change once we have
    multi-pulp support

to register notifications (in the meanwhile) manually on your pulp
server execute:
pulp-admin event listener http create

@@ -0,0 +1,25 @@
class Content::PulpEventHandler
Copy link
Member

Choose a reason for hiding this comment

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

Is this class simply being used to log when we receive a notification from Pulp or does it have future intended uses? Can we put non-AR objects either in a sub-directory or app/lib ?

Copy link
Member Author

Choose a reason for hiding this comment

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

the idea is to use this as a starting point, to get sync notifications, to update the last sync state etc (if we want to cache it / save it in the AR object etc).

afaik, the best practice for files like these should be in app/services, if that makes more sense we can move it?

Copy link
Member

Choose a reason for hiding this comment

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

+1 to app/services

* adds /api/repositories/events POST action
* adds PulpEventHandler class to parse and act on the events.
* adds an option to auto register events on pulp, this however is dead code
at the moment since i would assume the workflow will change once we have
multi-pulp support

to register notifications (in the meanwhile) manually on your pulp
server execute:
pulp-admin event listener http create
@ohadlevy
Copy link
Member Author

@ehelms updated

@ehelms
Copy link
Member

ehelms commented Jul 25, 2013

ACK

@ohadlevy
Copy link
Member Author

merged as 0d17965

@ohadlevy ohadlevy closed this Jul 25, 2013
@ohadlevy ohadlevy deleted the pulp-notifications branch July 25, 2013 13:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants