redpanda-data / redpanda-data/connect
Bloblang minification / alternative to newlines for separating statements
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 8.8k
- Forks
- 969
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 64
Description
It would be nice to have an alternative character such as the semicolon for separating Bloblang statements.
Bonus: Have a CLI command which minifies Bloblang code (i.e. replaces newlines with semicolons and trims unnecessary whitespace) without altering raw strings (i.e. """ ... """).
Current workaround (it’s hackish and slow):
let mapping = """
data: |
root.foo = "bar"
root.bar = "baz"
""".parse_yaml().data
root = this.bloblang($mapping.replace_all("\\n", "\n"))
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by locating Bloblang parsing and CLI command code, then determine how semicolon-separated statements and minification should interact with raw strings; done means both behaviors work without altering raw-string contents.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, stream-processing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100