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

Modify implementation to allow an API and a Common policies with same and version #12660

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comment in the code to be readable
  • Loading branch information
RusJaI committed Jan 3, 2025
commit e2bbd1c8f55b4e30d425fbf42cd122e7aff45055
Original file line number Diff line number Diff line change
Expand Up @@ -7149,7 +7149,10 @@ public String importOperationPolicyOfGivenType(OperationPolicyData importedPolic
OperationPolicyData existingOperationPolicy;

String policyId = null;
if (policyType == null){
if (policyType == null) {
/*To handle scenarios where api is exported from a previous U2 version. API and Common policies with same name
and same version is not supported there
*/
importOperationPolicy(importedPolicyData, organization);
} else if (policyType.equalsIgnoreCase(ImportExportConstants.POLICY_TYPE_COMMON)) {
existingOperationPolicy = getCommonOperationPolicyByPolicyName(importedSpec.getName(),
Expand Down