knative / knative/eventing

Event Lineage: Add pattern matching code

Open
#7,883 0 comments 0 reactions 0 assignees View on GitHub
kind/feature-request priority/important-longterm triage/accepted
Dominant language
Go
Stars
1.6k
Forks
631
Avg merge
2d 1h
Merged PRs (30d)
6

Description

**Problem**
For many of the transform functions in event lineage, we will need to do pattern matching. This is because the values of various attributes will be in the form of `abc{variable1}def{variable2}`. To make sure we are doing comparisons correctly, we should have some form of library defined that can check (at a minimum):
1. Exact equality
2. Prefix matching
3. Suffix matching

**[Persona:](https://github.com/knative/eventing/blob/main/docs/personas.md)**
Which persona is this feature for?

**Exit Criteria**
A measurable (binary) test that would indicate that the problem has been resolved.

**Time Estimate (optional):**
How many developer-days do you think this may take to resolve?

**Additional context (optional)**
How this works/is defined will depend on #7729

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the event lineage transform functions and the related design in issue #7729. Define the matching behavior for exact equality, prefix matching, suffix matching, and values containing variables. Done means binary tests demonstrate that each required comparison behaves correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.