-
Notifications
You must be signed in to change notification settings - Fork 243
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
Conversation
Issue column added in apiEndpoints table
Feature/issues in apis table
only show issue which are non-zero
old Issues text removed
...oard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiCollections.jsx
Show resolved
Hide resolved
...hboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiEndpoints.jsx
Show resolved
Hide resolved
@@ -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,[]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- limit too high
- get only open issues
- 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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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"] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 ?
severity filter added , fetch only open issues and from last 90 days
Check out the changes done @Ark2307. If all seems good, let's proceed with merging it. 🫡 |
…ature/issues_in_apis_table
Feature/issues in apis table
have a look on new changes, @Ark2307 |
No description provided.