Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipeline-manager: use names instead of IDs in API endpoints #1214

Merged
merged 9 commits into from
Jan 16, 2024

Conversation

lalithsuresh
Copy link
Collaborator

@lalithsuresh lalithsuresh commented Dec 30, 2023

This PR migrates the Programs, Connectors and Pipelines API endpoints to use names instead of IDs in their URLs (e.g., GET /v0/pipelines/foo).

This obviously breaks the UI, so we'll need @Karakatiza666's help to finalize. I will need to do another pass on the demos as well before this is merged.

Once this is in, I'll move towards improving our API documentation.

Signed-off-by: Lalith Suresh lalith@feldera.com

Is this a user-visible change (yes/no): yes

Copy link
Contributor

@snkas snkas left a comment

Choose a reason for hiding this comment

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

Looks good! Added some minor comments.
In addition: I'll also make the edits for the service endpoints after this PR is merged.

crates/pipeline_manager/src/api/connector.rs Show resolved Hide resolved
crates/pipeline_manager/src/api/examples.rs Show resolved Hide resolved
crates/pipeline_manager/src/db/connector.rs Outdated Show resolved Hide resolved
crates/pipeline_manager/src/db/error.rs Outdated Show resolved Hide resolved
@lalithsuresh lalithsuresh marked this pull request as ready for review January 3, 2024 20:02
@lalithsuresh lalithsuresh added this to the Jan 23, 2024 milestone Jan 9, 2024
@Karakatiza666 Karakatiza666 mentioned this pull request Jan 13, 2024
… of IDs

Signed-off-by: Lalith Suresh <lalith@feldera.com>
@lalithsuresh lalithsuresh force-pushed the names-in-urls branch 2 times, most recently from a325d42 to 3c8c2f2 Compare January 16, 2024 21:11
Copy link

github-actions bot commented Jan 16, 2024

✅ Meticulous spotted zero visual differences across 7 screens tested: view results.

Last updated for commit b43eeeb. This comment will update as new commits are pushed.

…d of IDs

Signed-off-by: Lalith Suresh <lalith@feldera.com>
… in URLs

Signed-off-by: Lalith Suresh <lalith@feldera.com>
…in URLs

Signed-off-by: Lalith Suresh <lalith@feldera.com>
Signed-off-by: Lalith Suresh <lalith@feldera.com>
Signed-off-by: Lalith Suresh <lalith@feldera.com>
Signed-off-by: Lalith Suresh <lalith@feldera.com>
Signed-off-by: Lalith Suresh <lalith@feldera.com>
* Refactor UI to use API object names instead of IDs
* Refactor Program Editor page to support new API
* Refactor Pipeline Builderand Connector dialogs to suport the new AI
* Fix updating pipeline name bugged out, fi renaming detached conecors
* Code cleanup
* Improv state management in SQL Editor page
* Adjust UI test, fix navigating to a pipeline on ipeline List page
* Fix program filing to rename inPipeline age
* Fix not being able to edit program data when name collision is detected
* Fix not being able to edit program data when name collision is detected
* Fix pipeline program not getting deleted in a new pipeline
* Fix Pipeline name not editable on Pipeline Management page
* Change name collision error message

Signed-off-by: Karakatiza666 <bulakh.96@gmail.com>
@lalithsuresh lalithsuresh merged commit 5b4fc42 into main Jan 16, 2024
6 checks passed
@lalithsuresh lalithsuresh deleted the names-in-urls branch January 16, 2024 22:23
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.

None yet

3 participants