Skip to content

Commit

Permalink
fix(angular): add missing user flag in Angular schematic (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-lakhdar authored Mar 16, 2021
1 parent e959b0a commit 9b5b8a4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/angular/src/ng-add-setup-project/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('ng-add-setup-project', () => {
orgId: 'fake-org-id',
apiKey: 'my-fake-api-key',
name: 'MyTestProject',
user: '[email protected]',
};

const appOptions: ApplicationOptions = {
Expand Down
4 changes: 4 additions & 0 deletions packages/angular/src/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"type": "string",
"description": "An API key granting the impersonate privilege in your organization."
},
"user": {
"type": "string",
"description": "The name of the security identity to impersonate."
},
"platformUrl": {
"type": "string",
"description": "The target environment",
Expand Down
1 change: 1 addition & 0 deletions packages/angular/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export interface CoveoSchema {

orgId: string;
apiKey: string;
user: string;
platformUrl?: string;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ORGANIZATION_ID=<%=orgId%>
API_KEY=<%=apiKey%>
# USER_EMAIL=<YOUR_USER_EMAIL>
USER_EMAIL=<%=user%>
PLATFORM_URL=<%=platformUrl%>
1 change: 1 addition & 0 deletions packages/angular/src/search-token-server/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('search-token-server', () => {
orgId: 'fake-org-id',
apiKey: 'my-fake-api-key',
name: 'MyTestProject',
user: '[email protected]',
};

const appOptions: ApplicationOptions = {
Expand Down

0 comments on commit 9b5b8a4

Please sign in to comment.