Skip to content

Conversation

@samfreund
Copy link
Member

@samfreund samfreund commented Oct 15, 2025

Description

Currently, after creating/duplicating a pipeline it's necessary to manually change to the new pipeline. As a QoL feature, this change makes that switch occur automatically.

This solution is guaranteed to work because when creating/dupeing a pipeline, we set it's index to int.max_value (heh another max_value @Gold856) and re-assign indexes. This reassignment will result in the new pipelines index being the largest, meaning we can choose the highest index to get that pipeline.

closes #960

Meta

Merge checklist:

  • Pull Request title is short, imperative summary of proposed changes
  • The description documents the what and why
  • If this PR changes behavior or adds a feature, user documentation is updated
  • If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly
  • If this PR touches configuration, this is backwards compatible with settings back to v2025.3.2
  • If this PR touches pipeline settings or anything related to data exchange, the frontend typing is updated
  • If this PR addresses a bug, a regression test for it is added

@github-actions github-actions bot added the frontend Having to do with PhotonClient and its related items label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Having to do with PhotonClient and its related items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Swap to pipeline after creating a new or duplicating the pipeline

1 participant