Skip to content

Conversation

@igorlg
Copy link
Contributor

@igorlg igorlg commented Sep 11, 2023

Summary

Changes

  • chore: renamed stack file for unicorn_shared
  • fix: update Stage name in shared stack
  • chore: reformat StateMachine ASL file
  • test: add tracer and logger output on propertes_approval_sync_function methods
  • chore: lint Python files
  • chore: reorder ENV vars; make LambdaContext mock generic to fit all functions
  • chore: remove unused code and forgotten comments

Checklist

Please leave checklist items unchecked if they do not apply to your change.

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@igorlg igorlg requested a review from a team as a code owner September 11, 2023 09:59
@github-actions
Copy link

No related issues found. Please ensure there is an open issue related to this change to avoid significant delays or closure.

@github-actions github-actions bot added do-not-merge PRs that are blocked for varying reasons need-issue PR is missing a related issue for tracking change labels Sep 11, 2023
@igorlg igorlg merged commit 89019c5 into v2 Sep 11, 2023
@igorlg igorlg deleted the lint-code branch September 11, 2023 10:01
@github-actions
Copy link

undefined No related issues found. Please ensure 'pending-release' label is applied before releasing.

sliedig pushed a commit to sliedig/aws-serverless-developer-experience-workshop-python that referenced this pull request Sep 12, 2023
* chore: remove unused code and forgotten comments

* chore: reorder ENV vars; make LambdaContext mock generic to fit all functions

* chore: lint Python files

* test: add tracer and logger output on propertes_approval_sync_function methods

* chore: reformat StateMachine ASL file

* fix: update Stage name in shared stack

* chore: renamed stack file for unicorn_shared
igorlg added a commit that referenced this pull request Sep 14, 2023
* chore: Converted SAM Config file from TOML to YAML using samp-cli

* feat: Updated template for new Contracts service implementation model

* chore: add API contract

* chore: Refactored integration tests

* chore: Updated unit tests, et al

* feat: Add EB Pipes

* bug: remove file added by mistake

* feat: Refactored unicorn_web

* chore: Implemented final Unit tests for unicorn_contracts

* test: Fixed all unit, integration and Curl tests for unicorn_contracts

* chore: add missing licensing header

* chore: typos and file styling

* fix: remote unused test file, fixed naming convention of subscriber EB Policy

* chore: remove unused coverage file

* feat: Updated unicorn_web to v2 architecture, implemented integration and Curl tests

* fix: remove curl-test from make test alias

* chore: remove unused swagger-cli from make build

* chore: Update Python dependencies on unicorn_properties

* chore: remove Coverage config, add Integration tests to pyproject in unicorn_properties

* chore: replace samconfig file from TOML to YAML

* feat: Add EventBridge subscribers and subscription rules to unicorn_properties

* chore: move state machine definition out of src/ to match across runtimes

* chore: update template section name comments

* chore: update cfn-lint ignored rules

* chore: linted/inlined intrinsic functions for better readability

* feat: add local EB bus to unicorn_properties, replace hard-coded service namespace with mapped constant

* feat: add EB SSM Params to unicorn_properties

* chore: add missing DDB permissions, remove unused SQS permission from unicorn_properties lambda functions

* chore: lint unicorn_properties template, change EB trigger rule for ContractStatusChangedFunction

* chore: fix EventBus name, lint JSON files in unicorn_properties eventbridge event payloads

* chore: replace hardcoded stack name from Makefile with YQ command to read from samconfig

* chore: lint and document Makefile stage groups

* test: add Integration tests scaffold

* chore: Add SAM validate to Makefile build stage

* chore: remove unecessary SAM command line argument from build stage - settings are enforced in samconfig.yaml

* chore: lint JSON files, remove unused JSON event payloads

* bug: fix EB catch-all rule pattern match, add naming to EB catch-all CW Logs group, removed unused cfn-lint ignore rule

* feat: Split event schemas and registry to each service

* chore: Add license header to state_machine definition

* fix: moved schema for PublicationEvaluationCompleted event from unicorn_web to unicorn_properties

* chore: minor changes to templates

* fix: renamed unicorn_web namespace in unicorn_properties schema library

* refactor: extracted property_id parsing into its own method

* refactor: removed DB update stage from approval function, and removed PENDING state from flow

* feat: Split event schemas and registry to each service

* chore: Add license header to state_machine definition

* fix: moved schema for PublicationEvaluationCompleted event from unicorn_web to unicorn_properties

* fix: renamed unicorn_web namespace in unicorn_properties schema library

* refactor: extracted property_id parsing into its own method

* refactor: removed DB update stage from approval function, and removed PENDING state from flow

* feat: updating Stage values to lowercase;
updating stage references and parameters;
sync with dotnet

* chore: Fix naming structures, move ServiceNamespace SSM param to SharedInfra

* feat: Add shared stack to Python implementation

* bug: Fix catch-all rule from each service to match events from every service source

* chore: remove top-level section comments from templates

* chore: update Python dependencies

* chore: remove unused PyTest Coverage tool

* chore: fix typos and misnomers in template comments

* chore: add description comments to template resources

* chore: add comments to resources and cfn-lint rules in template.yaml

* chore: reordered resources in template.yaml to improve readability

* chore: removed unused outputs

* chore: lambda function outputs - added ARN output, renamed Name output

* chore: reordered and fixed StateMachine policy templates

* chore: Uncommented StateMachine event trigger, as dependency with unicorn_web Namespace SSM param was removed

* chore: add missing Outputs for CatchAll CW Logs group

* chore: add missing OnFailure SQS destination

* bug: replaces status=NEW for PENDING on test DDB items, as per new architecture

* chore: remove commented-out Event payload

* chore: minor changes to template formatting (#39)

* chore: minor changes to template formatting

* chore: additional template updates and changes to subscriptions

* chore: additional template updates and changes to subscriptions

* fix: updated rule name

* fix: updated rule names

* update dependencies (#41)

* chore: update Python dependency versions

* chore: lint pyproject files, fix typo in description

* chore: bump code version in pyproject to match v2 tag

* test: reorganised test events, refactored unit tests

* nested stacks (#42)

* refactor: Moved each services ancillary stacks to be nested inside template.yaml, to simplify CI/CD deployment

* chore: fix template.yaml linting

* test: add outputs that help with integration tests

* chore: add description and comments to template.yaml sections

* fix: typo in SAM policy template usage

* test: reorganised test events, refactored unit tests

* Lint code (#43)

* chore: remove unused code and forgotten comments

* chore: reorder ENV vars; make LambdaContext mock generic to fit all functions

* chore: lint Python files

* test: add tracer and logger output on propertes_approval_sync_function methods

* chore: reformat StateMachine ASL file

* fix: update Stage name in shared stack

* chore: renamed stack file for unicorn_shared

* contract -> contracts

* contract->contracts tests

* test: remove partially-implemented Integration tests

* chore: Bring files inline with Dotnet, Java and Typescript

* test: fixing EventBus name in PublicationEvaluationCompleted event payload of unicorn_web

* bug: wrong Event source filter parameter in unicorn_web subscriptions

* chore: add log statements in unicorn_web's request_approval_function for publish_event

* bug: remove message attribute HttpMethod filter

* bug: unicorn_web requestApproval should only filter out properties in APPROVED state

* refactor: add schema package to pyproject

* chore: add missing global env var to unicorn_web, to bring it inline with other languages

* bug: wrong parameter being used for unicorn_web's PublicationApprovedEventHandlerFunction

* refactor: change CodeUri of all Lambda functions in unicorn_web to be src/. This is to fix Pythons import paths

* docs: add API Gateway CW Logs group tag

---------

Co-authored-by: Stephen Liedig <sliedig@amazon.com>
Co-authored-by: Kevin Chan <kevinwochan@gmail.com>
Co-authored-by: kechn <kechn@amazon.com>
sliedig added a commit that referenced this pull request Nov 7, 2025
* chore: Converted SAM Config file from TOML to YAML using samp-cli

* feat: Updated template for new Contracts service implementation model

* chore: add API contract

* chore: Refactored integration tests

* chore: Updated unit tests, et al

* feat: Add EB Pipes

* bug: remove file added by mistake

* feat: Refactored unicorn_web

* chore: Implemented final Unit tests for unicorn_contracts

* test: Fixed all unit, integration and Curl tests for unicorn_contracts

* chore: add missing licensing header

* chore: typos and file styling

* fix: remote unused test file, fixed naming convention of subscriber EB Policy

* chore: remove unused coverage file

* feat: Updated unicorn_web to v2 architecture, implemented integration and Curl tests

* fix: remove curl-test from make test alias

* chore: remove unused swagger-cli from make build

* chore: Update Python dependencies on unicorn_properties

* chore: remove Coverage config, add Integration tests to pyproject in unicorn_properties

* chore: replace samconfig file from TOML to YAML

* feat: Add EventBridge subscribers and subscription rules to unicorn_properties

* chore: move state machine definition out of src/ to match across runtimes

* chore: update template section name comments

* chore: update cfn-lint ignored rules

* chore: linted/inlined intrinsic functions for better readability

* feat: add local EB bus to unicorn_properties, replace hard-coded service namespace with mapped constant

* feat: add EB SSM Params to unicorn_properties

* chore: add missing DDB permissions, remove unused SQS permission from unicorn_properties lambda functions

* chore: lint unicorn_properties template, change EB trigger rule for ContractStatusChangedFunction

* chore: fix EventBus name, lint JSON files in unicorn_properties eventbridge event payloads

* chore: replace hardcoded stack name from Makefile with YQ command to read from samconfig

* chore: lint and document Makefile stage groups

* test: add Integration tests scaffold

* chore: Add SAM validate to Makefile build stage

* chore: remove unecessary SAM command line argument from build stage - settings are enforced in samconfig.yaml

* chore: lint JSON files, remove unused JSON event payloads

* bug: fix EB catch-all rule pattern match, add naming to EB catch-all CW Logs group, removed unused cfn-lint ignore rule

* feat: Split event schemas and registry to each service

* chore: Add license header to state_machine definition

* fix: moved schema for PublicationEvaluationCompleted event from unicorn_web to unicorn_properties

* chore: minor changes to templates

* fix: renamed unicorn_web namespace in unicorn_properties schema library

* refactor: extracted property_id parsing into its own method

* refactor: removed DB update stage from approval function, and removed PENDING state from flow

* feat: Split event schemas and registry to each service

* chore: Add license header to state_machine definition

* fix: moved schema for PublicationEvaluationCompleted event from unicorn_web to unicorn_properties

* fix: renamed unicorn_web namespace in unicorn_properties schema library

* refactor: extracted property_id parsing into its own method

* refactor: removed DB update stage from approval function, and removed PENDING state from flow

* feat: updating Stage values to lowercase;
updating stage references and parameters;
sync with dotnet

* chore: Fix naming structures, move ServiceNamespace SSM param to SharedInfra

* feat: Add shared stack to Python implementation

* bug: Fix catch-all rule from each service to match events from every service source

* chore: remove top-level section comments from templates

* chore: update Python dependencies

* chore: remove unused PyTest Coverage tool

* chore: fix typos and misnomers in template comments

* chore: add description comments to template resources

* chore: add comments to resources and cfn-lint rules in template.yaml

* chore: reordered resources in template.yaml to improve readability

* chore: removed unused outputs

* chore: lambda function outputs - added ARN output, renamed Name output

* chore: reordered and fixed StateMachine policy templates

* chore: Uncommented StateMachine event trigger, as dependency with unicorn_web Namespace SSM param was removed

* chore: add missing Outputs for CatchAll CW Logs group

* chore: add missing OnFailure SQS destination

* bug: replaces status=NEW for PENDING on test DDB items, as per new architecture

* chore: remove commented-out Event payload

* chore: minor changes to template formatting (#39)

* chore: minor changes to template formatting

* chore: additional template updates and changes to subscriptions

* chore: additional template updates and changes to subscriptions

* fix: updated rule name

* fix: updated rule names

* update dependencies (#41)

* chore: update Python dependency versions

* chore: lint pyproject files, fix typo in description

* chore: bump code version in pyproject to match v2 tag

* test: reorganised test events, refactored unit tests

* nested stacks (#42)

* refactor: Moved each services ancillary stacks to be nested inside template.yaml, to simplify CI/CD deployment

* chore: fix template.yaml linting

* test: add outputs that help with integration tests

* chore: add description and comments to template.yaml sections

* fix: typo in SAM policy template usage

* test: reorganised test events, refactored unit tests

* Lint code (#43)

* chore: remove unused code and forgotten comments

* chore: reorder ENV vars; make LambdaContext mock generic to fit all functions

* chore: lint Python files

* test: add tracer and logger output on propertes_approval_sync_function methods

* chore: reformat StateMachine ASL file

* fix: update Stage name in shared stack

* chore: renamed stack file for unicorn_shared

* contract -> contracts

* contract->contracts tests

* test: remove partially-implemented Integration tests

* chore: Bring files inline with Dotnet, Java and Typescript

* test: fixing EventBus name in PublicationEvaluationCompleted event payload of unicorn_web

* bug: wrong Event source filter parameter in unicorn_web subscriptions

* chore: add log statements in unicorn_web's request_approval_function for publish_event

* bug: remove message attribute HttpMethod filter

* bug: unicorn_web requestApproval should only filter out properties in APPROVED state

* refactor: add schema package to pyproject

* chore: add missing global env var to unicorn_web, to bring it inline with other languages

* bug: wrong parameter being used for unicorn_web's PublicationApprovedEventHandlerFunction

* refactor: change CodeUri of all Lambda functions in unicorn_web to be src/. This is to fix Pythons import paths

* docs: add API Gateway CW Logs group tag

---------

Co-authored-by: Stephen Liedig <sliedig@amazon.com>
Co-authored-by: Kevin Chan <kevinwochan@gmail.com>
Co-authored-by: kechn <kechn@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge PRs that are blocked for varying reasons need-issue PR is missing a related issue for tracking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant