-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Make overwritable
experimental behind a cargo feature
#160
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
|
||
|
||
|
||
<!-- Please keep this note for the community at the end of the issue --> | ||
|
||
### A note for the community from the maintainers | ||
|
||
Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to help the maintainers with prioritizing it. You may add a comment describing your real use case related to this issue for us to better understand the problem domain. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,35 @@ | ||
# umami backend | ||
|
||
This directory contains the deployment code for our [umami](https://umami.is/) backend used for collecting anonymous statics about the usage of our documentation website. The code for this lives here in the open for the sake of transparency and sharing (in case if you want to self-host your own umami instance on Hetzner). | ||
This directory contains the deployment code for our [umami](https://umami.is/) backend, used for collecting anonymous statistics about the usage of our documentation website. This code lives here in the open for the sake of transparency and sharing (in case if you want to self-host your own umami instance on Hetzner). | ||
|
||
It is a simple Hetzner VPS that runs a docker-compose cluster with the umami service and Postgres. The data is stored on a separate volume. The server is allocated a static IPv4. | ||
|
||
## Deployment | ||
|
||
Prerequisites: | ||
- [Terraform CLI](https://developer.hashicorp.com/terraform/install) | ||
- [Account at hetzner.com/cloud](https://hetzner.com/cloud) | ||
|
||
Create a `terraform.tfvars` file in this directory. Here is an example below, make sure to replace all `{...}` placeholders with your values. | ||
|
||
```tf | ||
hcloud_token = "{token_value}" | ||
|
||
allowed_ssh_ips = ["{your_ip_here}/32"] | ||
|
||
pg_password = "{pg_password_value}" | ||
|
||
umami_app_secret = "{umami_app_secret_value}" | ||
``` | ||
|
||
Initialize terraform plugin directory and modules: | ||
|
||
```bash | ||
terraform init | ||
``` | ||
|
||
Run the deployment: | ||
|
||
```bash | ||
terraform apply | ||
``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Codebase verification
Documentation reference in comment is misleading
The comment states "See the docs on this feature in the
bon
's crateCargo.toml
", but thebon
crate's Cargo.toml only contains the feature declaration without any documentation. The feature is used in the codebase:bon-macros/Cargo.toml
bon/Cargo.toml
for feature forwardingbon-macros/src/builder/builder_gen/
filesConsider either:
bon/Cargo.toml
🔗 Analysis chain
LGTM! Feature flag implementation looks correct.
The implementation of the
experimental-overwritable
feature flag follows Rust's best practices:Let's verify the feature documentation reference:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 111
Script:
Length of output: 1330
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.
The file
bon/Cargo.toml
contains the feature declaration as well, and it contains an extensive comment that documents that feature right on top of the feature declarationThere 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.
@Veetaha, thank you for the clarification. I see that the
bon/Cargo.toml
file does contain extensive documentation for theexperimental-overwritable
feature as you mentioned. I've noted this information for future reviews.(・ω・)ゞ
✏️ Learnings added