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

Refactor background jobs #996

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

bfollington
Copy link
Collaborator

@bfollington bfollington commented Nov 13, 2023

Fixes #658
Fixes #938

TODO

  • Do not start indexing if we are already indexing
  • indicate indexing status next to each peer as well as resolution status
    • Move resolution state to AppModel

@bfollington bfollington force-pushed the 2023-11-13-background-jobs branch from d37f015 to a23615c Compare November 13, 2023 03:31
bfollington added a commit that referenced this pull request Nov 14, 2023
…#990)

Improves #989
Fixes #946
Fixes #977

This PR remodels the follow/unfollow/rename operations and refresh
lifecycle. It also introduces support for indexing multiple peers that
point to the same DID.


https://github.com/subconsciousnetwork/subconscious/assets/5009316/58541708-99e1-4975-b2c1-97f079c0c66b

I intend to refactor the "wait for petname resolution" logic and
background jobs in general as a follow up in
#996

# Tasks
- [x] Fix edgecase with alias rendering
- [x] Index peers by petname rather than DID
- [x] Move all follow/unfollow/rename communication to app root
- [x] Allow refreshing profile while displaying existing loaded content
- [x] Allow omnibar animation to start and stop multiple times
- [x] Refresh profile immediately after follow / unfollow
- [x] Kick off resolution immediately after rename
- [x] Kick off re-index immediately after follow / unfollow / resolve /
rename
- [x] Trigger toast notifications for follow / unfollow / rename
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spinner is missing from "pending" user resolution state Track state of background jobs in the model
1 participant