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

PRMT-4467 #145

Merged
merged 3 commits into from
Feb 2, 2024
Merged

PRMT-4467 #145

merged 3 commits into from
Feb 2, 2024

Conversation

martin-nhs
Copy link
Contributor

  • Removed downloading the file from S3 in favour of get_object.
  • Added additional validation.

Copy link
Contributor

@chrisbloe-nhse chrisbloe-nhse left a comment

Choose a reason for hiding this comment

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

This looks good.

lambda/orc_ingestion.py Outdated Show resolved Hide resolved
lambda/orc_ingestion.py Outdated Show resolved Hide resolved

def new_uuid() -> str:
return str(uuid.uuid4())
if len(file_lines) > 1:

Choose a reason for hiding this comment

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

bit pedantic so feel free to ignore:

I would separate this validation out into a separate function under the class and then calls Class.read() and then class.validate_one_line()

@martin-nhs martin-nhs merged commit 0d0c0e1 into main Feb 2, 2024
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.

3 participants