Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Avatar Loading Fail Fallback #8839

Merged
merged 2 commits into from
Sep 20, 2023
Merged

Avatar Loading Fail Fallback #8839

merged 2 commits into from
Sep 20, 2023

Conversation

HexaField
Copy link
Member

@HexaField HexaField commented Sep 19, 2023

Rework avatar loading to be safer by adding fallback to randomized avatars

Summary

🤖 Generated by Copilot at 57fb289

No summary available (Limit exceeded: required to process 53613 tokens, but only 50000 are allowed per call)

References

closes #8835

Explanation

🤖 Generated by Copilot at 57fb289

No walkthrough available (Limit exceeded: required to process 53613 tokens, but only 50000 are allowed per call)

🤖 Generated by Copilot at 273fe51

Sing, O Muse, of the mighty refactorings
That the skilled programmers wrought on the code
To improve the avatars of the users
And the state of the virtual world.

QA Steps

List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.

Checklist

  • If this PR is still a WIP, convert to a draft
  • When this PR is ready, mark it as "Ready for review"
  • ensure all checks pass
  • Changes have been manually QA'd
  • Changes reviewed by at least 2 approved reviewers

.service(userPath)
.patch(Engine.instance.userID, { avatarId: avatarId })
.then(() => {
dispatchAction(
Copy link
Member

Choose a reason for hiding this comment

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

I dont believe we really need both of these mechanisms. Can we just standardize on listenting for avatar id changes via the feather hooks?

Copy link
Member Author

Choose a reason for hiding this comment

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

this action is what drives our event sourcing, thus it must be persisted to our cached actions

Engine.instance.api
.service(avatarPath)
.get(state.avatarID.value)
.then((avatarDetails) => {
if (aborted) return
Copy link
Member

Choose a reason for hiding this comment

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

We should be passing down a AbortSignal all the way to the fetch() request, so that network requests can be cancelled when they are no longer necessary

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, can do in a follow up when we have better tooling

@HexaField HexaField merged commit 8199a85 into dev Sep 20, 2023
11 of 12 checks passed
@HexaField HexaField deleted the avatar-load-fail-fallback branch September 20, 2023 00:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]Scenes stopped loading when using the Alex avatar
3 participants