Skip to content

Conversation

@BenElferink
Copy link
Contributor

@BenElferink BenElferink commented May 18, 2025

This PR adds support for Data Streams / Grouping in the UI.
This feature is currently disabled - until we have the Odigos Routing Connector ready.

Adding support for: odigos-io/ui-kit#79

---------

Signed-off-by: Ben Elferink <ben.elferink@icloud.com>
@BenElferink BenElferink added enhancement New feature or request frontend labels May 18, 2025
@BenElferink BenElferink requested a review from Copilot May 21, 2025 11:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces end-to-end support for Data Streams (grouping) across the UI, backend services, and GraphQL API.

  • Adds a new “Choose Data Stream” UI page and integrates stream context into existing setup steps
  • Implements service-layer logic for adding/removing workloads and destinations from named streams
  • Extends GraphQL schema, models, and resolvers to expose DataStream operations

Reviewed Changes

Copilot reviewed 52 out of 52 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
frontend/webapp/app/(setup)/choose-stream/page.tsx New page for selecting/creating data streams
frontend/webapp/app/(setup)/choose-sources/page.tsx Updated Source step to use stream-aware form
frontend/webapp/app/(setup)/choose-destination/page.tsx Updated Destination step to handle stream routing
frontend/webapp/app/(overview)/layout.tsx Wired DataStream CRUD into the overview header actions menu
frontend/services/data_stream.go New service logic for grouping sources/destinations by stream
frontend/services/sources.go Updated source CRUD to include stream labels
frontend/services/destinations.go Updated destination mapping to include DataStreamNames
frontend/graph/schema.graphqls Added DataStream types, inputs, mutations, and Query field
frontend/graph/schema.resolvers.go Implemented DataStreams Query, Update/Delete resolvers
frontend/graph/model/models_gen.go Generated GraphQL model for DataStream
frontend/graph/conversions.go Extended converter to include dataStreamNames on K8sActualSource
collector/processors/odigosurltemplateprocessor/README.md Minor doc formatting fixes
Comments suppressed due to low confidence (3)

frontend/graph/schema.graphqls:675

  • [nitpick] The id parameter here represents the existing stream name (oldStreamName). Consider renaming it (e.g. oldStreamName or currentStreamName) to avoid confusion with other IDs.
updateDataStream(id: ID!, dataStream: DataStreamInput!): DataStream!

frontend/services/data_stream.go:1

  • This file introduces substantial new data-stream logic (DeleteDestinationOrRemoveStreamName, UpdateSourcesCurrentStreamName, etc.) but lacks accompanying unit tests. Consider adding tests to cover key code paths.
package services

collector/processors/odigosurltemplateprocessor/README.md:128

  • The regex example is wrapped with extra spaces and backticks, and the description text mistakenly shows SA* instead of SA_. Please correct the code fence and placeholder text to accurately reflect the intended pattern.
+- only digits or special characters - `` ^[\d_\-!@#$%^&*()=+{}\[\]:;"'<>,.?/\\|`~]+$ `` -> `{id}` (`1234`, `123_456`, `0`)

@BenElferink BenElferink marked this pull request as ready for review May 26, 2025 10:57
@notion-workspace
Copy link

DataStream: edit ds

@notion-workspace
Copy link

DataStream: delete ds

@notion-workspace
Copy link

@notion-workspace
Copy link

Action and Rules

@notion-workspace
Copy link

@notion-workspace
Copy link

@notion-workspace
Copy link

UI: missing ns icon

@notion-workspace
Copy link

@notion-workspace
Copy link

@notion-workspace
Copy link

@notion-workspace
Copy link

Grouping

@notion-workspace
Copy link

@notion-workspace
Copy link

@notion-workspace
Copy link

@notion-workspace
Copy link

@notion-workspace
Copy link

@notion-workspace
Copy link

@notion-workspace
Copy link

@notion-workspace
Copy link

Refactor onboarding

@notion-workspace
Copy link

Copy link
Collaborator

Choose a reason for hiding this comment

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

don't think this file should have any diff in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure how that got there, removed

@BenElferink BenElferink requested a review from RonFed May 26, 2025 13:02
This PR bumps the UI-Kit with several bug fixes.
In addition, this PR also fixes:
- already instrumented sources not select in the list
- sources get clean when editing the ds name
@BenElferink BenElferink merged commit bee8b65 into main May 28, 2025
55 checks passed
@BenElferink BenElferink deleted the feat/data-streams branch May 28, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants