Skip to content

fix(slack): classify malformed mapping strings as configuration errors - #5831

Draft
rudder-devbox[bot] wants to merge 1 commit into
developfrom
harness/INT-7764-fix-slack-classify-malformed-ma-48a5a3ae
Draft

rudder-devbox[bot] wants to merge 1 commit into
developfrom
harness/INT-7764-fix-slack-classify-malformed-ma-48a5a3ae

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

Validate Slack event-template and channel-mapping string fields before trimming them. Malformed config now produces a field-specific, per-event 400 ConfigurationError rather than a 500 TypeError. Add focused unit and component regressions.

What is the related Linear task?

Resolves INT-7764

Please explain the objectives of your changes below

Prevent malformed stored Slack configuration from being classified as a transient transformation failure.

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

Present non-string mapping fields now fail as configuration errors. Valid strings, absent optional fields, and blank-string fallbacks retain their behavior.

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A; validation is local to Slack.

Any technical or performance related pointers to consider with the change?

Regenerated and byte-checked the complete secret-path map; no artifact change. Modern webhook URL validation and unrelated Slack settings are outside scope.

Validation

  • npm test -- --testPathPattern="slack" --no-coverage --runInBand — passed, 39 tests.
  • npm run test:ts -- component --destination=slack --runInBand — passed, 12 tests.
  • npx tsc --noEmit -p tsconfig.test.json — passed.
  • Full secret-path generation and npm run check:secret-paths — passed; artifact unchanged.
  • npm run lint:fix, changed-file Prettier check, and git diff --check — passed. npm run lint stopped during its full-tree format pass; its output was truncated, so that combined command is not confirmed passing.
  • Simplify pass: shortened unit-case construction and clarified fixture IDs; retained common.ts variants per fixture conventions.
  • Local integration verification: skipped; transformer source is sha-pinned and cannot be source-run in the local stack.

⚠️ Known Issues

  • npm run lint stopped during its full-tree format pass and is not confirmed passing. The focused lint fix, changed-file Prettier check, and git diff --check passed.

Developer checklist

  • My code follows the style guidelines of this project
  • No breaking changes are being introduced.
  • All related docs linked with the PR?
  • All changes manually tested?
  • Any documentation changes needed with this change? No.
  • Is the PR limited to 10 file changes?
  • Is the PR limited to one linear task?
  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?
  • Verified that there are no credentials or confidential data exposed with the changes.

@rudder-devbox

rudder-devbox Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from task INT-7764.

Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. 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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 625a453b-8cf3-4e87-892e-4000c6aac579

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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