[Analyzer] Netlas.io#1834
Conversation
|
hey I think the method have changed since the last time. I am facing a problem when I try to create the migration file. command used : error: |
|
Uhm, let me check it, I probably fucked up something during the Ingestor change to the script |
|
Yeah, typo, solve with cc54e77. |
|
thank you its working fine now! |
|
Perfect! That and the new migration for the |
Codecov Report
@@ Coverage Diff @@
## develop #1834 +/- ##
===========================================
+ Coverage 66.75% 76.16% +9.41%
===========================================
Files 95 381 +286
Lines 3706 12471 +8765
Branches 519 1314 +795
===========================================
+ Hits 2474 9499 +7025
- Misses 941 2430 +1489
- Partials 291 542 +251
... and 193 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
I added the mock response. But when I am trying to commit the changes the Should I force commit or something? |
sorry but what do you mean by new migration? I tried creating new migration but it says one already exists. there are few more params we can add. should I add them ? |
|
Yeah, I should have added the thing about the permission. That file is the migration file that it is missing in the PR: you should commit that too. And yes, it is correct the script it is not creating another migration because you already have made one for that About the other params, as you wish. If you think that the user experience will benefit for having them, yes. |
f27b18e to
6043873
Compare
They aren't much specified in the API docs. I was not able to test them. |
0ssigeno
left a comment
There was a problem hiding this comment.
Two things:
1 - The analyzer retrieve from the api response this structure result_data = result["items"][0]["data"]. In the mockup that you added, this dictionary structure is missing. You should change the mock of the raw request (meaning that you should have the at leastitems and data keys) or you should change the parsing of the request because right now they are not compatible.
2 - Unfortunately, you have pushed your own key because it was present in the database. You can change the value in the migration from your own key to None and revoke the key inside Netlas.
The second step was a miscalculation on my side that allowed the dump of your private key instead of replacing them with a fake value. I will update the script to fix this behaviour
|
I was about to ask about API key being visible in the migration file. I changed it to null like others |
|
The backend tests are failing. Is it due to my code? |
|
Something wrong with the migration autogenerated, yey. |
Signed-off-by: 0ssigeno <[email protected]>
Signed-off-by: 0ssigeno <[email protected]>
|
Thanks @0ssigeno I thought the |
|
LGTM, waiting let's see if @mlodic has some suggestions, otherwise I'm going to merge it |
|
The PR is good, we are just missing some points in the checklist regarding the documentation.
|
Signed-off-by: 0ssigeno <[email protected]>
Signed-off-by: 0ssigeno <[email protected]>
Signed-off-by: 0ssigeno <[email protected]>
Signed-off-by: 0ssigeno <[email protected]>
|
okay, I think I messed up. I pulled and rebase these changes and the develop branch as well. |
|
No big deal, i'm going to squash all together anyway. |
|
The review is for the docs part |

closes #1258
Description
Add new analyzer netlas that scans IP and domains
Type of change
Checklist
develop_monkeypatch()was used in its class to apply the necessary decorators.test_files.zipand you added the default tests for that mimetype in test_classes.py.FREE_TO_USE_ANALYZERSplaybook inplaybook_config.json.Black,Flake,Isort) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.testsfolder). All the tests (new and old ones) gave 0 errors.Important Rules