Skip to content

Conversation

@cordeirops
Copy link
Contributor

@cordeirops cordeirops commented Nov 19, 2025

feat: use notebook name as default pipeline name and handle TaskMissingError

Summary

This PR introduces improvements to pipeline name generation and error handling during notebook compilation.

Key Changes

  • Use the notebook filename as the default pipeline_name, applying sanitization to comply with KFP naming rules.
  • Add the domain exception TaskMissingError, raised by the compiler when a pipeline contains no steps.
  • Map TaskMissingError to RPCTaskIsMissing at the RPC layer and return a more actionable details message to the client.
  • Improve error handling in the notebook compilation flow to better guide users when pipeline steps are missing.
  • Add utility functions for pipeline name sanitization and default name derivation.
  • Frontend: implement default pipeline name + sanitization and provide a custom dialog for RPC error code 7 (TaskIsMissing).

Fixes #510

- Introduced TaskMissingError to signal when a pipeline lacks steps.
- Updated the compiler to raise TaskMissingError if no steps are present.
- Mapped TaskMissingError to RPCTaskIsMissing for RPC error handling.
- Enhanced error handling in the notebook compilation process to provide user guidance for missing steps.
- Added utility functions in the UI to display informative dialogs for missing pipeline steps.
@StefanoFioravanzo StefanoFioravanzo changed the title FIX ISSUE_510 feat(frontend): use notebook name as default pipeline name and handle TaskMissingError Nov 20, 2025
@StefanoFioravanzo
Copy link
Member

@cordeirops I took the liberty of updating the PR title and adding the issue link to the end of the firsts comment - in that way the PR and issue are linked

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.

[feature] Improve how new Notebooks pipeline name is handled when no metadata is available

2 participants