-
Notifications
You must be signed in to change notification settings - Fork 104
Update stacks resources to match upstream serializer changes #1220
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
base: main
Are you sure you want to change the base?
Conversation
Changelog WarningPlease add a changelog entry to |
73a5f2e
to
62e9ec8
Compare
CreatedAt *time.Time `jsonapi:"attr,created-at,iso8601"` | ||
|
||
// Relationships | ||
StackDeploymentStep *StackConfiguration `jsonapi:"relation,stack-deployment-step"` |
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 should be *StackDeploymentStep
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.
Good catch! Thanks
@@ -92,26 +78,6 @@ func (s stackDeploymentRuns) Read(ctx context.Context, stackDeploymentRunID stri | |||
|
|||
return &run, nil | |||
} | |||
|
|||
func (s stackDeploymentRuns) ReadWithOptions(ctx context.Context, stackDeploymentRunID string, options *StackDeploymentRunReadOptions) (*StackDeploymentRun, error) { |
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.
May I ask why this has been removed?
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.
+1 I believe we make use of in the Stacks CLI
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 was under the impression that all of the "Include" params had been removed, and Include
was the only option in this struct. Is that incorrect?
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.
Looks like Includes
are being handled in the controller/serializer now. Maybe an intermediate state of the API you had in mind?
Description
This PR updates the stacks domain models to match new serializer being used by the API.
Testing plan
Integration tests should cover it.
Output from tests