Skip to content

Add flow extensions create/listing/delete support.#10349

Draft
KD23243 wants to merge 1 commit into
wso2:masterfrom
KD23243:flowExtensionsEffort2
Draft

Add flow extensions create/listing/delete support.#10349
KD23243 wants to merge 1 commit into
wso2:masterfrom
KD23243:flowExtensionsEffort2

Conversation

@KD23243

@KD23243 KD23243 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Purpose

Related Issues

  • N/A

Related PRs

  • N/A

Checklist

  • e2e cypress tests locally verified. (for internal contributers)
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Relevant backend changes deployed and verified
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

Developer Checklist (Mandatory)

  • Complete the Developer Checklist in the related product-is issue to track any behavioral change or migration impact.

@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 21eadb63-335b-4cc3-a2c5-4faa2669a1a7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • 🛠️ create changeset

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.79%. Comparing base (9aa6110) to head (3362af4).
⚠️ Report is 53 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #10349       +/-   ##
===========================================
+ Coverage   55.70%   98.79%   +43.08%     
===========================================
  Files          42      165      +123     
  Lines        1016    51775    +50759     
  Branches      254      165       -89     
===========================================
+ Hits          566    51149    +50583     
- Misses        450      626      +176     
Flag Coverage Δ
@wso2is/core 58.95% <ø> (+3.24%) ⬆️
@wso2is/i18n 100.00% <100.00%> (?)

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

Files with missing lines Coverage Δ
...n/src/translations/en-US/portals/flow-extension.ts 100.00% <100.00%> (ø)

... and 159 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread features/admin.connections.v1/models/endpoints.ts Outdated
@KD23243 KD23243 force-pushed the flowExtensionsEffort2 branch from 83c6b59 to d3cd84d Compare June 3, 2026 03:43
@KD23243 KD23243 changed the title Flow extensions effort2 Add flow extensions create/listing/delete support. Jun 3, 2026
@KD23243 KD23243 force-pushed the flowExtensionsEffort2 branch from d3cd84d to 3362af4 Compare June 3, 2026 03:49
iconUrl?: string;
endpoint?: Partial<FlowExtensionEndpointInterface>;
accessConfig?: AccessConfigInterface;
flowTypeOverrides?: Record<string, AccessConfigInterface>;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Remove these

iconUrl?: string;
endpoint: FlowExtensionEndpointResponseInterface;
accessConfig?: AccessConfigInterface;
flowTypeOverrides?: Record<string, AccessConfigInterface>;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Remove

<svg xmlns="http://www.w3.org/2000/svg" viewBox="15 5 180 190" width="100%" height="100%">
<rect width="100%" height="100%" fill="transparent" />

<svg class="icon" width="16" height="16" viewBox="15 5 180 190" fill="none" xmlns="http://www.w3.org/2000/svg">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's add the license header back

@@ -0,0 +1,25 @@
<svg class="icon" width="16" height="16" viewBox="15 5 180 190" fill="none" xmlns="http://www.w3.org/2000/svg">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's add the license header

* Expose/modify entry in access config.
* Same structure is used for both expose and modify entries: a path plus an optional encryption flag.
*/
export interface ContextPathInterface {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it seems this interface is no longer used and can be removed. Please verify.

/**
* Access config for Flow Extension actions.
*/
export interface AccessConfigInterface {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

interface name feels too generic. Shall we rename it to something like FlowExtensionAccessConfigInterface?

Also, should this be defined inside actions.v1?

Comment on lines +25 to +28
import {
FlowExtensionCreateRequestInterface,
FlowExtensionResponseInterface
} from "../models/flow-extension";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shall we keep this in a single line for compactness?

Comment on lines +37 to +39
>(
shouldFetch: boolean = true
): RequestResultInterface<Data, Error> => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shall we improve formatting here?

@@ -0,0 +1,25 @@
<svg class="icon" width="16" height="16" viewBox="15 5 180 190" fill="none" xmlns="http://www.w3.org/2000/svg">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's add the license header

Comment on lines +991 to +992
GENERAL_SETTINGS = "General Settings",
ENDPOINT_CONFIG = "Endpoint Configuration"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is using english literals intentional here? if those are user facing text, we should i18n those.

@@ -0,0 +1,15 @@
{
"category": "DEFAULT",
"description": "Extend authentication flows with external services.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

using the term "authentication" is not quite accurate, is it?

"id": "flow-extension",
"docLink": "",
"image": "assets/images/logos/flow-extension.svg",
"name": "Flow Extension",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shouldn't we use i18n for these user facing string literals?

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