Skip to content

Commit 3051ef4

Browse files
committed
fix: showing all the skills
1 parent 75ffc0a commit 3051ef4

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

config/constants/dev.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,5 @@ module.exports = {
5656
CONTENTFUL_DELIVERY_KEY : process.env.CONTENTFUL_DELIVERY_KEY,
5757
CONTENTFUL_SPACE_ID : process.env.CONTENTFUL_SPACE_ID,
5858

59-
SKILL_PROVIDER_ID: '9cc0795a-6e12-4c84-9744-15858dba1861',
6059
TAAS_APP_URL: 'https://platform.topcoder-dev.com/taas'
6160
}

config/constants/master.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,5 @@ module.exports = {
5656
CONTENTFUL_DELIVERY_KEY : process.env.CONTENTFUL_DELIVERY_KEY,
5757
CONTENTFUL_SPACE_ID : process.env.CONTENTFUL_SPACE_ID,
5858

59-
SKILL_PROVIDER_ID: 'e8467a61-7e20-4ed2-a839-c6340d90f408',
6059
TAAS_APP_URL: 'https://platform.topcoder.com/taas'
6160
}

config/constants/qa.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@ module.exports = {
5151

5252
TC_CDN_URL: process.env.TC_CDN_URL,
5353

54-
SKILL_PROVIDER_ID: '9cc0795a-6e12-4c84-9744-15858dba1861',
5554
TAAS_APP_URL: 'https://platform.topcoder-dev.com/taas'
5655
}

src/api/skills.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TC_API_URL, SKILL_PROVIDER_ID } from '../config/constants'
1+
import { TC_API_URL } from '../config/constants'
22
import { axiosInstance as axios } from './requestInterceptor'
33

44
const skillPageSize = 100
@@ -45,5 +45,5 @@ function getAllSkills() {
4545
* @param {number} page The page number to load
4646
*/
4747
function getSkillsPage(page) {
48-
return axios.get(`${TC_API_URL}/v5/skills?skillProviderId=${SKILL_PROVIDER_ID}&perPage=${skillPageSize}&orderBy=name&page=${page}`)
48+
return axios.get(`${TC_API_URL}/v5/taas-teams/skills?perPage=${skillPageSize}&orderBy=name&page=${page}`)
4949
}

src/projects/detail/components/SkillsQuestion/SkillsQuestionBase.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ import { getSkills } from '../../../../api/skills'
1818
* @returns {Array} available options
1919
*/
2020
const getAvailableOptions = (categoriesMapping, selectedCategories, skillsCategories, options) => {
21+
// NOTE:
22+
// Disable filtering skills by categories for now, because V5 Skills API doesn't have categories for now.
23+
/*
2124
let mappedCategories
2225
if (categoriesMapping) {
2326
mappedCategories = _.map(selectedCategories, (category) => categoriesMapping[category] ? categoriesMapping[category].toLowerCase() : null)
@@ -28,6 +31,7 @@ const getAvailableOptions = (categoriesMapping, selectedCategories, skillsCatego
2831
if (mappedCategories) {
2932
return options.filter(option => _.intersection((option.categories || []).map(c => c.toLowerCase()), mappedCategories).length > 0)
3033
}
34+
*/
3135
return options
3236
}
3337

0 commit comments

Comments
 (0)