Skip to content

feat: add batch mode #448

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 5 commits into from
Dec 7, 2021
Merged

feat: add batch mode #448

merged 5 commits into from
Dec 7, 2021

Conversation

lance
Copy link
Member

@lance lance commented Nov 24, 2021

This is experimental and still a work in progress. Would be interested in thoughts folks have on this - esp things like HTTP.toEvent(): CloudEvent | CloudEvent[]. The modifications were pretty simple in order to support batch mode, in my opinion. But it might have made some usage clunky, such as that. Marked as a WiP so I can add more tests and the overall design/direction can be hashed out first (if this doesn't look quite right).

/cc @cloudevents/sdk-javascript-maintainers

Fixes: #440 (eventually)

Signed-off-by: Lance Ball lball@redhat.com

@lance lance added type/enhancement New feature or request module/transport/http Issues related to the HTTP transport protocol implementation spec/1.0 Issues related to the CE specification labels Nov 24, 2021
@lance lance requested a review from a team November 24, 2021 18:21
@lance lance self-assigned this Nov 24, 2021
lance added 4 commits December 7, 2021 13:37
This is experimental and still a work in progress.

Fixes: cloudevents#440 (eventually)

Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance force-pushed the lance/440-add-batch branch from ee150f2 to 7d5b2ba Compare December 7, 2021 18:52
Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance marked this pull request as ready for review December 7, 2021 19:24
@lance
Copy link
Member Author

lance commented Dec 7, 2021

@grant thanks for the earlier review. I have made a few modifications since then, so if you don't mind a second look I would appreciate it. @lholmquist if you've got feedback on this I would welcome it as well. Thanks!

@lance lance requested review from grant and lholmquist December 7, 2021 19:25
@lance lance merged commit 9a46e33 into cloudevents:main Dec 7, 2021
Copy link
Member

@grant grant left a comment

Choose a reason for hiding this comment

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

No concerns. LGTM.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
module/transport/http Issues related to the HTTP transport protocol implementation spec/1.0 Issues related to the CE specification type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not support Batched Content Mode but does not fail with spec validation error
3 participants