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

[aws-json] Migrate SNS ListSubscriptionsByTopic #320

Conversation

kojisaikiAtSony
Copy link
Contributor

No description provided.

@kojisaikiAtSony
Copy link
Contributor Author

Hi @Admiral-Piett , this is also ready to review!

Copy link
Owner

@Admiral-Piett Admiral-Piett left a comment

Choose a reason for hiding this comment

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

Couple more small things, otherwise looks great!

return utils.CreateErrorResponseV1("TopicNotFound", false)
}

topic := app.SyncTopics.Topics[topicName]
Copy link
Owner

Choose a reason for hiding this comment

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

You could pull this out above instead of fetching it out by key twice no?


memberMap := make(map[string]app.TopicMemberResult, 2)
for _, member := range response.Result.Subscriptions.Member {
memberMap[member.SubscriptionArn] = member
Copy link
Owner

Choose a reason for hiding this comment

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

Could we not just assert on the whole list?


type ListSubscriptionsByTopicResult struct {
NextToken string `xml:"NextToken"` // not implemented
Subscriptions app.TopicSubscriptions `xml:"Subscriptions"`
Copy link
Owner

Choose a reason for hiding this comment

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

Should we move app.TopicSubscriptions over here as well?

@Admiral-Piett
Copy link
Owner

@kojisaikiAtSony Same here. Anything else I need to look at or can help with on this?

@kojisaikiAtSony
Copy link
Contributor Author

@kojisaikiAtSony Same here. Anything else I need to look at or can help with on this?

We can update also this right away 👍

@kojisaikiAtSony kojisaikiAtSony force-pushed the feature-aws-json-list-subscription-by-topic branch from 77719e6 to 698729e Compare August 26, 2024 12:29
@kojisaikiAtSony
Copy link
Contributor Author

@Admiral-Piett We updated this with your feedback!

@Admiral-Piett
Copy link
Owner

Just a rebase I think and then we're good to go!

@kojisaikiAtSony kojisaikiAtSony force-pushed the feature-aws-json-list-subscription-by-topic branch from 698729e to 5728a7c Compare August 30, 2024 03:46
@Admiral-Piett Admiral-Piett merged commit 9159ffd into Admiral-Piett:feature-aws-json Aug 30, 2024
2 checks passed
@kojisaikiAtSony kojisaikiAtSony deleted the feature-aws-json-list-subscription-by-topic branch September 2, 2024 00:36
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