Skip to content

docs: add regex_replace filter to declarative_component_schema.yaml#906

Merged
brianjlai merged 2 commits intomainfrom
devin/1770929036-add-regex-replace-filter
Feb 17, 2026
Merged

docs: add regex_replace filter to declarative_component_schema.yaml#906
brianjlai merged 2 commits intomainfrom
devin/1770929036-add-regex-replace-filter

Conversation

@brianjlai
Copy link
Contributor

@brianjlai brianjlai commented Feb 12, 2026

Summary

Adds the regex_replace Jinja filter function to the interpolation.filters section of declarative_component_schema.yaml. This documents the filter that removes all occurrences in a string that match a provided regex pattern, replacing them with a specified replacement string. The entry follows the same structure as the existing regex_search filter.

Review & Testing Checklist for Human

Notes

Summary by CodeRabbit

  • New Features
    • Added an interpolation feature for regex-based string replacement, allowing users to match patterns with regular expressions and replace matched occurrences with a specified string. Examples: replacing "world" with "universe" or replacing delimiters (hyphens/underscores) with spaces.

Co-Authored-By: brian.lai@airbyte.io <brian.j.lai@gmail.com>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link

👋 Greetings, Airbyte Team Member!

Here are some helpful tips and reminders for your convenience.

💡 Show Tips and Tricks

Testing This CDK Version

You can test this version of the CDK using the following:

# Run the CLI from this branch:
uvx 'git+https://github.com/airbytehq/airbyte-python-cdk.git@devin/1770929036-add-regex-replace-filter#egg=airbyte-python-cdk[dev]' --help

# Update a connector to use the CDK from this branch ref:
cd airbyte-integrations/connectors/source-example
poe use-cdk-branch devin/1770929036-add-regex-replace-filter

PR Slash Commands

Airbyte Maintainers can execute the following slash commands on your PR:

  • /autofix - Fixes most formatting and linting issues
  • /poetry-lock - Updates poetry.lock file
  • /test - Runs connector tests with the updated CDK
  • /prerelease - Triggers a prerelease publish with default arguments
  • /poe build - Regenerate git-committed build artifacts, such as the pydantic models which are generated from the manifest JSON schema in YAML.
  • /poe <command> - Runs any poe command in the CDK environment
📚 Show Repo Guidance

Helpful Resources

📝 Edit this welcome message.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 12, 2026

📝 Walkthrough

Walkthrough

Adds a new regex_replace interpolation function to the Declarative Component Schema. The function accepts regex and replacement arguments and returns a string with matched occurrences replaced; two examples demonstrate simple and multi-character pattern replacements.

Changes

Cohort / File(s) Summary
Regex Replace Interpolation
airbyte_cdk/sources/declarative/declarative_component_schema.yaml
Adds regex_replace interpolation function with arguments regex and replacement, return type str, and two usage examples ("hello world" -> "hello universe", "hello-world_foo" -> "hello world foo").

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding documentation for a regex_replace filter to the schema file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch devin/1770929036-add-regex-replace-filter

No actionable comments were generated in the recent review. 🎉


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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@airbyte_cdk/sources/declarative/declarative_component_schema.yaml`:
- Around line 5045-5053: Update the description for the regex_replace operator:
change the current awkward phrasing to a clearer sentence that matches the
implementation docstring by saying something like "Replace all occurrences in
the string that match the provided regex pattern with the specified replacement
string"; locate and update the description field under the regex_replace entry
in declarative_component_schema.yaml (the regex_replace operator block with
arguments regex and replacement and examples) so the wording exactly reflects
this clarified sentence.

Co-Authored-By: brian.lai@airbyte.io <brian.j.lai@gmail.com>
@brianjlai brianjlai requested a review from lleadbet February 12, 2026 20:53
@github-actions
Copy link

PyTest Results (Fast)

3 860 tests  ±0   3 848 ✅ ±0   6m 52s ⏱️ +3s
    1 suites ±0      12 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit b687e29. ± Comparison against base commit 3eb9ce8.

@github-actions
Copy link

PyTest Results (Full)

3 863 tests  ±0   3 851 ✅ ±0   10m 40s ⏱️ -27s
    1 suites ±0      12 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit b687e29. ± Comparison against base commit 3eb9ce8.

@brianjlai brianjlai merged commit 2c7af15 into main Feb 17, 2026
29 checks passed
@brianjlai brianjlai deleted the devin/1770929036-add-regex-replace-filter branch February 17, 2026 23:48
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