Skip to content

Commit

Permalink
remove isv dev details from mesh config while packing (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGoberling authored Sep 5, 2023
1 parent 682f103 commit 0b7d887
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/commands/app/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Pack extends BaseCommand {
const { stdout } = await execa('aio', ['api-mesh', 'get'], { cwd: process.cwd() })
// until we get the --json flag, we parse the output
const idx = stdout.indexOf('{')
meshConfig = JSON.parse(stdout.substring(idx))
meshConfig = JSON.parse(stdout.substring(idx)).meshConfig
aioLogger.debug(`api-mesh:get - ${JSON.stringify(meshConfig, null, 2)}`)
this.spinner.succeed('Got api-mesh config')
} catch (err) {
Expand Down
20 changes: 5 additions & 15 deletions test/__fixtures__/pack/2.deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,9 @@ apis:
- code: AudienceManagerCustomerSDK
- code: GraphQLServiceSDK
meshConfig:
lastUpdated: '2023-03-02T09:58:23.896Z'
meshConfig:
sources:
- name: Commerce
handler:
graphql:
endpoint: https://foo.bar/graphql/
meshId: abcd123
lastUpdatedBy:
firstName: John
lastName: Doe
userEmail: [email protected]
userId: [email protected]
displayName: John Doe
meshStatus: success
sources:
- name: Commerce
handler:
graphql:
endpoint: https://foo.bar/graphql/
runtime: true

0 comments on commit 0b7d887

Please sign in to comment.