Skip to content

merge builder and structs payload types #15283

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

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

james-prysm
Copy link
Contributor

@james-prysm james-prysm commented May 14, 2025

What type of PR is this?

Other

What does this PR do? Why is it needed?

we have the execution payload types defined several times in our code base, and although maybe we aren't able to merge them all, there is a case to be said for merging the HTTP REST and builder API definitions as they are essentially the same. This PR merges the use case of these types with a preference for the types defined for the rest APIs.

Which issues(s) does this PR fix?

Fixes #

Other notes for review

Acknowledgements

@james-prysm james-prysm added Cleanup Code health! Builder PR or issue that supports builder related work labels May 14, 2025
@james-prysm james-prysm added the API Api related tasks label May 14, 2025
@james-prysm james-prysm marked this pull request as ready for review May 14, 2025 21:43
@james-prysm james-prysm requested a review from kasey May 14, 2025 21:43
Comment on lines -1997 to -2001
require.NoError(t, err)
pb, err := pp.PayloadProto()
if err == nil {
require.NoError(t, err)
require.Equal(t, false, pb == nil)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because payloadProto can't get called anymore if it's already nil in parsepayload, it just errors earlier now because of how it works

james-prysm and others added 4 commits May 20, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks Builder PR or issue that supports builder related work Cleanup Code health!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants