Skip to content
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

Pagination: more consistent, add to changelogs (BREAKING CHANGE) #84

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

joshbeard
Copy link
Contributor

Make the pagination handling more consistent where implemented and extend it to the changelogs API.

Breaking Change

Changelog and Custom Page GetAll() now returns nil when there are no changelogs, consistent with the API Specification's GetAll() function.

Since this project is still versioned as a development release (0.x.x), this will increment the minor version.

Make the pagination handling more consistent where implemented and
extend it to the changelogs API.
@joshbeard joshbeard added the enhancement New feature or request label Aug 19, 2024
@joshbeard joshbeard self-assigned this Aug 19, 2024
@joshbeard joshbeard merged commit cda2b9b into LiveOakLabs:main Aug 19, 2024
7 checks passed
@joshbeard joshbeard deleted the eb-3408-pagination branch August 19, 2024 17:52
joshbeard added a commit to joshbeard/readme-api-go-client that referenced this pull request Aug 22, 2024
* fix: nested category docs (BREAKING CHANGE)
  * Previously, category docs that were nested under a parent document were not
    returned in the response. This has been fixed.
  * BREAKING CHANGE: The response structure for the `category.GetDocs()` method
    has changed. The `CategoryDocsChildren` struct has been removed and the
    existing `CategoryDocs` struct is now used for the nested category docs.
    The existing `Children` field is present for nested docs, but ReadMe limits
    the depth of the nested docs to 1 level. (Category -> Parent Doc -> Child)
  * Since this project is still versioned as `0.x.x`, this will
    increment the **minor version**.
* fix: pagination results are incomplete
  * LiveOakLabs#84 broke pagination because it didn't properly append the results to the
    response. This has been fixed.
* maint: Refactor tests
  * Update the category tests to be more exhaustive and to use table-driven
    tests.
  * Particular testing improved for pagination, categories, and docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants