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

Appview v1 generating and ingesting mute ops w/ bsync #2067

Merged
merged 7 commits into from
Jan 22, 2024

Conversation

devinivy
Copy link
Collaborator

@devinivy devinivy commented Jan 21, 2024

Two main changes here:

  • allow appview frontends to push mute ops to bsync. Depending on the configuration, the appview frontends might write only to the db locally, only to bsync, or both.
  • allow appview ingester to consume and index mute ops from bsync.

Along the way I got bsync setup in the dev-env package, and made a small change to the convention for where built protos are written (now built into the package's src/protos/ rather than the more ambiguous src/gen/).

subject: subjectDid,
})
} catch (err) {
req.log.warn(err, 'failed to sync mute op to bsync')
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think we wanna throw here if bsyncOnlyMutes is true because then the operation failed

if it's false then it was partially applied but presumably the local db is considered the canonical state?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep 💯 thanks for nabbing that.

Copy link
Collaborator

@dholms dholms left a comment

Choose a reason for hiding this comment

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

looks good 👌

just the open question on error handling

@devinivy devinivy merged commit d108310 into main Jan 22, 2024
11 checks passed
@devinivy devinivy deleted the appview-v1-sync-mutes branch January 22, 2024 20:48
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.

2 participants