fix(certs): add year to certs introduced in 2020 (#38912)
This commit is contained in:
committed by
GitHub
parent
32a443d1c9
commit
a02ff7b08e
@ -167,12 +167,12 @@
|
|||||||
"description": "Camper is information security and quality assurance certified",
|
"description": "Camper is information security and quality assurance certified",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"isQaCert": {
|
"is2020QaCert": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Camper is quality assurance certified",
|
"description": "Camper is quality assurance certified",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"isInfosecCert": {
|
"is2020InfosecCert": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Camper is information security certified",
|
"description": "Camper is information security certified",
|
||||||
"default": false
|
"default": false
|
||||||
@ -182,17 +182,17 @@
|
|||||||
"description": "Camper is full stack certified (2018)",
|
"description": "Camper is full stack certified (2018)",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"isSciCompPyCert": {
|
"is2020SciCompPyCert": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Camper is scientific computing with Python certified",
|
"description": "Camper is scientific computing with Python certified",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"isDataAnalysisPyCert": {
|
"is2020DataAnalysisPyCert": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Camper is data analysis with Python certified",
|
"description": "Camper is data analysis with Python certified",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"isMachineLearningPyCert": {
|
"is2020MachineLearningPyCert": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Camper is machine learning with Python certified",
|
"description": "Camper is machine learning with Python certified",
|
||||||
"default": false
|
"default": false
|
||||||
|
@ -202,11 +202,11 @@ function sendCertifiedEmail(
|
|||||||
isJsAlgoDataStructCert,
|
isJsAlgoDataStructCert,
|
||||||
isDataVisCert,
|
isDataVisCert,
|
||||||
isApisMicroservicesCert,
|
isApisMicroservicesCert,
|
||||||
isQaCert,
|
is2020QaCert,
|
||||||
isInfosecCert,
|
is2020InfosecCert,
|
||||||
isSciCompPyCert,
|
is2020SciCompPyCert,
|
||||||
isDataAnalysisPyCert,
|
is2020DataAnalysisPyCert,
|
||||||
isMachineLearningPyCert
|
is2020MachineLearningPyCert
|
||||||
},
|
},
|
||||||
send$
|
send$
|
||||||
) {
|
) {
|
||||||
@ -217,11 +217,11 @@ function sendCertifiedEmail(
|
|||||||
!isJsAlgoDataStructCert ||
|
!isJsAlgoDataStructCert ||
|
||||||
!isDataVisCert ||
|
!isDataVisCert ||
|
||||||
!isApisMicroservicesCert ||
|
!isApisMicroservicesCert ||
|
||||||
!isQaCert ||
|
!is2020QaCert ||
|
||||||
!isInfosecCert ||
|
!is2020InfosecCert ||
|
||||||
!isSciCompPyCert ||
|
!is2020SciCompPyCert ||
|
||||||
!isDataAnalysisPyCert ||
|
!is2020DataAnalysisPyCert ||
|
||||||
!isMachineLearningPyCert
|
!is2020MachineLearningPyCert
|
||||||
) {
|
) {
|
||||||
return Observable.just(false);
|
return Observable.just(false);
|
||||||
}
|
}
|
||||||
@ -249,15 +249,15 @@ function getUserIsCertMap(user) {
|
|||||||
is2018DataVisCert = false,
|
is2018DataVisCert = false,
|
||||||
isApisMicroservicesCert = false,
|
isApisMicroservicesCert = false,
|
||||||
isInfosecQaCert = false,
|
isInfosecQaCert = false,
|
||||||
isQaCert = false,
|
is2020QaCert = false,
|
||||||
isInfosecCert = false,
|
is2020InfosecCert = false,
|
||||||
isFrontEndCert = false,
|
isFrontEndCert = false,
|
||||||
isBackEndCert = false,
|
isBackEndCert = false,
|
||||||
isDataVisCert = false,
|
isDataVisCert = false,
|
||||||
isFullStackCert = false,
|
isFullStackCert = false,
|
||||||
isSciCompPyCert = false,
|
is2020SciCompPyCert = false,
|
||||||
isDataAnalysisPyCert = false,
|
is2020DataAnalysisPyCert = false,
|
||||||
isMachineLearningPyCert = false
|
is2020MachineLearningPyCert = false
|
||||||
} = user;
|
} = user;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -267,15 +267,15 @@ function getUserIsCertMap(user) {
|
|||||||
is2018DataVisCert,
|
is2018DataVisCert,
|
||||||
isApisMicroservicesCert,
|
isApisMicroservicesCert,
|
||||||
isInfosecQaCert,
|
isInfosecQaCert,
|
||||||
isQaCert,
|
is2020QaCert,
|
||||||
isInfosecCert,
|
is2020InfosecCert,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isBackEndCert,
|
isBackEndCert,
|
||||||
isDataVisCert,
|
isDataVisCert,
|
||||||
isFullStackCert,
|
isFullStackCert,
|
||||||
isSciCompPyCert,
|
is2020SciCompPyCert,
|
||||||
isDataAnalysisPyCert,
|
is2020DataAnalysisPyCert,
|
||||||
isMachineLearningPyCert
|
is2020MachineLearningPyCert
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -396,11 +396,11 @@ function createShowCert(app) {
|
|||||||
is2018DataVisCert: true,
|
is2018DataVisCert: true,
|
||||||
isApisMicroservicesCert: true,
|
isApisMicroservicesCert: true,
|
||||||
isInfosecQaCert: true,
|
isInfosecQaCert: true,
|
||||||
isQaCert: true,
|
is2020QaCert: true,
|
||||||
isInfosecCert: true,
|
is2020InfosecCert: true,
|
||||||
isSciCompPyCert: true,
|
is2020SciCompPyCert: true,
|
||||||
isDataAnalysisPyCert: true,
|
is2020DataAnalysisPyCert: true,
|
||||||
isMachineLearningPyCert: true,
|
is2020MachineLearningPyCert: true,
|
||||||
isHonest: true,
|
isHonest: true,
|
||||||
username: true,
|
username: true,
|
||||||
name: true,
|
name: true,
|
||||||
|
@ -162,16 +162,16 @@ function postResetProgress(req, res, next) {
|
|||||||
isJsAlgoDataStructCert: false,
|
isJsAlgoDataStructCert: false,
|
||||||
isApisMicroservicesCert: false,
|
isApisMicroservicesCert: false,
|
||||||
isInfosecQaCert: false,
|
isInfosecQaCert: false,
|
||||||
isQaCert: false,
|
is2020QaCert: false,
|
||||||
isInfosecCert: false,
|
is2020InfosecCert: false,
|
||||||
is2018FullStackCert: false,
|
is2018FullStackCert: false,
|
||||||
isFrontEndCert: false,
|
isFrontEndCert: false,
|
||||||
isBackEndCert: false,
|
isBackEndCert: false,
|
||||||
isDataVisCert: false,
|
isDataVisCert: false,
|
||||||
isFullStackCert: false,
|
isFullStackCert: false,
|
||||||
isSciCompPyCert: false,
|
is2020SciCompPyCert: false,
|
||||||
isDataAnalysisPyCert: false,
|
is2020DataAnalysisPyCert: false,
|
||||||
isMachineLearningPyCert: false,
|
is2020MachineLearningPyCert: false,
|
||||||
completedChallenges: []
|
completedChallenges: []
|
||||||
},
|
},
|
||||||
function(err) {
|
function(err) {
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
"jsAlgoDataStruct": "isJsAlgoDataStructCert",
|
"jsAlgoDataStruct": "isJsAlgoDataStructCert",
|
||||||
"apisMicroservices": "isApisMicroservicesCert",
|
"apisMicroservices": "isApisMicroservicesCert",
|
||||||
"infosecQa": "isInfosecQaCert",
|
"infosecQa": "isInfosecQaCert",
|
||||||
"qa": "isQaCert",
|
"qa": "is2020QaCert",
|
||||||
"infosec": "isInfosecCert",
|
"infosec": "is2020InfosecCert",
|
||||||
"fullStack": "isFullStackCert",
|
"fullStack": "isFullStackCert",
|
||||||
"sciCompPy": "isSciCompPyCert",
|
"sciCompPy": "is2020SciCompPyCert",
|
||||||
"dataAnalysisPy": "isDataAnalysisPyCert",
|
"dataAnalysisPy": "is2020DataAnalysisPyCert",
|
||||||
"machineLearningPy": "isMachineLearningPyCert"
|
"machineLearningPy": "is2020MachineLearningPyCert"
|
||||||
}
|
}
|
||||||
|
@ -18,11 +18,11 @@ export function completeCommitment$(user) {
|
|||||||
isDataVisCert,
|
isDataVisCert,
|
||||||
isApisMicroservicesCert,
|
isApisMicroservicesCert,
|
||||||
isInfosecQaCert,
|
isInfosecQaCert,
|
||||||
isQaCert,
|
is2020QaCert,
|
||||||
isInfosecCert,
|
is2020InfosecCert,
|
||||||
isSciCompPyCert,
|
is2020SciCompPyCert,
|
||||||
isDataAnalysisPyCert,
|
is2020DataAnalysisPyCert,
|
||||||
isMachineLearningPyCert
|
is2020MachineLearningPyCert
|
||||||
} = user;
|
} = user;
|
||||||
|
|
||||||
return Observable.fromNodeCallback(user.pledge, user)().flatMap(pledge => {
|
return Observable.fromNodeCallback(user.pledge, user)().flatMap(pledge => {
|
||||||
@ -42,11 +42,12 @@ export function completeCommitment$(user) {
|
|||||||
(isDataVisCert && goal === commitGoals.dataVisCert) ||
|
(isDataVisCert && goal === commitGoals.dataVisCert) ||
|
||||||
(isApisMicroservicesCert && goal === commitGoals.apisMicroservicesCert) ||
|
(isApisMicroservicesCert && goal === commitGoals.apisMicroservicesCert) ||
|
||||||
(isInfosecQaCert && goal === commitGoals.infosecQaCert) ||
|
(isInfosecQaCert && goal === commitGoals.infosecQaCert) ||
|
||||||
(isQaCert && goal === commitGoals.QaCert) ||
|
(is2020QaCert && goal === commitGoals.QaCert) ||
|
||||||
(isInfosecCert && goal === commitGoals.infosecCert) ||
|
(is2020InfosecCert && goal === commitGoals.infosecCert) ||
|
||||||
(isSciCompPyCert && goal === commitGoals.sciCompPyCert) ||
|
(is2020SciCompPyCert && goal === commitGoals.sciCompPyCert) ||
|
||||||
(isDataAnalysisPyCert && goal === commitGoals.dataAnalysisPyCert) ||
|
(is2020DataAnalysisPyCert && goal === commitGoals.dataAnalysisPyCert) ||
|
||||||
(isMachineLearningPyCert && goal === commitGoals.machineLearningPyCert)
|
(is2020MachineLearningPyCert &&
|
||||||
|
goal === commitGoals.machineLearningPyCert)
|
||||||
) {
|
) {
|
||||||
debug('marking goal complete');
|
debug('marking goal complete');
|
||||||
pledge.isCompleted = true;
|
pledge.isCompleted = true;
|
||||||
|
@ -3,13 +3,13 @@ function getCompletedCertCount(user) {
|
|||||||
'isApisMicroservicesCert',
|
'isApisMicroservicesCert',
|
||||||
'is2018DataVisCert',
|
'is2018DataVisCert',
|
||||||
'isFrontEndLibsCert',
|
'isFrontEndLibsCert',
|
||||||
'isQaCert',
|
'is2020QaCert',
|
||||||
'isInfosecCert',
|
'is2020InfosecCert',
|
||||||
'isJsAlgoDataStructCert',
|
'isJsAlgoDataStructCert',
|
||||||
'isRespWebDesignCert',
|
'isRespWebDesignCert',
|
||||||
'isSciCompPyCert',
|
'is2020SciCompPyCert',
|
||||||
'isDataAnalysisPyCert',
|
'is2020DataAnalysisPyCert',
|
||||||
'isMachineLearningPyCert'
|
'is2020MachineLearningPyCert'
|
||||||
].reduce((sum, key) => (user[key] ? sum + 1 : sum), 0);
|
].reduce((sum, key) => (user[key] ? sum + 1 : sum), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,13 +23,13 @@ export const publicUserProps = [
|
|||||||
'isFrontEndLibsCert',
|
'isFrontEndLibsCert',
|
||||||
'isHonest',
|
'isHonest',
|
||||||
'isInfosecQaCert',
|
'isInfosecQaCert',
|
||||||
'isQaCert',
|
'is2020QaCert',
|
||||||
'isInfosecCert',
|
'is2020InfosecCert',
|
||||||
'isJsAlgoDataStructCert',
|
'isJsAlgoDataStructCert',
|
||||||
'isRespWebDesignCert',
|
'isRespWebDesignCert',
|
||||||
'isSciCompPyCert',
|
'is2020SciCompPyCert',
|
||||||
'isDataAnalysisPyCert',
|
'is2020DataAnalysisPyCert',
|
||||||
'isMachineLearningPyCert',
|
'is2020MachineLearningPyCert',
|
||||||
'linkedin',
|
'linkedin',
|
||||||
'location',
|
'location',
|
||||||
'name',
|
'name',
|
||||||
|
@ -142,13 +142,13 @@ function getCompletedCertCount(user) {
|
|||||||
'isApisMicroservicesCert',
|
'isApisMicroservicesCert',
|
||||||
'is2018DataVisCert',
|
'is2018DataVisCert',
|
||||||
'isFrontEndLibsCert',
|
'isFrontEndLibsCert',
|
||||||
'isQaCert',
|
'is2020QaCert',
|
||||||
'isInfosecCert',
|
'is2020InfosecCert',
|
||||||
'isJsAlgoDataStructCert',
|
'isJsAlgoDataStructCert',
|
||||||
'isRespWebDesignCert',
|
'isRespWebDesignCert',
|
||||||
'isSciCompPyCert',
|
'is2020SciCompPyCert',
|
||||||
'isDataAnalysisPyCert',
|
'is2020DataAnalysisPyCert',
|
||||||
'isMachineLearningPyCert'
|
'is2020MachineLearningPyCert'
|
||||||
].reduce((sum, key) => (user[key] ? sum + 1 : sum), 0);
|
].reduce((sum, key) => (user[key] ? sum + 1 : sum), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,13 +60,13 @@ const propTypes = {
|
|||||||
isFullStackCert: PropTypes.bool,
|
isFullStackCert: PropTypes.bool,
|
||||||
isHonest: PropTypes.bool,
|
isHonest: PropTypes.bool,
|
||||||
isInfosecQaCert: PropTypes.bool,
|
isInfosecQaCert: PropTypes.bool,
|
||||||
isQaCert: PropTypes.bool,
|
is2020QaCert: PropTypes.bool,
|
||||||
isInfosecCert: PropTypes.bool,
|
is2020InfosecCert: PropTypes.bool,
|
||||||
isJsAlgoDataStructCert: PropTypes.bool,
|
isJsAlgoDataStructCert: PropTypes.bool,
|
||||||
isRespWebDesignCert: PropTypes.bool,
|
isRespWebDesignCert: PropTypes.bool,
|
||||||
isSciCompPyCert: PropTypes.bool,
|
is2020SciCompPyCert: PropTypes.bool,
|
||||||
isDataAnalysisPyCert: PropTypes.bool,
|
is2020DataAnalysisPyCert: PropTypes.bool,
|
||||||
isMachineLearningPyCert: PropTypes.bool,
|
is2020MachineLearningPyCert: PropTypes.bool,
|
||||||
linkedin: PropTypes.string,
|
linkedin: PropTypes.string,
|
||||||
location: PropTypes.string,
|
location: PropTypes.string,
|
||||||
name: PropTypes.string,
|
name: PropTypes.string,
|
||||||
@ -134,14 +134,14 @@ export function ShowSettings(props) {
|
|||||||
isDataVisCert,
|
isDataVisCert,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isInfosecQaCert,
|
isInfosecQaCert,
|
||||||
isQaCert,
|
is2020QaCert,
|
||||||
isInfosecCert,
|
is2020InfosecCert,
|
||||||
isFrontEndLibsCert,
|
isFrontEndLibsCert,
|
||||||
isFullStackCert,
|
isFullStackCert,
|
||||||
isRespWebDesignCert,
|
isRespWebDesignCert,
|
||||||
isSciCompPyCert,
|
is2020SciCompPyCert,
|
||||||
isDataAnalysisPyCert,
|
is2020DataAnalysisPyCert,
|
||||||
isMachineLearningPyCert,
|
is2020MachineLearningPyCert,
|
||||||
isEmailVerified,
|
isEmailVerified,
|
||||||
isHonest,
|
isHonest,
|
||||||
sendQuincyEmail,
|
sendQuincyEmail,
|
||||||
@ -241,21 +241,21 @@ export function ShowSettings(props) {
|
|||||||
completedChallenges={completedChallenges}
|
completedChallenges={completedChallenges}
|
||||||
createFlashMessage={createFlashMessage}
|
createFlashMessage={createFlashMessage}
|
||||||
is2018DataVisCert={is2018DataVisCert}
|
is2018DataVisCert={is2018DataVisCert}
|
||||||
|
is2020DataAnalysisPyCert={is2020DataAnalysisPyCert}
|
||||||
|
is2020InfosecCert={is2020InfosecCert}
|
||||||
|
is2020MachineLearningPyCert={is2020MachineLearningPyCert}
|
||||||
|
is2020QaCert={is2020QaCert}
|
||||||
|
is2020SciCompPyCert={is2020SciCompPyCert}
|
||||||
isApisMicroservicesCert={isApisMicroservicesCert}
|
isApisMicroservicesCert={isApisMicroservicesCert}
|
||||||
isBackEndCert={isBackEndCert}
|
isBackEndCert={isBackEndCert}
|
||||||
isDataAnalysisPyCert={isDataAnalysisPyCert}
|
|
||||||
isDataVisCert={isDataVisCert}
|
isDataVisCert={isDataVisCert}
|
||||||
isFrontEndCert={isFrontEndCert}
|
isFrontEndCert={isFrontEndCert}
|
||||||
isFrontEndLibsCert={isFrontEndLibsCert}
|
isFrontEndLibsCert={isFrontEndLibsCert}
|
||||||
isFullStackCert={isFullStackCert}
|
isFullStackCert={isFullStackCert}
|
||||||
isHonest={isHonest}
|
isHonest={isHonest}
|
||||||
isInfosecCert={isInfosecCert}
|
|
||||||
isInfosecQaCert={isInfosecQaCert}
|
isInfosecQaCert={isInfosecQaCert}
|
||||||
isJsAlgoDataStructCert={isJsAlgoDataStructCert}
|
isJsAlgoDataStructCert={isJsAlgoDataStructCert}
|
||||||
isMachineLearningPyCert={isMachineLearningPyCert}
|
|
||||||
isQaCert={isQaCert}
|
|
||||||
isRespWebDesignCert={isRespWebDesignCert}
|
isRespWebDesignCert={isRespWebDesignCert}
|
||||||
isSciCompPyCert={isSciCompPyCert}
|
|
||||||
username={username}
|
username={username}
|
||||||
verifyCert={verifyCert}
|
verifyCert={verifyCert}
|
||||||
/>
|
/>
|
||||||
|
@ -42,21 +42,21 @@ const propTypes = {
|
|||||||
),
|
),
|
||||||
createFlashMessage: PropTypes.func.isRequired,
|
createFlashMessage: PropTypes.func.isRequired,
|
||||||
is2018DataVisCert: PropTypes.bool,
|
is2018DataVisCert: PropTypes.bool,
|
||||||
|
is2020DataAnalysisPyCert: PropTypes.bool,
|
||||||
|
is2020InfosecCert: PropTypes.bool,
|
||||||
|
is2020MachineLearningPyCert: PropTypes.bool,
|
||||||
|
is2020QaCert: PropTypes.bool,
|
||||||
|
is2020SciCompPyCert: PropTypes.bool,
|
||||||
isApisMicroservicesCert: PropTypes.bool,
|
isApisMicroservicesCert: PropTypes.bool,
|
||||||
isBackEndCert: PropTypes.bool,
|
isBackEndCert: PropTypes.bool,
|
||||||
isDataAnalysisPyCert: PropTypes.bool,
|
|
||||||
isDataVisCert: PropTypes.bool,
|
isDataVisCert: PropTypes.bool,
|
||||||
isFrontEndCert: PropTypes.bool,
|
isFrontEndCert: PropTypes.bool,
|
||||||
isFrontEndLibsCert: PropTypes.bool,
|
isFrontEndLibsCert: PropTypes.bool,
|
||||||
isFullStackCert: PropTypes.bool,
|
isFullStackCert: PropTypes.bool,
|
||||||
isHonest: PropTypes.bool,
|
isHonest: PropTypes.bool,
|
||||||
isInfosecCert: PropTypes.bool,
|
|
||||||
isInfosecQaCert: PropTypes.bool,
|
isInfosecQaCert: PropTypes.bool,
|
||||||
isJsAlgoDataStructCert: PropTypes.bool,
|
isJsAlgoDataStructCert: PropTypes.bool,
|
||||||
isMachineLearningPyCert: PropTypes.bool,
|
|
||||||
isQaCert: PropTypes.bool,
|
|
||||||
isRespWebDesignCert: PropTypes.bool,
|
isRespWebDesignCert: PropTypes.bool,
|
||||||
isSciCompPyCert: PropTypes.bool,
|
|
||||||
updateLegacyCert: PropTypes.func.isRequired,
|
updateLegacyCert: PropTypes.func.isRequired,
|
||||||
username: PropTypes.string,
|
username: PropTypes.string,
|
||||||
verifyCert: PropTypes.func.isRequired
|
verifyCert: PropTypes.func.isRequired
|
||||||
@ -72,14 +72,14 @@ const isCertSelector = ({
|
|||||||
isDataVisCert,
|
isDataVisCert,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isInfosecQaCert,
|
isInfosecQaCert,
|
||||||
isQaCert,
|
is2020QaCert,
|
||||||
isInfosecCert,
|
is2020InfosecCert,
|
||||||
isFrontEndLibsCert,
|
isFrontEndLibsCert,
|
||||||
isFullStackCert,
|
isFullStackCert,
|
||||||
isRespWebDesignCert,
|
isRespWebDesignCert,
|
||||||
isSciCompPyCert,
|
is2020SciCompPyCert,
|
||||||
isDataAnalysisPyCert,
|
is2020DataAnalysisPyCert,
|
||||||
isMachineLearningPyCert
|
is2020MachineLearningPyCert
|
||||||
}) => ({
|
}) => ({
|
||||||
is2018DataVisCert,
|
is2018DataVisCert,
|
||||||
isApisMicroservicesCert,
|
isApisMicroservicesCert,
|
||||||
@ -88,14 +88,14 @@ const isCertSelector = ({
|
|||||||
isDataVisCert,
|
isDataVisCert,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isInfosecQaCert,
|
isInfosecQaCert,
|
||||||
isQaCert,
|
is2020QaCert,
|
||||||
isInfosecCert,
|
is2020InfosecCert,
|
||||||
isFrontEndLibsCert,
|
isFrontEndLibsCert,
|
||||||
isFullStackCert,
|
isFullStackCert,
|
||||||
isRespWebDesignCert,
|
isRespWebDesignCert,
|
||||||
isSciCompPyCert,
|
is2020SciCompPyCert,
|
||||||
isDataAnalysisPyCert,
|
is2020DataAnalysisPyCert,
|
||||||
isMachineLearningPyCert
|
is2020MachineLearningPyCert
|
||||||
});
|
});
|
||||||
|
|
||||||
const isCertMapSelector = createSelector(
|
const isCertMapSelector = createSelector(
|
||||||
@ -105,27 +105,27 @@ const isCertMapSelector = createSelector(
|
|||||||
isApisMicroservicesCert,
|
isApisMicroservicesCert,
|
||||||
isJsAlgoDataStructCert,
|
isJsAlgoDataStructCert,
|
||||||
isInfosecQaCert,
|
isInfosecQaCert,
|
||||||
isQaCert,
|
is2020QaCert,
|
||||||
isInfosecCert,
|
is2020InfosecCert,
|
||||||
isFrontEndLibsCert,
|
isFrontEndLibsCert,
|
||||||
isRespWebDesignCert,
|
isRespWebDesignCert,
|
||||||
isDataVisCert,
|
isDataVisCert,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isBackEndCert,
|
isBackEndCert,
|
||||||
isSciCompPyCert,
|
is2020SciCompPyCert,
|
||||||
isDataAnalysisPyCert,
|
is2020DataAnalysisPyCert,
|
||||||
isMachineLearningPyCert
|
is2020MachineLearningPyCert
|
||||||
}) => ({
|
}) => ({
|
||||||
'Responsive Web Design': isRespWebDesignCert,
|
'Responsive Web Design': isRespWebDesignCert,
|
||||||
'JavaScript Algorithms and Data Structures': isJsAlgoDataStructCert,
|
'JavaScript Algorithms and Data Structures': isJsAlgoDataStructCert,
|
||||||
'Front End Libraries': isFrontEndLibsCert,
|
'Front End Libraries': isFrontEndLibsCert,
|
||||||
'Data Visualization': is2018DataVisCert,
|
'Data Visualization': is2018DataVisCert,
|
||||||
"API's and Microservices": isApisMicroservicesCert,
|
"API's and Microservices": isApisMicroservicesCert,
|
||||||
'Quality Assurance': isQaCert,
|
'Quality Assurance': is2020QaCert,
|
||||||
'Information Security': isInfosecCert,
|
'Information Security': is2020InfosecCert,
|
||||||
'Scientific Computing with Python': isSciCompPyCert,
|
'Scientific Computing with Python': is2020SciCompPyCert,
|
||||||
'Data Analysis with Python': isDataAnalysisPyCert,
|
'Data Analysis with Python': is2020DataAnalysisPyCert,
|
||||||
'Machine Learning with Python': isMachineLearningPyCert,
|
'Machine Learning with Python': is2020MachineLearningPyCert,
|
||||||
'Legacy Front End': isFrontEndCert,
|
'Legacy Front End': isFrontEndCert,
|
||||||
'Legacy Data Visualization': isDataVisCert,
|
'Legacy Data Visualization': isDataVisCert,
|
||||||
'Legacy Back End': isBackEndCert,
|
'Legacy Back End': isBackEndCert,
|
||||||
@ -472,8 +472,8 @@ export class CertificationSettings extends Component {
|
|||||||
is2018DataVisCert,
|
is2018DataVisCert,
|
||||||
isApisMicroservicesCert,
|
isApisMicroservicesCert,
|
||||||
isFrontEndLibsCert,
|
isFrontEndLibsCert,
|
||||||
isQaCert,
|
is2020QaCert,
|
||||||
isInfosecCert,
|
is2020InfosecCert,
|
||||||
isJsAlgoDataStructCert,
|
isJsAlgoDataStructCert,
|
||||||
isRespWebDesignCert
|
isRespWebDesignCert
|
||||||
} = this.props;
|
} = this.props;
|
||||||
@ -482,8 +482,8 @@ export class CertificationSettings extends Component {
|
|||||||
is2018DataVisCert &&
|
is2018DataVisCert &&
|
||||||
isApisMicroservicesCert &&
|
isApisMicroservicesCert &&
|
||||||
isFrontEndLibsCert &&
|
isFrontEndLibsCert &&
|
||||||
isQaCert &&
|
is2020QaCert &&
|
||||||
isInfosecCert &&
|
is2020InfosecCert &&
|
||||||
isJsAlgoDataStructCert &&
|
isJsAlgoDataStructCert &&
|
||||||
isRespWebDesignCert;
|
isRespWebDesignCert;
|
||||||
|
|
||||||
|
@ -189,13 +189,13 @@ const defaultTestProps = {
|
|||||||
isFullStackCert: false,
|
isFullStackCert: false,
|
||||||
isHonest: false,
|
isHonest: false,
|
||||||
isInfosecQaCert: false,
|
isInfosecQaCert: false,
|
||||||
isQaCert: false,
|
is2020QaCert: false,
|
||||||
isInfosecCert: false,
|
is2020InfosecCert: false,
|
||||||
isJsAlgoDataStructCert: false,
|
isJsAlgoDataStructCert: false,
|
||||||
isRespWebDesignCert: false,
|
isRespWebDesignCert: false,
|
||||||
isSciCompPyCert: false,
|
is2020SciCompPyCert: false,
|
||||||
isDataAnalysisPyCert: false,
|
is2020DataAnalysisPyCert: false,
|
||||||
isMachineLearningPyCert: false,
|
is2020MachineLearningPyCert: false,
|
||||||
updateLegacyCert: () => {},
|
updateLegacyCert: () => {},
|
||||||
username: 'developmentuser',
|
username: 'developmentuser',
|
||||||
verifyCert: () => {},
|
verifyCert: () => {},
|
||||||
|
@ -213,15 +213,15 @@ export const certificatesByNameSelector = username => state => {
|
|||||||
isJsAlgoDataStructCert,
|
isJsAlgoDataStructCert,
|
||||||
isApisMicroservicesCert,
|
isApisMicroservicesCert,
|
||||||
isInfosecQaCert,
|
isInfosecQaCert,
|
||||||
isQaCert,
|
is2020QaCert,
|
||||||
isInfosecCert,
|
is2020InfosecCert,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isBackEndCert,
|
isBackEndCert,
|
||||||
isDataVisCert,
|
isDataVisCert,
|
||||||
isFullStackCert,
|
isFullStackCert,
|
||||||
isSciCompPyCert,
|
is2020SciCompPyCert,
|
||||||
isDataAnalysisPyCert,
|
is2020DataAnalysisPyCert,
|
||||||
isMachineLearningPyCert
|
is2020MachineLearningPyCert
|
||||||
} = userByNameSelector(username)(state);
|
} = userByNameSelector(username)(state);
|
||||||
return {
|
return {
|
||||||
hasModernCert:
|
hasModernCert:
|
||||||
@ -230,12 +230,12 @@ export const certificatesByNameSelector = username => state => {
|
|||||||
isFrontEndLibsCert ||
|
isFrontEndLibsCert ||
|
||||||
isJsAlgoDataStructCert ||
|
isJsAlgoDataStructCert ||
|
||||||
isApisMicroservicesCert ||
|
isApisMicroservicesCert ||
|
||||||
isQaCert ||
|
is2020QaCert ||
|
||||||
isInfosecCert ||
|
is2020InfosecCert ||
|
||||||
isFullStackCert ||
|
isFullStackCert ||
|
||||||
isSciCompPyCert ||
|
is2020SciCompPyCert ||
|
||||||
isDataAnalysisPyCert ||
|
is2020DataAnalysisPyCert ||
|
||||||
isMachineLearningPyCert,
|
is2020MachineLearningPyCert,
|
||||||
hasLegacyCert:
|
hasLegacyCert:
|
||||||
isFrontEndCert || isBackEndCert || isDataVisCert || isInfosecQaCert,
|
isFrontEndCert || isBackEndCert || isDataVisCert || isInfosecQaCert,
|
||||||
currentCerts: [
|
currentCerts: [
|
||||||
@ -270,27 +270,27 @@ export const certificatesByNameSelector = username => state => {
|
|||||||
showURL: 'apis-and-microservices'
|
showURL: 'apis-and-microservices'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
show: isQaCert,
|
show: is2020QaCert,
|
||||||
title: ' Quality Assurance Certification',
|
title: ' Quality Assurance Certification',
|
||||||
showURL: 'quality-assurance'
|
showURL: 'quality-assurance'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
show: isInfosecCert,
|
show: is2020InfosecCert,
|
||||||
title: 'Information Security Certification',
|
title: 'Information Security Certification',
|
||||||
showURL: 'information-security'
|
showURL: 'information-security'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
show: isSciCompPyCert,
|
show: is2020SciCompPyCert,
|
||||||
title: 'Scientific Computing with Python Certification',
|
title: 'Scientific Computing with Python Certification',
|
||||||
showURL: 'scientific-computing-with-python'
|
showURL: 'scientific-computing-with-python'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
show: isDataAnalysisPyCert,
|
show: is2020DataAnalysisPyCert,
|
||||||
title: 'Data Analysis with Python Certification',
|
title: 'Data Analysis with Python Certification',
|
||||||
showURL: 'data-analysis-with-python'
|
showURL: 'data-analysis-with-python'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
show: isMachineLearningPyCert,
|
show: is2020MachineLearningPyCert,
|
||||||
title: 'Machine Learning with Python Certification',
|
title: 'Machine Learning with Python Certification',
|
||||||
showURL: 'machine-learning-with-python'
|
showURL: 'machine-learning-with-python'
|
||||||
}
|
}
|
||||||
|
@ -63,12 +63,12 @@ MongoClient.connect(MONGOHQ_URL, { useNewUrlParser: true }, function(
|
|||||||
isJsAlgoDataStructCert: false,
|
isJsAlgoDataStructCert: false,
|
||||||
isApisMicroservicesCert: false,
|
isApisMicroservicesCert: false,
|
||||||
isInfosecQaCert: false,
|
isInfosecQaCert: false,
|
||||||
isQaCert: false,
|
is2020QaCert: false,
|
||||||
isInfosecCert: false,
|
is2020InfosecCert: false,
|
||||||
is2018FullStackCert: false,
|
is2018FullStackCert: false,
|
||||||
isSciCompPyCert: false,
|
is2020SciCompPyCert: false,
|
||||||
isDataAnalysisPyCert: false,
|
is2020DataAnalysisPyCert: false,
|
||||||
isMachineLearningPyCert: false,
|
is2020MachineLearningPyCert: false,
|
||||||
completedChallenges: [],
|
completedChallenges: [],
|
||||||
portfolio: [],
|
portfolio: [],
|
||||||
yearsTopContributor: [],
|
yearsTopContributor: [],
|
||||||
|
Reference in New Issue
Block a user