Skip to content
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

Enable API Resources APIs for organization level #6002

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ShanChathusanda93
Copy link
Contributor

Proposed changes in this pull request

Follow up actions

@ShanChathusanda93 ShanChathusanda93 force-pushed the org-path-api-res-branch branch 2 times, most recently from 8a510db to 39fa1e2 Compare October 9, 2024 06:39
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 11.47541% with 54 lines in your changes missing coverage. Please review.

Project coverage is 40.15%. Comparing base (ed81688) to head (1dba26c).
Report is 111 commits behind head on master.

Files with missing lines Patch % Lines
...rce/mgt/dao/impl/APIResourceManagementDAOImpl.java 11.32% 43 Missing and 4 partials ⚠️
...nternal/APIResourceManagementServiceComponent.java 0.00% 4 Missing ⚠️
...l/APIResourceManagementServiceComponentHolder.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6002      +/-   ##
============================================
+ Coverage     39.62%   40.15%   +0.53%     
+ Complexity    14299    14161     -138     
============================================
  Files          1733     1734       +1     
  Lines        119948   117033    -2915     
  Branches      19808    19328     -480     
============================================
- Hits          47525    46992     -533     
+ Misses        65115    62818    -2297     
+ Partials       7308     7223      -85     
Flag Coverage Δ
unit 23.92% <11.47%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +1263 to +1264
return filterQueryBuilder.getFilterAttributeValue().get(1).contains("internal") ||
filterQueryBuilder.getFilterAttributeValue().get(1).contains("console");
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we have an existing constant for internal and console?

@@ -445,6 +475,18 @@ public List<Scope> getScopesByTenantId(Integer tenantId, List<ExpressionNode> ex
appendFilterQuery(expressionNodes, filterQueryBuilder, true);
String query = SQLConstants.GET_SCOPES_BY_TENANT_ID + filterQueryBuilder.getFilterQuery() +
SQLConstants.GET_SCOPES_BY_TENANT_ID_TAIL;
try {
if (OrganizationManagementUtil.isOrganization(tenantId) && !isInternalFiltering(filterQueryBuilder)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

According to the logic in isInternalFiltering method, internal_org.. scopes also get considered , is that means internal_org.. scopes can't be searched ?

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.

2 participants