@@ -146,7 +146,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk, _ .
146
146
if err = json .Unmarshal (contents , & env ); err != nil {
147
147
return err
148
148
}
149
- s .scanVariableData (ctx , chunksChan , Metadata {EnvironmentID : env .ID , EnvironmentName : env .Name , fromLocal : true , Link : envPath , LocationType : source_metadatapb .PostmanLocationType_ENVIRONMENT_VARIABLE }, env )
149
+ s .scanVariableData (ctx , chunksChan , Metadata {EnvironmentID : env .Id , EnvironmentName : env .Name , fromLocal : true , Link : envPath , LocationType : source_metadatapb .PostmanLocationType_ENVIRONMENT_VARIABLE }, env )
150
150
}
151
151
152
152
// Scan local collections
@@ -174,7 +174,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk, _ .
174
174
}
175
175
}
176
176
basename := path .Base (workspacePath )
177
- workspace .ID = strings .TrimSuffix (basename , filepath .Ext (basename ))
177
+ workspace .Id = strings .TrimSuffix (basename , filepath .Ext (basename ))
178
178
s .scanLocalWorkspace (ctx , chunksChan , workspace , workspacePath )
179
179
}
180
180
@@ -219,9 +219,9 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk, _ .
219
219
}
220
220
ctx .Logger ().V (2 ).Info ("enumerated workspaces" , "workspaces" , workspaces )
221
221
for _ , workspace := range workspaces {
222
- s .SetProgressOngoing (fmt .Sprintf ("Scanning workspace %s" , workspace .ID ), "" )
222
+ s .SetProgressOngoing (fmt .Sprintf ("Scanning workspace %s" , workspace .Id ), "" )
223
223
if err = s .scanWorkspace (ctx , chunksChan , workspace ); err != nil {
224
- return fmt .Errorf ("error scanning workspace %s: %w" , workspace .ID , err )
224
+ return fmt .Errorf ("error scanning workspace %s: %w" , workspace .Id , err )
225
225
}
226
226
}
227
227
}
@@ -235,12 +235,12 @@ func (s *Source) scanLocalWorkspace(ctx context.Context, chunksChan chan *source
235
235
s .resetKeywords ()
236
236
237
237
metadata := Metadata {
238
- WorkspaceUUID : workspace .ID ,
238
+ WorkspaceUUID : workspace .Id ,
239
239
fromLocal : true ,
240
240
}
241
241
242
242
for _ , environment := range workspace .EnvironmentsRaw {
243
- metadata .Link = strings .TrimSuffix (path .Base (filePath ), path .Ext (filePath )) + "/environments/" + environment .ID + ".json"
243
+ metadata .Link = strings .TrimSuffix (path .Base (filePath ), path .Ext (filePath )) + "/environments/" + environment .Id + ".json"
244
244
metadata .LocationType = source_metadatapb .PostmanLocationType_ENVIRONMENT_VARIABLE
245
245
s .scanVariableData (ctx , chunksChan , metadata , environment )
246
246
metadata .LocationType = source_metadatapb .PostmanLocationType_UNKNOWN_POSTMAN
@@ -258,7 +258,7 @@ func (s *Source) scanWorkspace(ctx context.Context, chunksChan chan *sources.Chu
258
258
259
259
// initiate metadata to track the tree structure of postman data
260
260
metadata := Metadata {
261
- WorkspaceUUID : workspace .ID ,
261
+ WorkspaceUUID : workspace .Id ,
262
262
WorkspaceName : workspace .Name ,
263
263
CreatedBy : workspace .CreatedBy ,
264
264
Type : "workspace" ,
@@ -276,7 +276,7 @@ func (s *Source) scanWorkspace(ctx context.Context, chunksChan chan *sources.Chu
276
276
}
277
277
metadata .Type = ENVIRONMENT_TYPE
278
278
metadata .Link = LINK_BASE_URL + "environments/" + envID .Uid
279
- metadata .FullID = envVars .ID
279
+ metadata .FullID = envVars .Id
280
280
metadata .EnvironmentID = envID .Uid
281
281
metadata .EnvironmentName = envVars .Name
282
282
@@ -391,7 +391,7 @@ func (s *Source) scanItem(ctx context.Context, chunksChan chan *sources.Chunk, c
391
391
metadata .Link = LINK_BASE_URL + REQUEST_TYPE + "/" + item .Uid
392
392
} else {
393
393
// Route to collection.json
394
- metadata .FullID = item .ID
394
+ metadata .FullID = item .Id
395
395
}
396
396
s .scanHTTPRequest (ctx , chunksChan , metadata , item .Request )
397
397
}
0 commit comments