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

H-3852: Don't crash entities table if an entity's owner is missing #5983

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

CiaranMn
Copy link
Member

@CiaranMn CiaranMn commented Dec 20, 2024

🌟 What is the purpose of this PR?

The entities table currently crashes if it loads an entity where the User or Org owner can't be found. It shouldn't be the case that the User/Org can't be found, but if it does (as has happened due to a past issue when creating a user), we shouldn't crash the page, but instead have some fallback.

This PR does that.

Pre-Merge Checklist 🚀

🚢 Has this modified a publishable library?

This PR:

  • does not modify any publishable blocks or libraries, or modifications do not need publishing

📜 Does this require a change to the docs?

The changes in this PR:

  • are internal and do not require a docs change

🕸️ Does this require a change to the Turbo Graph?

The changes in this PR:

  • do not affect the execution graph

🐾 Next steps

H-3851: We should make the user (and org) creation process better in rolling back things it has done if some subsequent step changes.

❓ How to test this?

  1. View /entities in the preview deployment, switch to viewing all global entities. It should not crash (check against prod) – https://hash-bhur9o6re.stage.hash.ai/entities

@vilkinsons vilkinsons added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit 9d05585 Dec 20, 2024
33 checks passed
@vilkinsons vilkinsons deleted the cm/dont-crash-entities-table-on-missing-owner branch December 20, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/apps > hash* Affects HASH (a `hash-*` app) area/apps type/eng > frontend Owned by the @frontend team
Development

Successfully merging this pull request may close these issues.

2 participants