-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a clear class hierarchy #2042
Conversation
84edadc
to
e552a68
Compare
e552a68
to
329adcf
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2042 +/- ##
===========================================
+ Coverage 76.03% 76.05% +0.02%
===========================================
Files 430 432 +2
Lines 23111 23135 +24
Branches 3092 3092
===========================================
+ Hits 17572 17595 +23
- Misses 4832 4833 +1
Partials 707 707
|
4ead726
to
fc0200f
Compare
fc0200f
to
31d40e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd appreciate changelog entries for the changes (new file intelmq/lib/datatypes.py
, new mixin, new class ExpertBot
, parent classes for all bots changed, ...). Otherwise: 🎉
31d40e2
to
ebe6fc1
Compare
Could you please also update the dev guide (sections Template & Mixins are affected as I see with a quick search) |
ebe6fc1
to
d7a799d
Compare
This commit replaces the SQLBot with an SQLMixin, which lets us use multiple inheritance with the bots.
This commit introduces an ExpertBot class that all expert bots should inherit from. To have a central place for storing the four types of bots there is now a datatypes module that contains an enum listing the four bot types. It can and should be used for more types that are part of the IntelMQ codebase. Also some output and parser bots were updated to depend on the correct bot type.
d7a799d
to
fe6a02c
Compare
No description provided.