File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -64,5 +64,25 @@ export class Project {
6464 project_sfid : string ;
6565 repositories_count : string ;
6666 standalone_project : boolean ;
67+ lf_supported : boolean ;
68+ version : string ;
69+ repos : Repository [ ] ;
70+ }
71+
72+ // Repository for a SF Project
73+ export class Repository {
74+ date_created : string ;
75+ date_modified : string ;
76+ enabled : boolean ;
77+ note ?: any ;
78+ project_sfid : string ;
79+ repository_external_id : string ;
80+ repository_id : string ;
81+ repository_name : string ;
82+ repository_organization_name : string ;
83+ repository_project_id : string ;
84+ repository_sfdc_id : string ;
85+ repository_type : string ;
86+ repository_url : string ;
6787 version : string ;
6888}
Original file line number Diff line number Diff line change @@ -178,14 +178,17 @@ export class ClaContributorService {
178178 // We may have zero or more SF Projects attached to this CLA Group
179179 const projectDetails = project . projects ;
180180
181+ // TODO: figure out the github repository that was used to come here...
182+ // pick the matching SF Project based on the repository name, instead of just using the first project in the list
183+
181184 // No SF Projects for this CLA Group
182185 if ( projectDetails . length === 0 ) {
183186 // No SFID associated with project so redirect at corporate console dashboard.
184187 url = environment . lfxCorporateUrl + 'company/dashboard' ;
185188 } else if ( project . signed_at_foundation_level ) {
186189 // Signed at foundation level.
187190 url = environment . lfxCorporateUrl + 'foundation/' + projectDetails [ 0 ] . foundation_sfid + '/cla' ;
188- } else if ( projectDetails [ 0 ] . standalone_project ) {
191+ } else if ( projectDetails [ 0 ] . lf_supported ) {
189192 // Standalone project
190193 url = environment . lfxCorporateUrl + 'foundation/LF%20Supported/project/' + projectDetails [ 0 ] . project_sfid + '/cla' ;
191194 } else {
You can’t perform that action at this time.
0 commit comments