Skip to content

feat: Add Ses lambda event support to Parser utility #213 #214

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

Merged
merged 1 commit into from
Nov 22, 2020

Conversation

ran-isenberg
Copy link
Contributor

@ran-isenberg ran-isenberg commented Nov 22, 2020

Also added email-validator module as an extra dependancy for pydantic email addresses validations.

@ran-isenberg ran-isenberg force-pushed the ses branch 2 times, most recently from fbb2ee3 to 1645bd1 Compare November 22, 2020 09:21
from typing_extensions import Literal


class SesReciptVerdict(BaseModel):
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo - Receipt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

pyproject.toml Outdated
@@ -51,7 +51,7 @@ flake8-bugbear = "^20.1.4"


[tool.poetry.extras]
pydantic = ["pydantic", "typing_extensions"]
pydantic = ["pydantic", "typing_extensions", "pydantic[email]"]
Copy link
Contributor

Choose a reason for hiding this comment

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

What does Pydantic[email] brings?

Anything else other than EmailStr?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just that

@codecov-io
Copy link

codecov-io commented Nov 22, 2020

Codecov Report

Merging #214 (c005cc7) into develop (66edf65) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #214   +/-   ##
========================================
  Coverage    99.88%   99.88%           
========================================
  Files           69       70    +1     
  Lines         2547     2600   +53     
  Branches       109      109           
========================================
+ Hits          2544     2597   +53     
  Misses           3        3           
Impacted Files Coverage Δ
...bda_powertools/utilities/parser/models/__init__.py 100.00% <100.00%> (ø)
...s_lambda_powertools/utilities/parser/models/ses.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66edf65...c005cc7. Read the comment docs.

Copy link
Contributor

@heitorlessa heitorlessa left a comment

Choose a reason for hiding this comment

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

One last minor change and it's good to merge :-)

pyproject.toml Outdated
@@ -24,6 +24,7 @@ fastjsonschema = "^2.14.5"
boto3 = "^1.12"
jmespath = "^0.10.0"
pydantic = {version = "^1.6.0", optional = true }
email-validator = "*"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you make this optional, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, fixed

Copy link
Contributor

@heitorlessa heitorlessa left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks a lot Ran!!

@heitorlessa heitorlessa merged commit 7addeab into aws-powertools:develop Nov 22, 2020
@ran-isenberg ran-isenberg deleted the ses branch November 22, 2020 12:10
@heitorlessa heitorlessa added feature New feature or functionality and removed enhancement labels Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants