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

lambda_manager: revamp function parsing error handling #8406

Merged
merged 2 commits into from
Sep 6, 2024

Commits on Sep 5, 2024

  1. lambda_manager: revamp function parsing error handling

    This has several goals:
    
    * Remove `LambdaType.UNKNOWN`. Functions with this non-type are useless
      and should not be presented to the user.
    
    * Don't return 404 from the list endpoint if one function cannot be loaded.
      This prevents one bad function from essentially disabling the entire
      serverless function feature. Instead, log the error and ignore the
      function.
    
    * Don't return 404 from other endpoints either when the problem is a bad
      function. This is not a client problem. Raise an exception and let Django
      log it and return a 500.
    
    * Remove HTTP codes from `LambdaFunction`, to improve separation of
      concerns.
    SpecLad committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    746c49a View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Update tests

    SpecLad committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    e588def View commit details
    Browse the repository at this point in the history