-
Notifications
You must be signed in to change notification settings - Fork 536
Server-side parent step computation #3762
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
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
for upstream_step in step_model.spec.upstream_steps: | ||
self._set_run_step_parent_step( | ||
child_step_run=step_schema, | ||
parent_step_name=upstream_step, | ||
session=session, | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only change I didn't understand. Did you move this after to_model
to keep the step model clean of upstream steps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only did that for an easy way to get the upstream_steps
, which are already parsed as part of the spec
of the model, but would be a raw json string when fetching from the schema. This step_model here anyway is not the final one, but only an intermediate one used for the same purpose already (easy access to parsed json fields)
Describe changes
This PR adds logic to compute the parent steps server-side. This means the client does not need to fetch all upstream steps anymore to create a
StepRunRequest
, which should improve performance especially when having largefan-in
steps.Pre-requisites
Please ensure you have done the following:
develop
and the open PR is targetingdevelop
. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.Types of changes