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
fix: prevent duplicate set element error in project data source
The GET /workspaces API call is ordered by run.created-at.
It's possible that between retrieving the first page, and the next page
that a workspace will appear on both pages.
This then ultimately causes a 'Duplicate Set Element' error
in the TF plan.
This fix converts storing the API response as 2 lists to a single
map, with the key being the workspace ID ensuring we overwrite any
duplicates.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
## Unreleased
2
2
3
3
BUG FIXES:
4
+
4
5
*`r/tfe_notification_configuration`: update url attribute to be sensitive, by @jillirami[#1799](https://github.com/hashicorp/terraform-provider-tfe/pull/1799)
6
+
*`d/tfe_project`: fixes: 'duplicate set element' error, as pagination ordering is not guaranteed, by @lewis-catley[#1817](https://github.com/hashicorp/terraform-provider-tfe/pull/1817)
0 commit comments