Skip to content

Conversation

@Kshitij-Katiyar
Copy link
Contributor

Summary

Added server testcase for webhook.go

@Kshitij-Katiyar Kshitij-Katiyar added the 2: Dev Review Requires review by a core committer label Nov 25, 2024
@Kshitij-Katiyar Kshitij-Katiyar self-assigned this Nov 25, 2024
@Kshitij-Katiyar Kshitij-Katiyar changed the base branch from master to MM-918 November 25, 2024 08:02
pushEvent: GetMockPushEvent(),
setup: func() {
mockKvStore.EXPECT().Get(SubscriptionsKey, gomock.Any()).DoAndReturn(func(key string, value interface{}) error {
if v, ok := value.(**Subscriptions); ok {

Choose a reason for hiding this comment

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

Why are we using double * here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because pointer of pointer is used here
Screenshot from 2025-01-28 15-54-37

Choose a reason for hiding this comment

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

@Kshitij-Katiyar I do not think we need the double pointer here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@raghavaggarwal2308 Double-pointers are very much required here to handle the case of no subscription stored
Using single pointer can make the code more complicated but we can do it.
Let me know your thoughts on this

@raghavaggarwal2308 raghavaggarwal2308 added this to the v2.4.0 milestone Dec 22, 2024
@Kshitij-Katiyar
Copy link
Contributor Author

@raghavaggarwal2308 FIxed the comments, please re-review

Base automatically changed from MM-918 to master April 9, 2025 11:44
Kshitij-Katiyar and others added 3 commits April 9, 2025 17:26
@abbas-dependable-naqvi abbas-dependable-naqvi merged commit b17b7fe into master May 30, 2025
11 checks passed
@abbas-dependable-naqvi abbas-dependable-naqvi deleted the MM-956 branch May 30, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2: Dev Review Requires review by a core committer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants