Skip to content

Commit c9d98d8

Browse files
Merge pull request #450 from communitybridge/unicron-switch-project-api-from-py-v2-to-go-v4
Switch to new api '/v4/project-compat/<uuid>' instead of '/v2/project/<uuid>'
2 parents 96934a7 + aa948b3 commit c9d98d8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,5 @@ Thumbs.db
7171

7272
#mac icloude files
7373
.nosync
74+
out
75+
*.swp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class ClaContributorService {
6666
}
6767

6868
getProject(projectId: string): Observable<ProjectModel> {
69-
const url = this.getV2Endpoint('/v2/project/' + projectId);
69+
const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
7070
return this.httpClient.get<ProjectModel>(url);
7171
}
7272

@@ -139,7 +139,7 @@ export class ClaContributorService {
139139
}
140140

141141
getGerritProjectInfo(projectId: string): Observable<ProjectModel> {
142-
const url = this.getV2Endpoint('/v2/project/' + projectId);
142+
const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
143143
return this.httpClient.get<ProjectModel>(url);
144144
}
145145

0 commit comments

Comments
 (0)