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

feat(3163): Pass in event id query param for list pipeline events [2] #3164

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

tkyi
Copy link
Member

@tkyi tkyi commented Aug 5, 2024

Context

It would be nice if we could filter pipeline events based on less than or greater than operators.

Objective

This PR allows for the below calls:

GET /v4/pipelines/{pipelineId}/events?id=lt:{eventId}&count=5
GET /v4/pipelines/{pipelineId}/events?id=gt:{eventId}&count=5

Also fixes some tests.

References

Related to #3163, https://sequelize.org/docs/v6/core-concepts/model-querying-basics/#operators
Blocked by screwdriver-cd/datastore-sequelize#96

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Copy link
Member

@VonnyJap VonnyJap left a comment

Choose a reason for hiding this comment

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

tests failed

@tkyi tkyi force-pushed the eventPaginationInfo branch from b284c8e to 68caa77 Compare August 5, 2024 22:32
@tkyi tkyi merged commit 71bd12b into master Aug 5, 2024
2 checks passed
@tkyi tkyi deleted the eventPaginationInfo branch August 5, 2024 23:18
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