You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I skimmed the code and found a fetch_response utility function in vulnerabilities/utils.py, more fetch_* functions/methods purpose-built for their respective importers, and fetch methods various VersionAPI subclasses.
Before I try to fix this issue, I would like to know if this is what you're talking about as well? Perhaps, you know of some more?
My plan to fix this:
Understand how each importer/VersionAPI fetches data.
Separate what's general to every importer/VersionAPI from what's special to each.
Design a base Fetcher class (analogous to the Importer class).
Specialize (through inheritance) the Fetcher class for an importer/VersionAPI as necessary.
I'm contributing for the first time and will appreciate all the advice and constructive criticism I get get. :)
The network calls are scattered in many places and this is problem.
The text was updated successfully, but these errors were encountered: