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

Apim 8042 native api publish auth and non auth plans #10212

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jourdiw
Copy link
Contributor

@jourdiw jourdiw commented Dec 20, 2024

Issue

https://gravitee.atlassian.net/browse/APIM-8042

Description

  • Backend: Throw error when publishing plan with conflicting authentication for a Native API
  • Console: When publishing conflicting plan for a Native Kafka API, the published plans are closed automatically
Screen.Recording.2024-12-20.at.18.39.22.mov

Next Steps:

  • Handle Creation workflow for Native APIs

Additional context


📚  View the storybook of this branch here

@jourdiw jourdiw force-pushed the apim-8042-native-api-publish-auth-and-non-auth-plans branch from f82e18e to 69a6170 Compare December 20, 2024 18:01
@jourdiw jourdiw marked this pull request as ready for review December 20, 2024 18:01
@jourdiw jourdiw requested a review from a team as a code owner December 20, 2024 18:01

private nativeKafkaDialog$(plan: Plan, plansToClose: Plan[]): Observable<Plan> {
const plansWithAuthentication = `plan${plansToClose.length > 1 ? 's' : ''} with authentication`;
const content = `Kafka APIs cannot have both plans with and without authentication published. Are you sure you want to publish the plan ${plan.name}? <br /><br />Your published ${plan.security.type === 'KEY_LESS' ? plansWithAuthentication : 'Keyless plan'} will be closed automatically.`;
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 we need to check the behaviour with subscription. And indicate here that closing a plan with security will close the associated subscriptions. Like the message that closes a plan with security

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