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

WIP make computeds run all the time #1343

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

lukemelia
Copy link
Contributor

  • make computeds run all the time by updating getter
  • make relationshipMeta always return a descriptive value, and make field accessor never throw NotLoaded

Note from LM: The issue I have run into is that if the field accessor doesn't throw, there is no way for the indexer to wait for the card to be fully loaded (currently we are catching NotLoaded errors when attempting to render a card for indexing)

ef4: makes sense. we can make the relationship loading process register itself somehow. It's not unlike test waiters or fastboot deferred.

@lukemelia lukemelia added the wip label Jun 11, 2024
@lukemelia lukemelia marked this pull request as draft June 11, 2024 13:58
@lukemelia lukemelia changed the title WIP WIP make computeds run all the time Jun 11, 2024
Copy link

Host Test Results

    1 files  ±0      1 suites  ±0   13m 19s ⏱️ -1s
620 tests ±0  596 ✔️  - 20  4 💤 ±0    0 ±  0  20 🔥 +20 
625 runs  ±0  581 ✔️  - 40  4 💤 ±0  20 +20  20 🔥 +20 

For more details on these errors, see this check.

Results for commit fbc6e48. ± Comparison against base commit 8e1fe92.

- [ ] make computeds run all the time by updating getter
- [ ] make relationshipMeta always return a descriptive value, and make field accessor never throw NotLoaded

Note from LM: The issue I have run into is that if the field accessor doesn't throw, there is no way for the indexer to wait for the card to be fully loaded (currently we are catching NotLoaded errors when attempting to render a card for indexing)

ef4: makes sense. we can make the relationship loading process register itself somehow. It's not unlike test waiters or fastboot deferred.
@lukemelia lukemelia force-pushed the compute-every-time branch from fbc6e48 to 1c9e54d Compare June 11, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant