Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aws-powertools/powertools-lambda-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 590fa3c
Choose a base ref
...
head repository: aws-powertools/powertools-lambda-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e202f96
Choose a head ref

Commits on Mar 18, 2021

  1. Copy the full SHA
    f024963 View commit details

Commits on Mar 19, 2021

  1. chore: correct 3rd party license

    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    heitorlessa committed Mar 19, 2021
    2
    Copy the full SHA
    2d19975 View commit details

Commits on Mar 20, 2021

  1. fix(lint): Move tests/THIRD-PARTY-LICENSES to root (#352)

    Michael Brewer authored Mar 20, 2021
    Copy the full SHA
    961b25e View commit details

Commits on Mar 22, 2021

  1. feat(data-classes): Add S3 Object Lambda Event (#353)

    Michael Brewer authored Mar 22, 2021
    Copy the full SHA
    4179ac1 View commit details
  2. Copy the full SHA
    8c20b7a View commit details

Commits on Mar 23, 2021

  1. chore: bump to 1.13.0

    heitorlessa committed Mar 23, 2021
    Copy the full SHA
    dceb044 View commit details
  2. Copy the full SHA
    4f4840f View commit details
  3. Copy the full SHA
    921b6c0 View commit details
  4. Copy the full SHA
    a49a48f View commit details
  5. chore: make RFC proposal more explicit

    This brings additional updates before we create a shared repository for all RFCs.
    heitorlessa authored Mar 23, 2021
    Copy the full SHA
    e4c81a0 View commit details
  6. Copy the full SHA
    4211796 View commit details

Commits on Mar 25, 2021

  1. fix(metrics): AttributeError raised by MediaManager and Typing and do…

    …cs (#357)
    
    * chore(data-classes): Typing and docs
    
    Changes:
    - Correct typing to make mypy happier
    - Correct highlighted lines
    
    * fix(metrics): AttributeError raises when setting metadata_set
    
    * chore: Correct the typing as suggested by mypy
    
    * chore: Set boto types as Any
    
    * chore(batch): Correct typing for processor
    
    * fix(parser): Check python version_info for typing
    Changes:
    - Use sys.version_info to determine where we need typing_extensions
    
    Reference: https://mypy.readthedocs.io/en/stable/runtime_troubles.html#using-new-additions-to-the-typing-module
    
    * docs(validation): Correct typing for parameters
    
    * chore: Code review changes
    Michael Brewer authored Mar 25, 2021
    Copy the full SHA
    29497d4 View commit details
  2. fix(tracer): Correct type hint for MyPy (#365)

    Michael Brewer authored Mar 25, 2021
    Copy the full SHA
    7c9a319 View commit details

Commits on Mar 29, 2021

  1. build(pre-commit): Add pre-commit to make pr (#368)

    Michael Brewer authored Mar 29, 2021
    Copy the full SHA
    3bd0e46 View commit details
  2. Copy the full SHA
    28afbe4 View commit details

Commits on Mar 30, 2021

  1. Copy the full SHA
    9a536a2 View commit details
  2. fix(data-classes): Add missing operationName (#373)

    Michael Brewer authored Mar 30, 2021
    Copy the full SHA
    9f08fa6 View commit details

Commits on Mar 31, 2021

  1. fix(parser): S3Model support empty keys (#375)

    * chore: upgrade pydantic
    
    * fix: allow empty s3 objects
    heitorlessa authored Mar 31, 2021
    Copy the full SHA
    9a86321 View commit details
  2. feat(parameter): add dynamodb_endpoint_url for local_testing (#376)

    * Dynamodb endpoint_url for local testing
    
    * Add endpoint_url parameter on docstring
    
    * docs: fix typo and project name
    
    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    
    * feat: use a tab snippet to standout
    
    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    
    * fix: endpoint_url parameter syntax
    
    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    
    * docs: include example url in docstring
    
    Co-authored-by: heitorlessa <lessa@amazon.co.uk>
    rtrive and heitorlessa authored Mar 31, 2021
    Copy the full SHA
    1b5d46a View commit details
  3. feat(event-handler): Add AppSync handler decorator (#363)

    * feat(event-handler): Add AppSync handler decorator
    
    * test(event-handler): Use pathlib
    
    * fix(tracer): Correct type hint for MyPy
    
    Closes #360
    
    * docs(event-handler): Initial markdown docs
    
    * feat(event-handler): Add an implicit appsync handler
    
    * docs(event-handler): Add implicit handler example
    
    * docs(event-handler): Add full amplify example
    
    * chore(event-handler): Add more docs
    
    * chore(event-handler): Add current_event
    
    * refactor(event-handler): Remove include_event and incluce_context options
    
    * chore: bump ci
    
    * refactor(event-handler): Move to up to
    
    * chore(event-handler): Add debug logging to appsync resolver
    
    * docs(event-handler): Add more detailed example to docstring
    
    * chore(event-handler): Rename to _get_resolver
    Michael Brewer authored Mar 31, 2021
    Copy the full SHA
    a2c82b5 View commit details

Commits on Apr 1, 2021

  1. Copy the full SHA
    b558b18 View commit details

Commits on Apr 5, 2021

  1. docs: enable versioning feature (#374)

    * feat(docs): enable docs versioning
    
    * feat: update workflows to support docs versioning
    
    * chore: update automated activities note
    
    * chore: update to latest mkdocs-material
    
    * chore: merge alias redirect in one step
    
    * docs: add 404 redirect for old docs
    
    * chore: add docs redirect on deploy
    
    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    
    * chore: enable versioned api ref
    
    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    heitorlessa authored Apr 5, 2021
    Copy the full SHA
    da3aa5d View commit details
  2. Copy the full SHA
    59fbefc View commit details
  3. Copy the full SHA
    87d74c7 View commit details
  4. Copy the full SHA
    ae9a134 View commit details
  5. fix: downgrade poetry to 1.1.4 (#385)

    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    heitorlessa authored Apr 5, 2021
    Copy the full SHA
    ad4092e View commit details
  6. docs: Fix doc links and line highlights (#380)

    * docs: Fix doc links and line highlights
    
    Changes:
    - docs(batch): Remove archors for `sqs_batch_processor` and `PartialSQSProcessor`
    - docs(idempotency): Fix link for `IdempotencyConfig`
    - docs(paramters): Fix link for `AWS AppConfig`
    - docs(tracer): Fix link highlight for `capture_lambda_handler`
    
    * doc: Consitently format Key Features
    Michael Brewer authored Apr 5, 2021
    Copy the full SHA
    c820909 View commit details

Commits on Apr 8, 2021

  1. docs: introduce event handlers utility section (#388)

    * docs: adjust navigation to allow future handlers
    
    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    
    * chore: add back to top button feature
    
    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    
    * chore: add highlight for inline block
    
    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    
    * docs: add initial structure
    
    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    
    * docs(appsync_handler): polish advanced section
    
    * docs(appsync_handler): add nested mappings & async
    
    * docs(appsync_handler): add last touches before review
    
    * docs(appsync_handler): add ltesting section
    heitorlessa authored Apr 8, 2021
    Copy the full SHA
    a64f766 View commit details
  2. docs(validator): include more complete examples & intro to JSON Schema (

    #389)
    
    * docs(validation): use new structure
    
    * docs(validation): include complete examples
    heitorlessa authored Apr 8, 2021
    Copy the full SHA
    48ffc2a View commit details

Commits on Apr 9, 2021

  1. docs: Correct link targets and line highlights (#390)

    * docs: Correct links and line highlights
    
    Changes:
    - Use target _blank for external links
    - Correct some of the line highlighted in the examples
    - Fix links to Tracer
    
    * docs: Correct internal links to tracer
    
    * docs: Include .md in internal links
    Michael Brewer authored Apr 9, 2021
    Copy the full SHA
    0edec8e View commit details
  2. Copy the full SHA
    882e07f View commit details
  3. Copy the full SHA
    55a5db3 View commit details
  4. docs(logger): add example on how to set UTC timestamp (#392)

    Signed-off-by: heitorlessa <lessa@amazon.co.uk>
    heitorlessa authored Apr 9, 2021
    Copy the full SHA
    facfc4b View commit details
  5. chore: bump to 1.14.0

    heitorlessa committed Apr 9, 2021
    Copy the full SHA
    02d341e View commit details
  6. Copy the full SHA
    9be19b2 View commit details

Commits on Apr 19, 2021

  1. docs(tracer): Fix line highlighting (#395)

    Michael Brewer authored Apr 19, 2021
    Copy the full SHA
    ae331b0 View commit details
  2. Copy the full SHA
    5bce279 View commit details

Commits on Apr 21, 2021

  1. feat(parser): Support for API GW v1 proxy schema & envelope (#403)

    Co-authored-by: Heitor Lessa <lessa@amazon.nl>
    ran-isenberg and heitorlessa authored Apr 21, 2021
    Copy the full SHA
    68d4110 View commit details
  2. Copy the full SHA
    939cba7 View commit details

Commits on Apr 22, 2021

  1. refactor(logger): BYOFormatter and Handler, UTC support, and more (#404)

    Co-authored-by: Michael Brewer <michael.brewer@gyft.com>
    heitorlessa and Michael Brewer authored Apr 22, 2021
    Copy the full SHA
    0dc5e1b View commit details

Commits on Apr 23, 2021

  1. Copy the full SHA
    776569a View commit details

Commits on Apr 28, 2021

  1. feat(event-handler): add http ProxyEvent handler (#369)

    Michael Brewer authored Apr 28, 2021
    Copy the full SHA
    e24a985 View commit details

Commits on Apr 29, 2021

  1. fix(deps): Bump aws-xray-sdk from 2.6.0 to 2.8.0 (#413)

    Michael Brewer authored Apr 29, 2021
    Copy the full SHA
    48f86b3 View commit details

Commits on May 1, 2021

  1. Copy the full SHA
    51c4c2d View commit details

Commits on May 3, 2021

  1. Copy the full SHA
    daa35aa View commit details

Commits on May 4, 2021

  1. Copy the full SHA
    213caed View commit details
  2. Copy the full SHA
    59b3adf View commit details

Commits on May 5, 2021

  1. Copy the full SHA
    d1cd5cb View commit details
  2. fix(parser): Improve types for parser.py (#419)

    When attempting to use the parse function we noticed we were getting
    error messages like:
    
        Value of type variable "Model" of "parse" cannot be "Type[UserModel]"
    
    Further investigation (using the example shown at
    https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/parser/#envelopes)
    showed that the types were incorrect for the example. The function
    signatures were expecting an instance of `Model`, however the example
    (and code) seemeed to expect a `Type[Model]`.
    
    Similarly the signatures were expecting an optional instance of an
    Envelope, but the code allows for either an instance or a Type.
    
    Also, added a `TypeVar` for the decorator, specifying that the
    event_parser` decorator returns the same type as the handler used.
    
    Finally updated documentation on use of parser.
    carlos-alberto authored May 5, 2021
    Copy the full SHA
    d044463 View commit details

Commits on May 6, 2021

  1. feat(event-handle): allow for cors=None setting (#421)

    Michael Brewer authored May 6, 2021
    Copy the full SHA
    cbbcc4d View commit details
Showing 1,953 changed files with 138,729 additions and 15,347 deletions.
2 changes: 2 additions & 0 deletions .cfnlintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore_templates:
- examples/event_handler_appsync_events/sam/getting_started_with_appsync_events.yaml
67 changes: 67 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!-- changelog is partially generated, so it doesn't follow headings and required structure, so we disable it. -->
<!-- markdownlint-disable -->

{{ if .Versions -}}
<a name="unreleased"></a>
# Unreleased

{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
## {{ .Title }}

{{ range .Commits -}}
{{ if and (not (hasPrefix .Subject "changelog rebuild")) (not (hasPrefix .Subject "layer docs update")) (not (hasPrefix .Subject "bump version to")) -}}
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end -}}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
{{ range .CommitGroups -}}

## {{ .Title }}

{{ range .Commits -}}
{{ if and (not (hasPrefix .Subject "changelog rebuild")) (not (hasPrefix .Subject "layer docs update")) (not (hasPrefix .Subject "bump version to")) -}}
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end -}}
{{ end }}
{{ end -}}

{{- if .RevertCommits -}}
## Reverts
{{ range .RevertCommits -}}
* {{ .Revert.Header }}
{{ end }}
{{ end -}}

{{- if .MergeCommits -}}
## Pull Requests

{{ range .MergeCommits -}}
* {{ .Header }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
## {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}
{{ end -}}
37 changes: 37 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/aws-powertools/powertools-lambda-python
options:
commits:
filters:
Type:
- feat
- fix
- perf
- refactor
- docs
- chore
- revert
commit_groups:
title_maps:
feat: Features
fix: Bug Fixes
perf: Performance Improvements
refactor: Code Refactoring
docs: Documentation
chore: Maintenance
revert: Regression
header:
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
pattern_maps:
- Type
- Scope
- Subject
notes:
keywords:
- BREAKING CHANGE
# issues:
# prefix:
# - #
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -3,6 +3,11 @@ exclude = docs, .eggs, setup.py, example, .aws-sam, .git, dist, *.md, *.yaml, ex
ignore = E203, E266, W503, BLK100, W291, I004
max-line-length = 120
max-complexity = 15
; flake8-builtins isn't honouring inline ignore (A003)
per-file-ignores =
tests/e2e/utils/data_builder/__init__.py:F401
tests/e2e/utils/data_fetcher/__init__.py:F401
aws_lambda_powertools/utilities/data_classes/s3_event.py:A003

[isort]
multi_line_output = 3
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

* @aws-powertools/lambda-python-core
46 changes: 0 additions & 46 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

92 changes: 92 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Bug report
description: Report a reproducible bug to help us improve
title: "Bug: TITLE"
labels: ["bug", "triage"]
body:
- type: markdown
attributes:
value: |
Thank you for submitting a bug report. Please add as much information as possible to help us reproduce, and remove any potential sensitive data.
Please become familiar with [our definition of bug](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/MAINTAINERS.md#is-that-a-bug).
- type: textarea
id: expected_behaviour
attributes:
label: Expected Behaviour
description: Please share details on the behaviour you expected
validations:
required: true
- type: textarea
id: current_behaviour
attributes:
label: Current Behaviour
description: Please share details on the current issue
validations:
required: true
- type: textarea
id: code_snippet
attributes:
label: Code snippet
description: Please share a code snippet to help us reproduce the issue
render: python
validations:
required: true
- type: textarea
id: solution
attributes:
label: Possible Solution
description: If known, please suggest a potential resolution
validations:
required: false
- type: textarea
id: steps
attributes:
label: Steps to Reproduce
description: Please share how we might be able to reproduce this issue
validations:
required: true
- type: input
id: version
attributes:
label: Powertools for AWS Lambda (Python) version
placeholder: "latest, 1.25.6"
value: latest
validations:
required: true
- type: dropdown
id: runtime
attributes:
label: AWS Lambda function runtime
options:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
validations:
required: true
- type: dropdown
id: packaging
attributes:
label: Packaging format used
options:
- Lambda Layers
- Serverless Application Repository (SAR) App
- PyPi
multiple: true
validations:
required: true
- type: textarea
id: logs
attributes:
label: Debugging logs
description: If available, please share [debugging logs](https://docs.powertools.aws.dev/lambda/python/#debug-mode)
render: python
validations:
required: false
- type: markdown
attributes:
value: |
---
**Disclaimer**: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/aws-powertools/powertools-lambda-python/discussions/new
about: Ask a general question about Lambda Powertools
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/documentation-improvements.md

This file was deleted.

50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation_improvements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Documentation improvements
description: Suggest a documentation update to improve everyone's experience
title: "Docs: TITLE"
labels: ["documentation", "triage"]
body:
- type: markdown
attributes:
value: |
Thank you for helping us improve everyone's experience. We review documentation updates on a case by case basis.
- type: textarea
id: search_area
attributes:
label: What were you searching in the docs?
description: Please help us understand how you looked for information that was either unclear or not available
validations:
required: true
- type: input
id: area
attributes:
label: Is this related to an existing documentation section?
description: Please share a link, if applicable
validations:
required: false
- type: textarea
id: idea
attributes:
label: How can we improve?
description: Please share your thoughts on how we can improve this experience
validations:
required: true
- type: textarea
id: suggestion
attributes:
label: Got a suggestion in mind?
description: Please suggest a proposed update
validations:
required: false
- type: checkboxes
id: acknowledgment
attributes:
label: Acknowledgment
options:
- label: I understand the final update might be different from my proposed suggestion, or refused.
required: true
- type: markdown
attributes:
value: |
---
**Disclaimer**: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

Loading