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

gateway: fix api cursors #471

Merged
merged 7 commits into from
Jan 8, 2024
Merged

Conversation

alessandro-sorint
Copy link
Contributor

add setting of sort direction to the out cursors.

Copy link
Member

@sgotti sgotti left a comment

Choose a reason for hiding this comment

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

@alessandro-sorint Thanks for the PR.
The commits messages should be something like:

gateway: add missing sortdirection to get orgs cursor

the SortDirection field in the returned cursor wasn't set. Set it to the right value.

Convert tests to matrix tests to reduce code duplication and add tests with both sort directions.

tests/setup_test.go Outdated Show resolved Hide resolved
tests/setup_test.go Outdated Show resolved Hide resolved
tests/setup_test.go Outdated Show resolved Hide resolved
@alessandro-sorint alessandro-sorint force-pushed the fix-cursors branch 2 times, most recently from e550504 to 30a3203 Compare January 8, 2024 10:27
tests/setup_test.go Outdated Show resolved Hide resolved
tests/setup_test.go Outdated Show resolved Hide resolved
tests/setup_test.go Outdated Show resolved Hide resolved
tests/setup_test.go Outdated Show resolved Hide resolved
tests/setup_test.go Outdated Show resolved Hide resolved
the SortDirection field in the returned cursor wasn't set. Set it to the right value.

Convert tests to matrix tests to reduce code duplication and add tests with both sort directions.
the SortDirection field in the returned cursor wasn't set. Set it to the right value.

Convert tests to matrix tests to reduce code duplication and add tests with both sort directions.
the SortDirection field in the returned cursor wasn't set. Set it to the right value.

Convert tests to matrix tests to reduce code duplication and add tests with both sort directions.
the SortDirection field in the returned cursor wasn't set. Set it to the right value.

Convert tests to matrix tests to reduce code duplication and add tests with both sort directions.
the SortDirection field in the returned cursor wasn't set. Set it to the right value.

Convert tests to matrix tests to reduce code duplication and add tests with both sort directions.
…eries cursor

the SortDirection field in the returned cursor wasn't set. Set it to the right value.

Convert tests to matrix tests to reduce code duplication and add tests with both sort directions.
…ies cursor

the SortDirection field in the returned cursor wasn't set. Set it to the right value.

Convert tests to matrix tests to reduce code duplication and add tests with both sort directions.
@sgotti sgotti merged commit 1ac1c71 into agola-io:master Jan 8, 2024
1 check was pending
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.

None yet

2 participants