Skip to content

Response context RFC - #22

Merged
marandaneto merged 19 commits into
mainfrom
rfc/response-context
Oct 7, 2022
Merged

marandaneto merged 19 commits into
mainfrom
rfc/response-context

Conversation

@marandaneto

@marandaneto marandaneto commented Oct 3, 2022 •

Copy link
Copy Markdown
Contributor

Add Response interface that contains information on a HTTP response related to the event.

Rendered RFC

@marandaneto
marandaneto marked this pull request as ready for review October 3, 2022 08:05

@jjbayer jjbayer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have a slight preference for Option 2 -- I feel like event.request itself should be a context and is only a top-level field for historical reasons. I do not have a strong opinion though, both options seem fine to me.

Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved

@jan-auer jan-auer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Between Option 1 and Option 2, I would recommend to go with Option 2: Adding a Response context type in contexts. This allows us to create typing for known fields, documentation, normalization, and shows up in the UI automatically. When the SDK is used with older self-hosted deployments, this further does not lead to errors showing up in the issue details UI.

Once we've chosen an option, please structure the RFC so that it describes the proposed change and lists alternatives separately.

Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved
Comment thread text/0022-response-context.md Resolved

@jan-auer jan-auer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good to go once the comment on on is_redirect is resolved. Thank you!

@marandaneto
marandaneto merged commit cdabf01 into main Oct 7, 2022
@marandaneto
marandaneto deleted the rfc/response-context branch October 7, 2022 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants