Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

feat: update sync workflow to line up with metal-go #105

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

ctreatma
Copy link
Contributor

The updated sync workflow performs spec fetching, spec patching, and code generation as separate steps. This enables the workflow to open a draft PR if some of those steps fail so that any issues that come up during sync can be addressed with fewer manual steps.

@@ -1880,7 +1880,7 @@ public okhttp3.Call findOrganizationDevicesCall(UUID id, List<String> categories
Map<String, Object> localVarFormParams = new HashMap<String, Object>();

if (categories != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "categories", categories));
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "categories", categories));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As part of upgrading the sync job, I made the call to remove the spec stitching step from this repo, the same way we did for metal-go. The stitching step appears to introduce incorrect behavior for URL parameters; the API expects things like include=thing1,thing2 (which corresponds to the "csv" format mentioned on this line) and does not handle include=thing1&include=thing2 (which corresponds to the "multi" format in the old code).

ctreatma and others added 2 commits July 24, 2023 09:55
The updated sync workflow performs spec fetching, spec patching, and
code generation as separate steps.  This enables the workflow to open
a draft PR if some of those steps fail so that any issues that come
up during sync can be addressed with fewer manual steps.
@ctreatma ctreatma force-pushed the upgrade-sync-workflow branch from 1d5fe99 to 9cec2df Compare July 24, 2023 14:55
@ctreatma ctreatma merged commit 9a37829 into main Jul 27, 2023
@ctreatma ctreatma deleted the upgrade-sync-workflow branch July 27, 2023 15:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant