-
Notifications
You must be signed in to change notification settings - Fork 147
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
[aws-json] Migrate SNS ListSubscriptionsByTopic #320
Conversation
Hi @Admiral-Piett , this is also ready to review! |
There was a problem hiding this 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] |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
app/models/responses.go
Outdated
|
||
type ListSubscriptionsByTopicResult struct { | ||
NextToken string `xml:"NextToken"` // not implemented | ||
Subscriptions app.TopicSubscriptions `xml:"Subscriptions"` |
There was a problem hiding this comment.
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?
@kojisaikiAtSony Same here. Anything else I need to look at or can help with on this? |
We can update also this right away 👍 |
77719e6
to
698729e
Compare
@Admiral-Piett We updated this with your feedback! |
Just a rebase I think and then we're good to go! |
review ref
698729e
to
5728a7c
Compare
9159ffd
into
Admiral-Piett:feature-aws-json
No description provided.