Skip to content

Conversation

sd109
Copy link
Member

@sd109 sd109 commented Jun 14, 2023

Adds an extra HTTP header to all successful responses with a count of the number of elements operated on while calculating the result of reduction.

This probably makes the count endpoint obsolete and worth removing. I can remove that endpoint as part of this PR and bump semver to 0.2.0 if that's the route we want to take.

@sd109 sd109 requested a review from markgoddard June 14, 2023 16:04
@sd109
Copy link
Member Author

sd109 commented Jun 14, 2023

I guess we'll also need to update the compliance test suite so that CI continues to pass if we decide to remove the count endpoint.

@markgoddard
Copy link

I suppose the count endpoint might be useful if you only want the count. Otherwise you'd need to request something else and get the count from the header.

Copy link

@markgoddard markgoddard left a comment

Choose a reason for hiding this comment

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

Nice work

@markgoddard
Copy link

Please also update the list of response headers in the README.

@markgoddard
Copy link

Need to also consider how to test this using compliance tests, and more generally how to handle divergence of the API over time.

@sd109 sd109 marked this pull request as ready for review July 5, 2023 13:36
@sd109 sd109 requested a review from markgoddard July 7, 2023 14:32
@sd109 sd109 merged commit a2b9c21 into main Jul 10, 2023
@sd109 sd109 deleted the feature/count-header branch July 10, 2023 12:53
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.

2 participants