-
Notifications
You must be signed in to change notification settings - Fork 105
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
Make /communication_cost/ endpoint with OffsetPageSchema #4203
Comments
There are 4 endpoints under the
|
The
|
@pkfec @fec-jli @lbeaufort @hcaofec cc @PaulClark2, The issue here is that a user reported inconsistent pagination between When no argument is supplied to If there is a specific reason we can probably close this issue and note it in case it comes up again. If there is not, I'd suggest we bring it in line with the other endpoints and notify API users of a potential breaking change in the pagination. If this is not acceptable, perhaps we can create another endpoint that duplicates |
Here's our deprecation policy, which is definitely open for improvement: https://github.com/fecgov/openFEC/wiki/Deprecation-policy |
Thanks @lbeaufort, Thanks for linking the doc! The main (not insurmountable) obstacle to following this deprecation policy is that we aren't replacing and endpoint. Still, good info and we can certainly let api users know far in advance. |
We've started using the deprecation policy for breaking changes, since removing an endpoint and making a breaking change both have detrimental impacts on the user. They're definitely guidelines though and not a strict policy. |
@lbeaufort what portions of the guidance would you specifically recommend for this issue beyond notifying the api users? We can incorporate that into the issue. Thanks! |
Personally, I'd follow the policy and optionally adjust the timing based on my best judgement. |
Thanks @lbeaufort if you happen to review the doc and find any actionable recommendations we can consider them. Otherwise I'll proceed with letting api users know in advance and target a timeframe. Thanks for your help trying to apply the deprecation to the pagination issue. |
Updated summary
This work makes the new endpoint
/communication_costs/
available. Subsequent removal of the old/communication-costs/
endpoint will happen under another issue, and is marked as a completion criteria for this issue.Original Summary
This ticket continues the work previously done to bring the communications-cost endpoint in line with the typical pagination scheme used throughout our API, i.e., the
OffsetPageSchema
, as opposed to the schema used for endpoints for larger datasets, i.e., theSeekPageSchema
.The main work remaining to be done under this issue is the "appropriate" handling of making the change to the endpoint which represents a breaking change. The current work is preserved under WIP PR #4232
Background from previous work
api endpoints that support pagination through page, some. endpoints make the
page
key explicitly available (e.g.,/communication_costs/totals/by_candidate/
) while others do not (e.g.,/communication-costs/
).For uniformity and to support generalizing programmatic access to our API, we should make pagination keys when possible (a case where this would not be currently possible, for example, would be the
schedule_a
endpoints where additional keys are needed to support pagination.Action items
/communication_costs/
endpoint with OffsetPageSchema/communication-costs/
are in place at least in this work, e.g.,Fix sort on candidate and committee name #4529 cc @lbeaufort @patphongsexisting bugs are with/communication_costs/aggregates/
which usesaggregates.CCAggregatesView
(/communication-costs/
usescosts.CommunicationCostView
)/communication-costs/
(e.g., endpoint walk) and open issues to repoint to new endpoint/communication-costs/
and make a completion criteria of letting api users know and to not actually remove before the timeframe indicated in our deprecation notice.Completion criteria:
The text was updated successfully, but these errors were encountered: