8000 Feature/issues in apis table by notlazykid · Pull Request #2352 · akto-api-security/akto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature/issues in apis table #2352

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

Merged
merged 21 commits into from
Apr 18, 2025
Merged

Feature/issues in apis table #2352

merged 21 commits into from
Apr 18, 2025

Conversation

notlazykid
Copy link
Contributor

No description provided.

@notlazykid notlazykid requested a review from Ark2307 April 14, 2025 12:58
@@ -234,13 +241,15 @@ function ApiEndpoints(props) {
api.fetchApisFromStis(apiCollectionId),
api.fetchApiInfosForCollection(apiCollectionId),
api.fetchAPIsFromSourceCode(apiCollectionId),
api.loadSensitiveParameters(apiCollectionId)
api.loadSensitiveParameters(apiCollectionId),
issuesApi.fetchIssues(0,20000, [], [apiCollectionId], [], [], "severity", -1, 0, 0, true,[])
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. limit too high
  2. get only open issues
  3. add legit ts values {max 3-4 months data i guess


let data = {}
let allEndpoints = func.mergeApiInfoAndApiCollection(apiEndpointsInCollection, apiInfoListInCollection, collectionsMap)
let allEndpoints = func.mergeApiInfoAndApiCollection(apiEndpointsInCollection, apiInfoListInCollection, collectionsMap,apiInfoSeverityMap)
Copy link
Contributor

Choose a reason for hiding this comment

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

function called in 2 files, handle in both cases

Copy link
Contributor

Choose a reason for hiding this comment

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

i think this line ...(apiInfoSeverityMap?.hasOwnProperty(key) ? { severityObj: apiInfoSeverityMap[key] } : {}) will handle it properly

if(!allIssues) return {}
let apiInfoSeverityMap = {}
allIssues.forEach(x => {
let key = x["id"]["apiInfoKey"]["apiCollectionId"] + "-" + x["id"]["apiInfoKey"]["url"] + "-" + x["id"]["apiInfoKey"]["method"]
Copy link
Contributor

Choose a reason for hiding this comment

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

use object.values.join("-") kind of thing

Copy link
Contributor
@amitpanwar789 amitpanwar789 Apr 17, 2025

Choose a reason for hiding this comment

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

in this the ordering wihich we get from apiInfo( apiCollectionId, method,url ) key is different so can't use object.values.join directly, or we need to change the key ordering in other places also ?

@notlazykid notlazykid requested a review from Ark2307 April 15, 2025 14:58
@notlazykid
Copy link
Contributor Author

Check out the changes done @Ark2307. If all seems good, let's proceed with merging it. 🫡

@amitpanwar789
Copy link
Contributor

have a look on new changes, @Ark2307

@Ark2307 Ark2307 merged commit 6c9c01a into master Apr 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0