Skip to content

Commit a4efc07

Browse files
committed
Add directions about re-reading state to coding standards
1 parent e15e70d commit a4efc07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CODING_STANDARDS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ This document outlines the coding standards and conventions used in the terrafor
3636
- Prefer using existing util functions over longer form, duplicated code:
3737
- `utils.IsKnown(val)` instead of `!val.IsNull() && !val.IsUnknown()`
3838
- `utils.ListTypeAs` instead of `val.ElementsAs` or similar for other collection types
39+
- The final state for a resource should be derived from a read request following a mutative request (eg create or update). We should not use the response from a mutative request to build the final resource state.
3940

4041
## Schema Definitions
4142

0 commit comments

Comments
 (0)