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

notification: fix db func GetProjectCommitStatusDeliveriesAfterSequenceByProjectID #468

Conversation

alessandro-sorint
Copy link
Contributor

@alessandro-sorint alessandro-sorint commented Dec 15, 2023

fix db func GetProjectCommitStatusDeliveriesAfterSequenceByProjectID since startSequence is not provided when the client ask by the first commit status delivery.

@alessandro-sorint alessandro-sorint force-pushed the fix-GetProjectCommitStatusDeliveriesAfterSequenceByProjectID branch 2 times, most recently from 60258eb to 68a21bc Compare December 15, 2023 13:51
@alessandro-sorint alessandro-sorint changed the title fix get project commit statuses api notification: fix db func GetProjectCommitStatusDeliveriesAfterSequenceByProjectID Dec 15, 2023
@alessandro-sorint alessandro-sorint force-pushed the fix-GetProjectCommitStatusDeliveriesAfterSequenceByProjectID branch 3 times, most recently from dbdc70b to 06031ee Compare December 18, 2023 09:02
name string
limit int
sortDirection types.SortDirection
deliveryStatus []types.DeliveryStatus
Copy link
Member

@sgotti sgotti Dec 19, 2023

Choose a reason for hiding this comment

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

what's the purpose of this slice? It wasn't used in previous tests and the logic is totally unclear (only 0 or 1 entries, strange string extraction and comparison...).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the slice matrix and made the same previous tests logic with the sort order desc

@alessandro-sorint alessandro-sorint force-pushed the fix-GetProjectCommitStatusDeliveriesAfterSequenceByProjectID branch 2 times, most recently from 6218f7b to a4900c0 Compare December 19, 2023 09:27
@alessandro-sorint alessandro-sorint force-pushed the fix-GetProjectCommitStatusDeliveriesAfterSequenceByProjectID branch 2 times, most recently from 217ff7d to 417cf12 Compare December 21, 2023 10:13
…ceByProjectID

fix db func GetProjectCommitStatusDeliveriesAfterSequenceByProjectID since startSequence is not provided when the client ask by the first commit status delivery.
@alessandro-sorint alessandro-sorint force-pushed the fix-GetProjectCommitStatusDeliveriesAfterSequenceByProjectID branch from 417cf12 to 36be471 Compare December 21, 2023 10:39
@sgotti sgotti merged commit 7e57be2 into agola-io:master Dec 21, 2023
1 check passed
@alessandro-sorint alessandro-sorint deleted the fix-GetProjectCommitStatusDeliveriesAfterSequenceByProjectID branch December 21, 2023 16:07
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