Skip to content

Chore/remove api mocks - part 1#344

Merged
isabeleliassen merged 6 commits intocsg-org:developmentfrom
InspiringApps:chore/remove-api-mocks
Dec 2, 2024
Merged

Chore/remove api mocks - part 1#344
isabeleliassen merged 6 commits intocsg-org:developmentfrom
InspiringApps:chore/remove-api-mocks

Conversation

@landonshumway-ia
Copy link
Collaborator

These mock resources were put in place during the initial POC of the project. We have since moved onto actual API endpoints, so this dead code can be removed from the project.

This must be done in two phases to deal with cross stack dependencies in CloudFormation. This PR is part one, removing
the resources from the API stack. Once this change has been deployed through ALL environments, the second phase will be implemented to remove all the mock S3 resources from the Persistent stack.

Requirements List

  • this will need to be deployed through all environments before the mock S3 resources can be cleaned up.

Description List

  • Removed /v0 endpoints from API
  • Removed /mock endpoints from API
  • Removed license-data lambda package
  • Removed delete-objects lambda package

Testing List

  • yarn test:unit:all should run without errors or warnings
  • yarn serve should run without errors or warnings
  • yarn build should run without errors or warnings
  • For API configuration changes: CDK tests added/updated in backend/compact-connect/tests/unit/test_api.py
  • Code review

Closes #110

Copy link
Contributor

@jusdino jusdino left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning house!

@landonshumway-ia
Copy link
Collaborator Author

@jlkravitz This is ready for CSG review. Thanks.

jlkravitz
jlkravitz previously approved these changes Nov 26, 2024
Copy link
Collaborator

@jlkravitz jlkravitz left a comment

Choose a reason for hiding this comment

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

@isabeleliassen Good to merge!

@isabeleliassen isabeleliassen self-requested a review November 26, 2024 13:56
isabeleliassen
isabeleliassen previously approved these changes Nov 26, 2024
This was causing deployment issues with
our lambdas that rely on the Authorize.net SDK
The 3.13 runtime was just released this week, so the
dependency mismatch will likely be resolved in the next
couple of months after the runtime has had time to stabilized
CDK has a limitation where if you attempt to remove all references to
a resource from another stack, CDK will attempt to remove the export
for that resource, which then fails because it sees there is still an
external dependency on that resource, creating a 'deadly embrace'
See aws/aws-cdk#12778.

The workaround for this is to set dummy export values to trick CDK
into keeping the unused exports around until you've deployed your
updates to the dependent stack.
@isabeleliassen isabeleliassen merged commit b246bb4 into csg-org:development Dec 2, 2024
@landonshumway-ia landonshumway-ia deleted the chore/remove-api-mocks branch December 2, 2024 15:02
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.

clean up mock endpoints

4 participants