Commit bfecf7f
[DCM-16244]: Fix Postman API sync failure for eSign collection (#181)
## Summary
Add an opt-in preprocessing step to the shared Postman sync workflow to strip nested `id` fields before uploading a collection, and enable it only for the eSign collection.
## Background
The shared `sync-postman-collection.yml` workflow was working for other collections such as Admin, but eSign collection updates were consistently failing through Postman API with an internal server error.
During debugging:
- The same shared workflow worked for other collections.
- The same API key and request pattern worked for non-eSign collections.
- eSign collection could still be imported successfully through Postman UI.
- eSign updates failed specifically through the API path.
- Additional narrowing suggested the issue was related to content within the eSign payload rather than the wrapper logic itself.
Based on the investigation, stripping nested `id` fields from the collection JSON before upload resolves the API update issue for eSign.
## Changes made
### Shared workflow
Updated `.github/workflows/sync-postman-collection.yml` to support a new optional input:
- `strip-item-ids` (boolean, default: `false`)
When enabled, the workflow:
1. Reads the collection JSON from the repository
2. Removes all nested `id` fields using `jq`
3. Wraps the processed JSON in the Postman API request format:
```json
{ "collection": ... }
Co-authored-by: Mudit Garg <mudit.garg@docusign.com>1 parent 6e59e3f commit bfecf7f
2 files changed
Lines changed: 82 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | | - | |
| 25 | + | |
18 | 26 | | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
| 31 | + | |
22 | 32 | | |
| 33 | + | |
| 34 | + | |
23 | 35 | | |
24 | | - | |
| 36 | + | |
25 | 37 | | |
26 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
27 | 41 | | |
28 | 42 | | |
29 | 43 | | |
30 | 44 | | |
| 45 | + | |
31 | 46 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
47 | 96 | | |
48 | 97 | | |
49 | 98 | | |
50 | | - | |
| 99 | + | |
51 | 100 | | |
52 | 101 | | |
53 | 102 | | |
54 | | - | |
| 103 | + | |
| 104 | + | |
55 | 105 | | |
56 | 106 | | |
57 | 107 | | |
58 | | - | |
| 108 | + | |
0 commit comments