fix(certs): add year to certs introduced in 2020 (#38912)
This commit is contained in:
committed by
GitHub
parent
32a443d1c9
commit
a02ff7b08e
@ -8,10 +8,10 @@
|
||||
"jsAlgoDataStruct": "isJsAlgoDataStructCert",
|
||||
"apisMicroservices": "isApisMicroservicesCert",
|
||||
"infosecQa": "isInfosecQaCert",
|
||||
"qa": "isQaCert",
|
||||
"infosec": "isInfosecCert",
|
||||
"qa": "is2020QaCert",
|
||||
"infosec": "is2020InfosecCert",
|
||||
"fullStack": "isFullStackCert",
|
||||
"sciCompPy": "isSciCompPyCert",
|
||||
"dataAnalysisPy": "isDataAnalysisPyCert",
|
||||
"machineLearningPy": "isMachineLearningPyCert"
|
||||
"sciCompPy": "is2020SciCompPyCert",
|
||||
"dataAnalysisPy": "is2020DataAnalysisPyCert",
|
||||
"machineLearningPy": "is2020MachineLearningPyCert"
|
||||
}
|
||||
|
@ -18,11 +18,11 @@ export function completeCommitment$(user) {
|
||||
isDataVisCert,
|
||||
isApisMicroservicesCert,
|
||||
isInfosecQaCert,
|
||||
isQaCert,
|
||||
isInfosecCert,
|
||||
isSciCompPyCert,
|
||||
isDataAnalysisPyCert,
|
||||
isMachineLearningPyCert
|
||||
is2020QaCert,
|
||||
is2020InfosecCert,
|
||||
is2020SciCompPyCert,
|
||||
is2020DataAnalysisPyCert,
|
||||
is2020MachineLearningPyCert
|
||||
} = user;
|
||||
|
||||
return Observable.fromNodeCallback(user.pledge, user)().flatMap(pledge => {
|
||||
@ -42,11 +42,12 @@ export function completeCommitment$(user) {
|
||||
(isDataVisCert && goal === commitGoals.dataVisCert) ||
|
||||
(isApisMicroservicesCert && goal === commitGoals.apisMicroservicesCert) ||
|
||||
(isInfosecQaCert && goal === commitGoals.infosecQaCert) ||
|
||||
(isQaCert && goal === commitGoals.QaCert) ||
|
||||
(isInfosecCert && goal === commitGoals.infosecCert) ||
|
||||
(isSciCompPyCert && goal === commitGoals.sciCompPyCert) ||
|
||||
(isDataAnalysisPyCert && goal === commitGoals.dataAnalysisPyCert) ||
|
||||
(isMachineLearningPyCert && goal === commitGoals.machineLearningPyCert)
|
||||
(is2020QaCert && goal === commitGoals.QaCert) ||
|
||||
(is2020InfosecCert && goal === commitGoals.infosecCert) ||
|
||||
(is2020SciCompPyCert && goal === commitGoals.sciCompPyCert) ||
|
||||
(is2020DataAnalysisPyCert && goal === commitGoals.dataAnalysisPyCert) ||
|
||||
(is2020MachineLearningPyCert &&
|
||||
goal === commitGoals.machineLearningPyCert)
|
||||
) {
|
||||
debug('marking goal complete');
|
||||
pledge.isCompleted = true;
|
||||
|
@ -3,13 +3,13 @@ function getCompletedCertCount(user) {
|
||||
'isApisMicroservicesCert',
|
||||
'is2018DataVisCert',
|
||||
'isFrontEndLibsCert',
|
||||
'isQaCert',
|
||||
'isInfosecCert',
|
||||
'is2020QaCert',
|
||||
'is2020InfosecCert',
|
||||
'isJsAlgoDataStructCert',
|
||||
'isRespWebDesignCert',
|
||||
'isSciCompPyCert',
|
||||
'isDataAnalysisPyCert',
|
||||
'isMachineLearningPyCert'
|
||||
'is2020SciCompPyCert',
|
||||
'is2020DataAnalysisPyCert',
|
||||
'is2020MachineLearningPyCert'
|
||||
].reduce((sum, key) => (user[key] ? sum + 1 : sum), 0);
|
||||
}
|
||||
|
||||
|
@ -23,13 +23,13 @@ export const publicUserProps = [
|
||||
'isFrontEndLibsCert',
|
||||
'isHonest',
|
||||
'isInfosecQaCert',
|
||||
'isQaCert',
|
||||
'isInfosecCert',
|
||||
'is2020QaCert',
|
||||
'is2020InfosecCert',
|
||||
'isJsAlgoDataStructCert',
|
||||
'isRespWebDesignCert',
|
||||
'isSciCompPyCert',
|
||||
'isDataAnalysisPyCert',
|
||||
'isMachineLearningPyCert',
|
||||
'is2020SciCompPyCert',
|
||||
'is2020DataAnalysisPyCert',
|
||||
'is2020MachineLearningPyCert',
|
||||
'linkedin',
|
||||
'location',
|
||||
'name',
|
||||
|
@ -142,13 +142,13 @@ function getCompletedCertCount(user) {
|
||||
'isApisMicroservicesCert',
|
||||
'is2018DataVisCert',
|
||||
'isFrontEndLibsCert',
|
||||
'isQaCert',
|
||||
'isInfosecCert',
|
||||
'is2020QaCert',
|
||||
'is2020InfosecCert',
|
||||
'isJsAlgoDataStructCert',
|
||||
'isRespWebDesignCert',
|
||||
'isSciCompPyCert',
|
||||
'isDataAnalysisPyCert',
|
||||
'isMachineLearningPyCert'
|
||||
'is2020SciCompPyCert',
|
||||
'is2020DataAnalysisPyCert',
|
||||
'is2020MachineLearningPyCert'
|
||||
].reduce((sum, key) => (user[key] ? sum + 1 : sum), 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user