Page MenuHomeDevCentral

ItemGroupMapping generic class
ClosedPublic

Authored by dereckson on Aug 22 2016, 20:28.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 20:26
Unknown Object (File)
Sun, Nov 24, 20:26
Unknown Object (File)
Sun, Nov 24, 20:16
Unknown Object (File)
Sun, Nov 24, 20:07
Unknown Object (File)
Sat, Nov 23, 03:39
Unknown Object (File)
Fri, Nov 22, 23:11
Unknown Object (File)
Fri, Nov 22, 17:15
Unknown Object (File)
Tue, Nov 19, 13:40
Subscribers

Details

Summary

We're mapping Jenkins jobs / GitHub repositories/ Phabricator projects
to notifications group.

Instead to use a specific class to deserialize the service config file,
it's more convenient to introduce an ItemGroupMapping generic class.

To add new services, which follows the same pattern than Jenkins
or GitHub, ie match names of something and groups and allow *,
we can use the ItemGroupMapping class directly.

When there is a need to extend the format to allow more mapping
properties, we can extend the class, like in PhabricatorGroupMapping.

Test Plan
  • Fire GitHub / Docker / Phabricator notifications
  • Rebase Jenkins D626 against this code to use ItemGroupMapping too

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from to ItemGroupMapping generic class.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.
This revision is now accepted and ready to land.Aug 22 2016, 20:55
This revision was automatically updated to reflect the committed changes.