Commit b5dfe3f
Add pipeline deployment to onboarding (#4231)
* Add snapshot creation and deployment tracking to onboarding
This adds backend support for tracking two new onboarding steps related
to pipeline snapshots: snapshot creation and deployment. These steps help
guide users through the workflow of creating and deploying pipeline snapshots.
Changes:
- Add SNAPSHOT_CREATED and SNAPSHOT_DEPLOYED enum values to OnboardingStep
- Track SNAPSHOT_CREATED in create_snapshot method when users create a snapshot
- Track SNAPSHOT_DEPLOYED in create_deployment method when users deploy a snapshot
This implements backend support for zenml-io/zenml-dashboard#913
* Only track SNAPSHOT_CREATED for user-created named snapshots
Modified the SNAPSHOT_CREATED onboarding tracking to only fire for
user-created snapshots with names, not for internal system-generated
snapshots created during pipeline runs. This prevents false positives
in the onboarding flow.
When run_snapshot is called internally, it creates unnamed snapshots
that shouldn't count toward user onboarding progress.
* Update src/zenml/zen_stores/sql_zen_store.py
* Remove SNAPSHOT_CREATED tracking from onboarding
Based on product feedback, removed SNAPSHOT_CREATED enum and tracking
since snapshot creation and deployment happen in the same onboarding
step (collapsible section). Only SNAPSHOT_DEPLOYED tracking remains
to mark when users deploy their pipeline.
This aligns with the simplified onboarding flow where users will
directly deploy pipelines via `zenml pipeline deploy` command.
* Clean up merge conflict markers - remove SNAPSHOT_CREATED tracking
* Rename to PIPELINE_DEPLOYED and gate onboarding completion
Changes:
- Renamed SNAPSHOT_DEPLOYED to PIPELINE_DEPLOYED to align with new terminology
- Moved OSS_ONBOARDING_COMPLETED and PRO_ONBOARDING_COMPLETED to trigger
only when PIPELINE_DEPLOYED event fires (when user deploys a pipeline)
- Removed automatic onboarding completion from pipeline run logic
This ensures users must complete the full onboarding flow including
deployment before onboarding is marked as complete.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 678a5a3 commit b5dfe3f
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
510 | 511 | | |
511 | 512 | | |
512 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5298 | 5298 | | |
5299 | 5299 | | |
5300 | 5300 | | |
| 5301 | + | |
| 5302 | + | |
| 5303 | + | |
| 5304 | + | |
| 5305 | + | |
| 5306 | + | |
| 5307 | + | |
| 5308 | + | |
| 5309 | + | |
| 5310 | + | |
| 5311 | + | |
5301 | 5312 | | |
5302 | 5313 | | |
5303 | 5314 | | |
| |||
10767 | 10778 | | |
10768 | 10779 | | |
10769 | 10780 | | |
10770 | | - | |
10771 | 10781 | | |
10772 | 10782 | | |
10773 | 10783 | | |
| |||
10782 | 10792 | | |
10783 | 10793 | | |
10784 | 10794 | | |
10785 | | - | |
10786 | 10795 | | |
10787 | 10796 | | |
10788 | 10797 | | |
| |||
0 commit comments