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

Google Cloud Storage importer #1098

Merged
merged 9 commits into from
Feb 10, 2020
Merged

Google Cloud Storage importer #1098

merged 9 commits into from
Feb 10, 2020

Conversation

berggren
Copy link
Contributor

This is the first PR for this feature. Adds the ability to listen to changes on a Turbinia output to GCS and import automatically.

@berggren berggren requested a review from aarontp February 10, 2020 12:10
aarontp
aarontp previously approved these changes Feb 10, 2020
Copy link
Member

@aarontp aarontp left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple small things, and as discussed, maybe we can add some more error checking and retries in a separate PR later.

def callback(message):
"""Google PubSub callback.

This function is called on all incoming messages on the configures topic.
Copy link
Member

Choose a reason for hiding this comment

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

Tiny nit: s/configures/configured/

db_session.add(searchindex)
db_session.commit()

if sketch.has_permission(user, 'write'):
Copy link
Member

Choose a reason for hiding this comment

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

Maybe instead of not creating a timeline here when we don't have access we could create it and not associate it with the sketch?

@berggren
Copy link
Contributor Author

@aarontp PTAL

aarontp
aarontp previously approved these changes Feb 10, 2020
Copy link
Member

@aarontp aarontp left a comment

Choose a reason for hiding this comment

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

LGTM. Just one tiny nit in a comment.

name=searchindex.name, description=searchindex.description,
sketch=sketch, user=user, searchindex=searchindex)

# If the user don't have write access to the sketch then create the
Copy link
Member

Choose a reason for hiding this comment

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

Tiny nit: s/don't/doesn't/

@berggren berggren merged commit 1418a44 into master Feb 10, 2020
@berggren berggren deleted the gcs-importer branch February 10, 2020 23:49
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.

3 participants