#37 Refactor code to re-organize handlers v2
Closed by qwan. Opened by qwan.
qwan/freshmaker refactor-handlers-v2  into  master

Download 37.patch

Changes:

  1. Parsers are organized with dirs for sources (git, mbs, koji, bodhi).
  2. Events, parsers and handlers are generally renamed to include message
    topic. One exception is those for topic of git.receive which is splitted
    into multiple events, parsers and handlers.
  3. Handlers for building containers are placed under
    handlers/containers, and handlers for building modules are placed under
    handlers/modules.
  4. Have one handler for each event, this is also why naming the handlers
    with message topic included.
  5. Updated unittest cases per the changes.

Uploaded another version for re-organizing the handlers, compare to the version in #35, in this version, handlers under handlers/modules are responsible for building modules, and handlers under handlers/containers are responsible for building containers. While in #35, handlers are organized by dirs of event sources.

Commented on #35.

I've renamed the title to "v2" to make it clear it is not the same PR somehow submitted twice.

Abandon this with #35 merged.

Pull-Request has been closed by qwan

Metadata