-
Notifications
You must be signed in to change notification settings - Fork 86
Document how to delete a bridge properly #65
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
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughDocumentation update in README.md adds clarifications about bridge deletion behavior: distinguishes Beeper client bridge removal from local database removal, instructs on using bbctl delete, notes default/local database paths and -l option implications, and warns of possible errors when re-adding self-hosted bridges due to prior Matrix room removals. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
README.md (3)
169-177: Clarify and tighten deletion behavior; use an admonition for the destructive caveat.Rephrase and format as a warning with concise bullets. This improves scannability and reduces ambiguity around non-default data dirs.
-Note that deleting a bridge through the Beeper client settings will -*not* delete the bridge database that is stored locally; you must -delete that yourself, or use `bbctl delete` instead. The bridge -databases are stored in `~/.local/share/bbctl/prod` by default. -However, note that if you use any option that causes the bridge -database to be stored in a separate location, such as `-l` which -stores it in the current working directory, then `bbctl delete` will -*not* delete the bridge database, and you will again have to delete it -manually. +> [!WARNING] +> Deleting a bridge in Beeper client settings does not remove any local bridge database. +> +> - Default location: `~/.local/share/bbctl/prod` +> - If you used `-l` (stores data in the current working directory) or configured a custom location, `bbctl delete` will not remove that database; delete it manually. +> +> To remove both server-side resources and local data (when using default locations for official bridges), prefer: `bbctl delete <name>`.
169-176: Verify flag/name accuracy and mention config reference.Please confirm the exact flag(s) that alter the data directory (only
-l, or also others like a config key). If applicable, add a pointer to~/.config/bbctl.jsonso users can confirm where their data lives.Apply this minimal tweak after confirming:
-If you used `-l` (stores data in the current working directory) or configured a custom location, `bbctl delete` will not remove that database; delete it manually. +If you used `-l` (stores data in the current working directory) or configured a custom location (see `~/.config/bbctl.json`), `bbctl delete` will not remove that database; delete it manually.
179-182: Add remediation guidance for re-adding bridges to avoid stale room membership errors.Offer an explicit next step so users know how to proceed safely.
-If you later re-add a self-hosted bridge after deleting it but not -deleting the local database, you should expect errors, as the bridge -will have been removed from Matrix rooms that it thinks it is a member -of. +If you later re-add a self-hosted bridge after deleting it but not deleting the local database, you should expect errors, as the bridge will have been removed from Matrix rooms that it thinks it is a member of. To avoid this, delete the local database first (or use `bbctl delete <name>` when applicable) before re-adding the bridge.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
README.md(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: deploy-docker
- GitHub Check: build-docker (arm64)
No description provided.