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

fix(server): Skip invalid project keys in batch request [INGEST-406] #1093

Merged
merged 6 commits into from
Sep 28, 2021

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Sep 28, 2021

Instead of failing a project config batch request during deserialization, skip invalid keys and serve valid ones. The downstream Relay assumes missing responses as ProjectState::missing. This is done here by creating a None entry, and then setting it to missing here.

@jan-auer jan-auer self-assigned this Sep 28, 2021
@jan-auer jan-auer marked this pull request as ready for review September 28, 2021 14:33
@jan-auer jan-auer requested a review from a team September 28, 2021 14:33
mini_sentry.add_basic_project_config(42)
public_key = mini_sentry.get_dsn_public_key(42)

body = json.dumps({"public_keys": ["broken", public_key]})
Copy link
Member

Choose a reason for hiding this comment

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

should parametrize over all values that we discussed in FMEA

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks. Added everything except:

  • encoding, which we ruled out as a non issue
  • large strings, as this is handled by store body as an independent concern

@jan-auer jan-auer enabled auto-merge (squash) September 28, 2021 20:43
@jan-auer jan-auer merged commit b6bc62d into master Sep 28, 2021
@jan-auer jan-auer deleted the fix/ingest-406-independent-project-keys branch September 28, 2021 20:54
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.

2 participants