sdedic commented on code in PR #7622:
URL: https://github.com/apache/netbeans/pull/7622#discussion_r1710064491
##########
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/adm/ProjectVulnerability.java:
##########
@@ -162,12 +169,19 @@ public CompletableFuture<KnowledgeBaseItem>
findKnowledgeBase(String knowledgeBa
.knowledgeBaseId(knowledgeBaseId).
build();
+ OCISessionInitiator session =
OCIManager.getDefault().getActiveProfile();
+ String tenancyId = session.getTenancy().isPresent() ?
Review Comment:
A weird idea: Why not pass `OCISessionInitiator` to individual OCIItem &
subclasses ? This logic (tenancy not present -> tenancyid/null + regioncode)
could be done at one place (OCIItem). OCIItem can still have an alternative
'raw' constructor with IDs - this would be useful for TenancyItem.
Could it work?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists