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

MM-60769: load from s3 #1629

Merged
merged 4 commits into from
Oct 15, 2024
Merged

MM-60769: load from s3 #1629

merged 4 commits into from
Oct 15, 2024

Conversation

ifoukarakis
Copy link
Contributor

@ifoukarakis ifoukarakis commented Oct 9, 2024

Summary

  • Load packets from S3.
  • Support incremental loading.

Assumes that different types of packets are under <prefix>/YYYY/MM/DD/.

Ticket Link

https://mattermost.atlassian.net/issues/MM-60769

@ifoukarakis ifoukarakis added Work In Progress Not yet ready for review 2: Dev Review Requires review by a core committer and removed Work In Progress Not yet ready for review labels Oct 9, 2024
@ifoukarakis ifoukarakis changed the title Mm 60769 load from s3 MM-60769: load from s3 Oct 9, 2024
return False


# The bucket does not exist or you ha
Copy link
Contributor

Choose a reason for hiding this comment

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

text cut?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Left over. Removing.

from utils.packets.service import ingest_support_packet, ingest_survey_packet
from utils.packets.service import (
ingest_support_packet,
ingest_support_packets_from_s3,
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume there is no need to add tests for ingest_support_packets_from_s3 (only the table name changes).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's calling the same function as ingest_surveys_from_s3. The individual components have been tested. We can add an end-to-end test if you prefer. However, since there might be changes depending on the structure of the S3 bucket, I prefer to wait for them before adding the extra data.

@ifoukarakis ifoukarakis merged commit 7673294 into master Oct 15, 2024
4 checks passed
@ifoukarakis ifoukarakis deleted the MM-60769-load-from-s3 branch October 15, 2024 10:10
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.

2 participants