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(persons): Display error when person API fails #24220

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

webjunkie
Copy link
Contributor

@webjunkie webjunkie commented Aug 6, 2024

Problem

If person API responds with an error, the page shows 404

Fixes #23671

Changes

It would be nice to get the failure state in KEA for all loaders in general, but to quick fix it I'm using the loadPersonFailure to get the error.

How did you test this code?

Tested locally with simulated error from backend.

Copy link
Contributor

github-actions bot commented Aug 6, 2024

Size Change: 0 B

Total Size: 1.07 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.07 MB

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@webjunkie webjunkie force-pushed the fix/person-detail-error branch from 499c0d8 to c3fce78 Compare August 6, 2024 14:26
@webjunkie webjunkie requested review from thmsobrmlr and aspicer August 6, 2024 14:26
@thmsobrmlr
Copy link
Contributor

Related PR adding an error reducer to kea-loaders: keajs/kea-loaders#26

@thmsobrmlr thmsobrmlr merged commit 9481490 into master Aug 7, 2024
187 checks passed
@thmsobrmlr thmsobrmlr deleted the fix/person-detail-error branch August 7, 2024 10:40
silentninja pushed a commit to silentninja/posthog that referenced this pull request Aug 8, 2024
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.

Display errors on the persons page as errors, not 404s
3 participants