Uh oh!
There was an error while loading. Please reload this page.
Collect go vulnerabilities from github api - #578
Conversation
Signed-off-by: 司芳源 <sify1221@gmail.com>
Signed-off-by: 司芳源 <sify1221@gmail.com>
Signed-off-by: 司芳源 <sify1221@gmail.com>
fetching release_date for each version is very slow, commenting out those lines will make it a lot faster |
pombredanne
commented
Nov 23, 2021
@sify21 Thank you ++ for this! Let me review this in details. |
sbs2001
left a comment
There was a problem hiding this comment.
Thanks for the PR @sify21 .
Most of the stuff looks very good. Thanks for updating the type hints btw.
As an improvement in clarity and readability, maybe restructure the GoproxyVersionAPI such that:
The fetch method only does one thing, it should only fetch and update the cache. It shouldn't
- Do low level stuff on modifying the obtained
version_info. - Construct the api url.
Maybe create separte functions/methods for above two.
Also some unittests would be helpful.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: 司芳源 <sify1221@gmail.com>
sbs2001
left a comment
There was a problem hiding this comment.
Thanks. This would be good to merge after
- Adding some comments on as suggested inline. Without prior knowledge it's hard to understand the intent of the code.
- Add some test cases or just examples in a doc string
trim_url_pathandescape_pathmethods.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: 司芳源 <sify1221@gmail.com>
pombredanne
left a comment
There was a problem hiding this comment.
Thanks!
Do you think you could add a few unit tests before we merge?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Philippe Ombredanne <pombredanne@gmail.com>
Signed-off-by: 司芳源 <sify1221@gmail.com>
Signed-off-by: 司芳源 <sify1221@gmail.com>
sify21
commented
Feb 7, 2022
Hi @pombredanne, I added some tests. I don't know how to resolve conflicts on github, should I pull the latest changes and resolve the conflicts on my fork? |
pombredanne
commented
Feb 7, 2022
yes, you need to resolve these git conflicts locally, eventually rebasing and amending as needed and then force push to your branch once this is done |
sify21
commented
Feb 7, 2022
@pombredanne merged |
pombredanne
commented
Feb 7, 2022
Thanks! There is a merge commit that's making the DCO bot unhappy... I will ignore this |
pombredanne
left a comment
There was a problem hiding this comment.
Thank you for the update. Do you mind to run black to reformat your code?make black should be enough
Signed-off-by: 司芳源 <sify1221@gmail.com>
sify21
commented
Feb 8, 2022
@pombredanne reformatted |
pombredanne
left a comment
There was a problem hiding this comment.
@sify21 I have added a few extra comments for your consideration.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: 司芳源 <sify1221@gmail.com>
Signed-off-by: 司芳源 <sify1221@gmail.com>
Signed-off-by: 司芳源 <sify1221@gmail.com>
Signed-off-by: 司芳源 <sify1221@gmail.com>
Signed-off-by: 司芳源 <sify1221@gmail.com>
Signed-off-by: 司芳源 <sify1221@gmail.com>
Hritik14
commented
Feb 13, 2022
@sify21 As the development in this branch is going on and we wanted to move ahead with #476, rebasing/merging this with/from main will likely cause merge conflicts. Please accept the incoming changes for the import statements. |
Signed-off-by: 司芳源 <sify1221@gmail.com>
sify21
commented
Feb 14, 2022
@Hritik14 merged |
pombredanne
left a comment
There was a problem hiding this comment.
isort fails... I am running isort and merging now!
Thank you ++
try to fix#466