Skip to content
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

Merged
3 commits merged into from
Aug 24, 2021
Merged

Conversation

ghost
Copy link

@ghost ghost commented Aug 16, 2021

No description provided.

@ghost ghost force-pushed the schacht/implement_class_hierarchy branch 3 times, most recently from 84edadc to e552a68 Compare August 16, 2021 09:38
@ghost ghost added this to the 3.1.0 milestone Aug 16, 2021
@ghost ghost force-pushed the schacht/implement_class_hierarchy branch from e552a68 to 329adcf Compare August 17, 2021 07:08
@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2021

Codecov Report

Merging #2042 (fe6a02c) into develop (a662c84) will increase coverage by 0.02%.
The diff coverage is 88.06%.

@@             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              
Impacted Files Coverage Δ
intelmq/lib/mixins/sql.py 54.83% <54.83%> (ø)
intelmq/lib/datatypes.py 88.88% <88.88%> (ø)
intelmq/bots/experts/abusix/expert.py 32.14% <100.00%> (ø)
intelmq/bots/experts/aggregate/expert.py 91.07% <100.00%> (ø)
intelmq/bots/experts/asn_lookup/expert.py 35.83% <100.00%> (ø)
intelmq/bots/experts/csv_converter/expert.py 100.00% <100.00%> (ø)
intelmq/bots/experts/cymru_whois/expert.py 38.46% <100.00%> (ø)
intelmq/bots/experts/deduplicator/expert.py 100.00% <100.00%> (ø)
intelmq/bots/experts/do_portal/expert.py 28.57% <100.00%> (ø)
intelmq/bots/experts/domain_suffix/expert.py 43.18% <100.00%> (ø)
... and 75 more

@ghost ghost force-pushed the schacht/implement_class_hierarchy branch 13 times, most recently from 4ead726 to fc0200f Compare August 18, 2021 07:48
@ghost ghost marked this pull request as ready for review August 18, 2021 08:59
@ghost ghost self-requested a review August 18, 2021 08:59
@ghost ghost force-pushed the schacht/implement_class_hierarchy branch from fc0200f to 31d40e2 Compare August 18, 2021 09:41
Copy link

@ghost ghost left a 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: 🎉

@ghost ghost force-pushed the schacht/implement_class_hierarchy branch from 31d40e2 to ebe6fc1 Compare August 19, 2021 07:55
@ghost
Copy link

ghost commented Aug 19, 2021

Could you please also update the dev guide (sections Template & Mixins are affected as I see with a quick search)

@ghost ghost force-pushed the schacht/implement_class_hierarchy branch from ebe6fc1 to d7a799d Compare August 23, 2021 08:24
Birger Schacht added 3 commits August 24, 2021 08:18
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.
@ghost ghost force-pushed the schacht/implement_class_hierarchy branch from d7a799d to fe6a02c Compare August 24, 2021 06:19
@ghost ghost merged commit 3bbf120 into develop Aug 24, 2021
@ghost ghost deleted the schacht/implement_class_hierarchy branch August 24, 2021 07:00
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant