Adds a base class for decision subject. Each subclass has subject type
and item/identifier property. Type is static for the specialized classes
and dynamically set on instantiation of the generic subject
(GenericSubject).
This makes the code more modular and allows to easily add and specialize
subject types and, eventually, disable or remove specializations.
Refactor subject type and item usage
Adds a base class for decision subject. Each subclass has subject type
and item/identifier property. Type is static for the specialized classes
and dynamically set on instantiation of the generic subject
(GenericSubject).
This makes the code more modular and allows to easily add and specialize
subject types and, eventually, disable or remove specializations.
Fixes "koji-build" in tests to "koji_build".
Signed-off-by: Lukas Holecek hluk@email.cz