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
## Why
"Refresh" has more meaning in terraform, which is not just read but
update local state with new information. We don't do that and this
method is simply a wrapper for read/get.
Calling it "DoRead" completes CRUD, given that we already have DoCreate,
DoUpdate, DoDelete.
Copy file name to clipboardExpand all lines: bundle/direct/dresources/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
- Each Create/Update/Delete method should correspond to one API call. We persist state right after, so there is minimum chance of having orphaned resources.
10
10
- The logic what kind of update it is should be in FieldTriggers / ClassifyChange methods. The methods performing update should not have logic in them on what method to call.
11
11
- Create/Update/Delete methods should not need to read any state. (We can implement support for passing remoteState we already to these methods if such need arises though).
12
-
- Prefer “with refresh” variants of methods if resource API supports that. That avoids explicit DoRefresh() call.
12
+
- Prefer “with refresh” variants of methods if resource API supports that. That avoids explicit DoRead() call.
13
13
14
14
Nice to have
15
15
- Add link to corresponding API documentation before each method.
0 commit comments