mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore(curriculum): remove upcoming python superblock (#57247)
This commit is contained in:
committed by
GitHub
parent
62c4b665b7
commit
fcedb7e98d
@@ -108,7 +108,7 @@ model user {
|
||||
is2018DataVisCert Boolean? // Undefined
|
||||
is2018FullStackCert Boolean? // Undefined
|
||||
isCollegeAlgebraPyCertV8 Boolean? // Undefined
|
||||
isUpcomingPythonCertV8 Boolean? // Undefined
|
||||
// isUpcomingPythonCertV8 Boolean? // Undefined. It is in the db but has never been used.
|
||||
keyboardShortcuts Boolean? // Undefined
|
||||
linkedin String? // Null | Undefined
|
||||
location String? // Null
|
||||
|
||||
@@ -48,7 +48,6 @@ export const newUser = (email: string) => ({
|
||||
isCollegeAlgebraPyCertV8: false,
|
||||
isRespWebDesignCert: false,
|
||||
isSciCompPyCertV7: false,
|
||||
isUpcomingPythonCertV8: null,
|
||||
keyboardShortcuts: false,
|
||||
linkedin: null,
|
||||
location: '',
|
||||
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
setupServer,
|
||||
superRequest
|
||||
} from '../../../jest.utils';
|
||||
import { SHOW_UPCOMING_CHANGES } from '../../utils/env';
|
||||
|
||||
describe('certificate routes', () => {
|
||||
setupServer();
|
||||
@@ -396,12 +395,6 @@ describe('certificate routes', () => {
|
||||
];
|
||||
const unclaimableCerts = ['fake-slug'];
|
||||
|
||||
if (SHOW_UPCOMING_CHANGES) {
|
||||
claimableCerts.push(Certification.UpcomingPython);
|
||||
} else {
|
||||
unclaimableCerts.push(Certification.UpcomingPython);
|
||||
}
|
||||
|
||||
for (const certSlug of claimableCerts) {
|
||||
const response = await superRequest('/certificate/verify', {
|
||||
method: 'PUT',
|
||||
|
||||
@@ -39,8 +39,7 @@ const {
|
||||
machineLearningPyV7Id,
|
||||
relationalDatabaseV8Id,
|
||||
collegeAlgebraPyV8Id,
|
||||
foundationalCSharpV8Id,
|
||||
upcomingPythonV8Id
|
||||
foundationalCSharpV8Id
|
||||
} = certIds;
|
||||
|
||||
function isCertAllowed(certSlug: string): boolean {
|
||||
@@ -157,10 +156,9 @@ function createCertTypeIds(challenges: ReturnType<typeof getChallenges>) {
|
||||
[certTypes.foundationalCSharpV8]: getCertById(
|
||||
foundationalCSharpV8Id,
|
||||
challenges
|
||||
),
|
||||
)
|
||||
|
||||
// upcoming
|
||||
[certTypes.upcomingPythonV8]: getCertById(upcomingPythonV8Id, challenges)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -184,7 +182,6 @@ interface CertI {
|
||||
isRelationalDatabaseCertV8?: boolean;
|
||||
isCollegeAlgebraPyCertV8?: boolean;
|
||||
isFoundationalCSharpCertV8?: boolean;
|
||||
isUpcomingPythonCertV8?: boolean;
|
||||
}
|
||||
|
||||
function getUserIsCertMap(user: CertI) {
|
||||
@@ -207,8 +204,7 @@ function getUserIsCertMap(user: CertI) {
|
||||
isMachineLearningPyCertV7 = false,
|
||||
isRelationalDatabaseCertV8 = false,
|
||||
isCollegeAlgebraPyCertV8 = false,
|
||||
isFoundationalCSharpCertV8 = false,
|
||||
isUpcomingPythonCertV8 = false
|
||||
isFoundationalCSharpCertV8 = false
|
||||
} = user;
|
||||
|
||||
return {
|
||||
@@ -230,8 +226,7 @@ function getUserIsCertMap(user: CertI) {
|
||||
isMachineLearningPyCertV7,
|
||||
isRelationalDatabaseCertV8,
|
||||
isCollegeAlgebraPyCertV8,
|
||||
isFoundationalCSharpCertV8,
|
||||
isUpcomingPythonCertV8
|
||||
isFoundationalCSharpCertV8
|
||||
};
|
||||
}
|
||||
|
||||
@@ -390,8 +385,7 @@ export const protectedCertificateRoutes: FastifyPluginCallbackTypebox = (
|
||||
isQaCertV7: true,
|
||||
isRelationalDatabaseCertV8: true,
|
||||
isRespWebDesignCert: true,
|
||||
isSciCompPyCertV7: true,
|
||||
isUpcomingPythonCertV8: true
|
||||
isSciCompPyCertV7: true
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -78,7 +78,6 @@ export const unprotectedCertificateRoutes: FastifyPluginCallbackTypebox = (
|
||||
isRelationalDatabaseCertV8: true,
|
||||
isCollegeAlgebraPyCertV8: true,
|
||||
isFoundationalCSharpCertV8: true,
|
||||
isUpcomingPythonCertV8: true,
|
||||
isHonest: true,
|
||||
username: true,
|
||||
name: true,
|
||||
|
||||
Reference in New Issue
Block a user