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

Plugin, Connector, controllers, dataclasses, tons of refactoring #524

Merged
merged 46 commits into from Jul 13, 2021

Conversation

sp35
Copy link
Member

@sp35 sp35 commented Jul 6, 2021

Description

  • Refactor BaseAnalyzerMixin for reuse
  • Add base class BaseConnectorMixin and Connector
  • Add celery tasks to trigger connectors
  • Fix in ConnectorReport model
  • Add no of connectors called and connectors process time
  • Address issues and refactor
  • Move runtime_configuration field
  • Fix Analyzer Subclasses

Related issues

Fixes #512

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist

  • The pull request is for the branch develop
  • I have added tests in the Tests folder.
  • The tests gave 0 errors.
  • Black gave 0 errors.
  • Flake gave 0 errors.
  • I squashed the commits into a single one. (optional, they will be squashed anyway by the maintainer)

@eshaan7
Copy link
Member

eshaan7 commented Jul 7, 2021

Making changes to this.

@m0mosenpai m0mosenpai self-assigned this Jul 10, 2021
@m0mosenpai m0mosenpai added this to In progress in GSoC '21 - IntelOwl Improvements via automation Jul 10, 2021
@intelowlproject intelowlproject deleted a comment from lgtm-com bot Jul 11, 2021
@intelowlproject intelowlproject deleted a comment from lgtm-com bot Jul 11, 2021
@intelowlproject intelowlproject deleted a comment from lgtm-com bot Jul 11, 2021
intel_owl/tasks.py Outdated Show resolved Hide resolved
remove duplicate args for run_connector
@intelowlproject intelowlproject deleted a comment from lgtm-com bot Jul 13, 2021
@intelowlproject intelowlproject deleted a comment from lgtm-com bot Jul 13, 2021
@intelowlproject intelowlproject deleted a comment from lgtm-com bot Jul 13, 2021
@intelowlproject intelowlproject deleted a comment from lgtm-com bot Jul 13, 2021
@intelowlproject intelowlproject deleted a comment from lgtm-com bot Jul 13, 2021
@intelowlproject intelowlproject deleted a comment from lgtm-com bot Jul 13, 2021
@eshaan7 eshaan7 changed the title Plugin, Connector, controllers, refactoring Plugin, Connector, controllers, dataclasses, tons of refactoring Jul 13, 2021
@eshaan7 eshaan7 marked this pull request as ready for review July 13, 2021 17:49
Copy link
Contributor

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Worth considering though

api_app/connectors_manager/models.py Show resolved Hide resolved
api_app/models.py Show resolved Hide resolved
@eshaan7 eshaan7 merged commit b3fda41 into develop-2 Jul 13, 2021
GSoC '21 - IntelOwl Improvements automation moved this from In progress to Done Jul 13, 2021
@eshaan7 eshaan7 deleted the trigger_connectors branch July 13, 2021 17:50
@lgtm-com
Copy link

lgtm-com bot commented Jul 13, 2021

This pull request introduces 12 alerts and fixes 1 when merging b388e58 into 88c51ad - view on LGTM.com

new alerts:

  • 5 for Potentially uninitialized local variable
  • 3 for Unhashable object hashed
  • 1 for Unused local variable
  • 1 for Unused import
  • 1 for Wrong number of arguments in a call
  • 1 for `__init__` method calls overridden method

fixed alerts:

  • 1 for `__init__` method calls overridden method

@eshaan7 eshaan7 linked an issue Jul 13, 2021 that may be closed by this pull request
@sp35 sp35 moved this from In progress to Done in Connectors Manager/ connectors Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants