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

Feature/552 eventsubscription #928

Conversation

erikkristoferanderson
Copy link
Contributor

Problem

Fixes #552

Solution

Add eventsubscription

Changes Made

Add support for Amazon Redshift eventsubscription

How to Test

I created an eventSubscription through the awscli, then checked that it appeared in the Komiser UI.

Screenshots

Screen Shot 2023-08-28 at 5 33 21 PM

Notes

I indicated in comments in the code some points I'm not sure about. Also, testing and documentation isn't done, but I wanted to get some eyes on what I've done so far. Also, I used go get go get github.com/aws/aws-sdk-go-v2/service/redshift, which I noticed changed various version numbers. I'm not sure if this is what we want at this point.

Checklist

  • Code follows the contributing guidelines
  • Changes have been thoroughly tested
  • Documentation has been updated, if necessary
  • Any dependencies have been added to the project, if necessary

Reviewers

@[username of the reviewer]

mlabouardy and others added 5 commits July 7, 2023 00:04
This is a wip commit with some todo question items. I would like to
do a rebase before opening the PR, so that I send in one clean commit
to the pull request. Also, there is another todo item: I should make
the needed changes to go.mod, but no other changes.
Copy link
Collaborator

@mlabouardy mlabouardy left a comment

Choose a reason for hiding this comment

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

Hey @datadeverik, thanks for the PR
I've left some minor comments

providers/aws/redshift/eventsubscription.go Outdated Show resolved Hide resolved
providers/aws/redshift/eventsubscription.go Outdated Show resolved Hide resolved
providers/aws/redshift/eventsubscription.go Outdated Show resolved Hide resolved
providers/aws/redshift/eventsubscription.go Outdated Show resolved Hide resolved
providers/aws/redshift/eventsubscription.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@AvineshTripathi AvineshTripathi left a comment

Choose a reason for hiding this comment

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

LGTM

})
}
}

if aws.ToString(output.Marker) == "" { // TODO: is output.Marker here playing the same role as ouput.NextMarker in the efs example?
if aws.ToString(output.Marker) == "" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we add a logger? for debugging purposes?

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'll look around for examples of loggers in a similar positions in existing functions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After some basic inspection, I don't see a logger in similar places in existing functions in the AWS provider. (like for example providers/aws/lambda/functions.go).

But now it occurs to me that maybe you were suggesting adding a logger temporarily to answer the question in the comment, namely "TODO: is output.Marker here playing the same role as ouput.NextMarker in the efs example?".

In any case, it seems that the feature is working correctly, so maybe there isn't a need to pursue this point further.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good to me I think we are ready to go with this!

@mlabouardy mlabouardy added the aws label Sep 1, 2023
@mlabouardy mlabouardy added this to the v3.1.1 milestone Sep 1, 2023
@mlabouardy mlabouardy merged commit 4502a77 into tailwarden:develop Sep 1, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Amazon Redshift eventsubscription
4 participants