-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Standardize id
formats and make it a useful value
#1927
Comments
Just talked to @rileykarson about this, and a future world might end up going the exact opposite of this, where we use ID as the field to interpolate on for references to other resources, basically always. That becomes tricky for resources where, some things want different formats, but we might be able to get it working for most cases and document when it doesn't. What we don't want, though, is a world where you sometimes use the id. This issue still holds for now, but loosely. |
Let's thing about this more when we get closer to |
Assigning this to myself to follow up with the core team about what rules exist around IDs that we need to make sure to follow. |
So I followed up with the core team, and it sounds like we can treat the ID field as a normal field, with these caveats:
|
Leaving this issue assigned to me until we can set a new owner for it tomorrow (that owner may still end up being me, but let's at least talk about it.) |
id
formats and make it a useful value
@slevenick: Updated the title to reflect reality, feel free to change it if I've got it wrong or you've got a better idea 🙂 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
We have a bunch of examples and tests that depend on the ID field, but we don't want our users to have to know the format of that field, and we want the ability to change that format at will. This issue entails making sure that every test and documentation example that relies on the id of a resource no longer does that, potentially adding new fields to existing resources that represent what we currently store as the id.
The text was updated successfully, but these errors were encountered: