You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CODING_STANDARDS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ This document outlines the coding standards and conventions used in the terrafor
36
36
- Prefer using existing util functions over longer form, duplicated code:
37
37
-`utils.IsKnown(val)` instead of `!val.IsNull() && !val.IsUnknown()`
38
38
-`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.
0 commit comments