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

feat(mojaloop/#3984): parameterize switch id[BREAKING CHANGES] #385

Merged
merged 12 commits into from
Jun 25, 2024

Conversation

oderayi
Copy link
Contributor

@oderayi oderayi commented Jun 24, 2024

No description provided.

@oderayi oderayi changed the title feat(csi-164): parameterize switch id feat(csi-164): parameterize switch id [BREAKING CHANGES] Jun 24, 2024
@oderayi oderayi changed the base branch from main to feat/fx-impl June 24, 2024 15:28
@kalinkrustev kalinkrustev deleted the branch main June 25, 2024 06:37
@kalinkrustev kalinkrustev reopened this Jun 25, 2024
Copy link

sonarcloud bot commented Jun 25, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
31.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@oderayi oderayi changed the base branch from feat/fx-impl to main June 25, 2024 09:27
@oderayi oderayi marked this pull request as ready for review June 25, 2024 09:28
@oderayi oderayi merged commit 9cb880e into main Jun 25, 2024
12 of 13 checks passed
@oderayi oderayi changed the title feat(csi-164): parameterize switch id [BREAKING CHANGES] feat(mojaloop/#3984): parameterize switch id[BREAKING CHANGES] Jun 26, 2024
if (!hubName) {
throw Error('"hubName" is not initialized. Initialize the cache first.')
}
if (!hubNameRegex) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we just calculate hubNameRegex here based on hubName (to avoid making it required)?, e.g.:

const { HeaderValidation } = require('@mojaloop/central-services-shared').Util
...
const hubNameRegex = HeaderValidation.getHubNameRegex(Config.HUB_NAME)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. Would reduce the number of parameters there.

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.

4 participants