Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Search by skill IDs#706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jmgasper wants to merge11 commits intodev
base:dev
Choose a base branch
Loading
fromTSJR-327
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions.circleci/config.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,6 +9,7 @@ install_dependency: &install_dependency
sudo apt install jq
sudo apt install python3-pip
sudo pip3 install awscli --upgrade
sudo pip3 install docker==6.1.3
sudo pip3 install docker-compose
install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
Expand DownExpand Up@@ -91,6 +92,7 @@ workflows:
only:
- dev
- CORE-40
- TSJR-327

- "build-qa":
context: org-global
Expand Down
19 changes: 19 additions & 0 deletionssrc/services/ChallengeService.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -590,6 +590,24 @@ async function searchChallenges(currentUser, criteria) {
});
}

const includedSkillIds = _.isArray(criteria.skillIds) ? criteria.skillIds : [];

if (includedSkillIds.length > 0) {
const skillQuery=[]

for (const skillId of includedSkillIds) {
const matchPhrase = {};
matchPhrase[`skills.id`] = `${skillId}`;
skillQuery.push({"match_phrase":matchPhrase})
}
boolQuery.push({
bool:{
should:skillQuery,
minimum_should_match: 1
}
})
}

// FIXME: Tech Debt
let excludeTasks = true;
// if you're an admin or m2m, security rules wont be applied
Expand DownExpand Up@@ -881,6 +899,7 @@ searchChallenges.schema = {
description: Joi.string(),
timelineTemplateId: Joi.string(), // Joi.optionalId(),
reviewType: Joi.string(),
skillIds: Joi.array().items(Joi.string()),
tag: Joi.string(),
tags: Joi.array().items(Joi.string()),
includeAllTags: Joi.boolean().default(true),
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp