Skip to content

Commit f60a170

Browse files
Merge pull request #464 from communitybridge/unicron-revert-switching-to-golang-apis-that-require-token
Do not switch to ported APIs yet
2 parents 16e4f63 + ecd2996 commit f60a170

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/app/core/services/cla-contributor.service.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export class ClaContributorService {
5656

5757

5858
getUser(userId: string): Observable<UserModel> {
59-
const url = this.getV3Endpoint('/v3/user-compat/' + userId);
59+
// LG:TODO
60+
const url = this.getV2Endpoint('/v2/user/' + userId);
61+
// const url = this.getV3Endpoint('/v3/user-compat/' + userId);
6062
return this.httpClient.get<UserModel>(url);
6163
}
6264

@@ -71,12 +73,16 @@ export class ClaContributorService {
7173
}
7274

7375
getProject(projectId: string): Observable<ProjectModel> {
74-
const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
76+
// LG:TODO
77+
const url = this.getV2Endpoint('/v2/project/' + projectId);
78+
// const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
7579
return this.httpClient.get<ProjectModel>(url);
7680
}
7781

7882
getUserActiveSignature(userId: string): Observable<ActiveSignatureModel> {
79-
const url = this.getV4Endpoint('/v4/user/' + userId + '/active-signature');
83+
// LG:TODO
84+
const url = this.getV2Endpoint('/v2/user/' + userId + '/active-signature');
85+
// const url = this.getV4Endpoint('/v4/user/' + userId + '/active-signature');
8086
return this.httpClient.get<ActiveSignatureModel>(url);
8187
}
8288

@@ -144,7 +150,9 @@ export class ClaContributorService {
144150
}
145151

146152
getGerritProjectInfo(projectId: string): Observable<ProjectModel> {
147-
const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
153+
// LG:TODO
154+
const url = this.getV2Endpoint('/v2/project/' + projectId);
155+
// const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
148156
return this.httpClient.get<ProjectModel>(url);
149157
}
150158

0 commit comments

Comments
 (0)