feat(aci): associate groups without matching detector to the issue stream detector #103191
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We expect all Groups to have an entry in the DetectorGroup table so we can easily look up the detector for a group. For groups that have types that haven't been moved over to workflow engine, we can associate them with the issue stream detector.
When new Detectors are created and start emitting issues, this will need to be changed via backfill.
We need DetectorGroup entries for Groups because we want to look up the detector that fired for a group in the WorkflowFireHistory API without populating the detector field on WorkflowFireHistory (decoupling detector from WFH) -- see #102918.
This will also be used to figure out which detector an Activity is associated with for activity notifications in workflow engine -- see #103099