Skip to content

ref(server): Remove legacy id fallback #800

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

Merged
merged 5 commits into from
Oct 9, 2020
Merged

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Oct 7, 2020

Since project states are cached by project keys, we no longer need the lookup from project key to project id for the legacy store endpoint. Instead, Relay can query for the key's project state directly and then use that for normalization.

Project IDs are now optional on both the project state and in RequestMeta. Event normalization then writes the project ID into the Envelope's DSN and into the event payload, after obtaining it from the project config endpoint.

Since proxy and static Relays do not obtain project configuration, they no longer support the legacy API endpoint.

@jan-auer jan-auer self-assigned this Oct 7, 2020
@jan-auer
Copy link
Member Author

jan-auer commented Oct 7, 2020

This is still incomplete and will result in wrong normalization. The current RequestMeta deserializer assumes a project ID of 0 in the DSN, which will cause the event to be rejected eventually. This still needs to be fixed.

@untitaker untitaker self-requested a review October 7, 2020 13:08
@jan-auer jan-auer marked this pull request as ready for review October 8, 2020 18:18
@jan-auer jan-auer requested a review from a team October 8, 2020 18:18
* master:
  fix: Update for Rust 1.47.0 (#801)
  feat: Basic metrics for minidump scrubbing (#798)
  test(quotas): Fix a flaky tests (#799)
@jan-auer jan-auer merged commit 549b60b into master Oct 9, 2020
@jan-auer jan-auer deleted the feat/remove-legacy-ids branch October 9, 2020 09:51
jan-auer added a commit that referenced this pull request Oct 9, 2020
* master:
  ref(server): Remove legacy id fallback (#800)
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.

3 participants