Skip to content

feat: add async mode config and env vars#224

Open
pranishnepal wants to merge 1 commit into
masterfrom
WCN-743
Open

feat: add async mode config and env vars#224
pranishnepal wants to merge 1 commit into
masterfrom
WCN-743

Conversation

@pranishnepal

Copy link
Copy Markdown
Contributor

What

Introduces IBM OSO configuration support to Master BitGo Express. ADVANCED_WALLET_MANAGER_URL is no longer required when OSO_MODE=true.

Refactors the tests to use a shared start up config, as opposed to duplication all over the test files

Ticket: WCN-743

@linear-code

linear-code Bot commented Jun 8, 2026

Copy link
Copy Markdown

WCN-743

@pranishnepal pranishnepal marked this pull request as ready for review June 8, 2026 19:25
@pranishnepal pranishnepal requested review from a team as code owners June 8, 2026 19:25

@pranavjain97 pranavjain97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's call it async mode, since OSO woudn't mean much for akm readers and specific to IBM. Similarly lets remove all 'oso' / bridge instances in the naming

@pranishnepal pranishnepal force-pushed the WCN-743 branch 2 times, most recently from 1c18227 to 7e5de35 Compare June 8, 2026 19:52
@pranishnepal pranishnepal requested a review from pranavjain97 June 8, 2026 19:58

@pranavjain97 pranavjain97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

still using AWM_BRIDGE_URL

Comment thread src/__tests__/api/master/testUtils.ts Outdated

export const DEFAULT_ASYNC_MODE_CONFIG: AsyncModeConfig = {
enabled: false,
awmBridgeUrl: '',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
awmBridgeUrl: '',
awmAsyncUrl: '',

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.

whoops, missed that. Fixed now

@danielpeng1 danielpeng1 changed the title feat: add OSO mode config and env vars feat: add async mode config and env vars Jun 8, 2026
Introduces ASYNC_MODE configuration support to Master BitGo Express.
`ADVANCED_WALLET_MANAGER_URL` isn't required when `ASYNC_MODE=true` now.
Instead, `AWM_BRIDGE_URL` is required when ASYNC mode is enabled.

Ticket: WCN-743

@danielpeng1 danielpeng1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just nits to be consistent.

Change AWM_BRIDGE_URL → AWM_ASYNC_URL in the commit message.

}
});

it('should use default numeric values when OSO numeric env vars are not set', () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it('should use default numeric values when async mode numeric env vars are not set', () => {

it('should load asyncModeConfig from env vars when ASYNC_MODE is true', () => {
process.env.TLS_MODE = 'disabled';
process.env.ASYNC_MODE = 'true';
process.env.AWM_ASYNC_URL = 'http://oso-bridge:8080';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can change test fixture url http://oso-bridge:8080 -> http://awm-async:8080 or similar for all references in this file just to remove all oso/bridge naming instances for good

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.

3 participants