-
Notifications
You must be signed in to change notification settings - Fork 33
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
fix: config store documentation fix (#1160) #1161
Conversation
@@ -41,7 +41,7 @@ Dynamic backends are a compute feature that allow services to define backends fo | |||
|
|||
When dynamic backends are enabled at the service level, the explicit `backend` option is no longer required for `fetch()` requests, and will instead be automatically created. | |||
|
|||
In addition, custom backend confiuration options can then also be provided through the [`Backend()`](../fastly:backend/Backend/Backend.mdx) constructor. |
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.
@gaylin is this worth a docs bug bounty? 😄
The breadcrumbs start here fastly documentation before going to the SDK Reference
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.
Sadly, no. It's not a typo just a mistake. :) But with that said, we officially will make you an honorary tech writer for a day. <3
@@ -23,7 +23,7 @@ new ConfigStore(name); | |||
### Parameters | |||
|
|||
- `name` _: string_ | |||
- The name of the [Fastly Edge Dictionary](https://docs.fastly.com/en/guides/about-edge-dictionaries) that this `ConfigStore` instance should provide access to. | |||
- The name of the [Fastly Edge ConfigStore](https://www.fastly.com/documentation/reference/api/services/resources/config-store/) that this `ConfigStore` instance should provide access to. |
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.
Guess what you've stepped into without realizing it... :-)
As we're discussing in another thread right now, this is incorrect, as the name provided to the constructor must be the name of the service's resource link which links to the Config Store, not the name of the Config Store itself. This is also true for KV Stores and Secret Stores, so whatever language we come up with to address that here should be applied to those resource types too.
- The name of the [Fastly Edge ConfigStore](https://www.fastly.com/documentation/reference/api/services/resources/config-store/) that this `ConfigStore` instance should provide access to. | |
- The name of the [Fastly Config Store](https://www.fastly.com/documentation/reference/api/services/resources/config-store/) that this `ConfigStore` instance should provide access to. |
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.
So we can either change the wording and drop a breakcrumb so it eventually goes to the source.
The name provided must be the service's resource link [name](https://www.fastly.com/documentation/guides/concepts/edge-state/dynamic-config/#config-stores).
or
Add a note
Note The name is the service's resource link name which links to the Config Store, not the name of the Config Store itself.
I prefer the first but I'll include either in the other resources docs as well, what do you think?
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.
I'll defer to @gaylin for that one.
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.
@dbarshop , could you weigh in here please on the terminology that you've worked out with Eng and Legal in the past?
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.
(commenting here to subscribe to the thread and see the outcome for the Rust SDK as well)
This PR will also need to update the documentation for the |
updated in 38d3335 |
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.
With the last two changes I've suggested I'm good with this.
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.
A few non-blocking copyedits!
Co-authored-by: Kevin P. Fleming <[email protected]>
Co-authored-by: Kevin P. Fleming <[email protected]>
Co-authored-by: Kevin P. Fleming <[email protected]>
Co-authored-by: Deanna Barshop <[email protected]>
Co-authored-by: Deanna Barshop <[email protected]>
Co-authored-by: Deanna Barshop <[email protected]>
Co-authored-by: Deanna Barshop <[email protected]>
65ae1f7
to
55374c6
Compare
#1160