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

Feature/recommender sync develop#303

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

Merged
luizrrodrigues merged 22 commits intodevelopfromfeature/recommender-sync-develop
Mar 1, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
22 commits
Select commitHold shift + click to select a range
3ba0130
poc-recommender-sub-2
dedywahyudiJan 27, 2021
9abad2e
Test Release - POC Recommender Submission 2
luizrrodriguesJan 27, 2021
6681ad3
final fixes
nursoltan-sJan 28, 2021
fe7ea5a
Merge pull request #296 from nursoltan-s/poc-recommender-nursoltan-s
dedywahyudiJan 28, 2021
7b24787
fix sort by descending best score
nursoltan-sJan 29, 2021
c6ed0f4
Merge pull request #297 from nursoltan-s/poc-recommender-nursoltan-s-1
dedywahyudiJan 29, 2021
19aa7b0
Test Release - POC Recommender Sub 2 - Final Fixes
luizrrodriguesJan 29, 2021
0f99535
change on json data
nursoltan-sJan 29, 2021
3ef277e
Merge pull request #298 from nursoltan-s/nurka
dedywahyudiJan 30, 2021
bfc370a
bug fixes
nursoltan-sJan 30, 2021
3579710
Merge pull request #299 from nursoltan-s/nurka-2
dedywahyudiJan 30, 2021
c5a7697
Test Release - POC Recommender Sub 2 - FF2
luizrrodriguesJan 31, 2021
9228fd3
integrate recommendation challenges with api
nursoltan-sFeb 17, 2021
127c845
Merge pull request #300 from nursoltan-s/nursoltan/final-fixes
dedywahyudiFeb 17, 2021
a677ae6
Test Release - POC Recommender Sub 2 - FF3
luizrrodriguesFeb 18, 2021
d1936c3
fix recommender api pagination
nursoltan-sFeb 24, 2021
aea29d9
resolve merge conflict
nursoltan-sFeb 24, 2021
f8e98c2
fix cors issue
nursoltan-sFeb 24, 2021
d8efc2a
Merge pull request #302 from nursoltan-s/recommender-final-fix-api
dedywahyudiFeb 24, 2021
5669e36
Test Release - POC Recommender Sub 2 - FF4
luizrrodriguesFeb 24, 2021
8ffa5d1
Recommender sync with develop
luizrrodriguesFeb 27, 2021
5f27361
Recommender - Smoke Testing
luizrrodriguesMar 1, 2021
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: 1 addition & 1 deletion.circleci/config.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,7 +28,7 @@ jobs:
- attach_workspace:
at: .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm publish
- run: npm publish --tag test-release
# dont change anything
workflows:
version: 2
Expand Down
2 changes: 1 addition & 1 deletionpackage-lock.json
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

2 changes: 1 addition & 1 deletionpackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,7 +31,7 @@
"lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .",
"test": "npm run lint && npm run jest"
},
"version": "1.1.6",
"version": "1000.27.8",
"dependencies": {
"auth0-js": "^6.8.4",
"config": "^3.2.0",
Expand Down
38 changes: 38 additions & 0 deletionssrc/services/challenges.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -185,6 +185,7 @@ class ChallengesService {
totalCount: res.headers ? res.headers.get('x-total') : 0,
meta: {
allChallengesCount: res.headers ? res.headers.get('x-total') : 0,
allRecommendedChallengesCount: 0,
myChallengesCount: 0,
ongoingChallengesCount: 0,
openChallengesCount: 0,
Expand DownExpand Up@@ -527,6 +528,43 @@ class ChallengesService {
});
}

/**
* Gets challenges.
* @param {Object} filters Optional.
* @param {Object} params Optional.
* @param {String} handle user handle
* @return {Promise} Resolves to the api response.
*/
async getRecommendedChallenges(filter, handle) {
filter.frontFilter.per_page = filter.frontFilter.perPage;
delete filter.frontFilter.perPage;

const query = getFilterUrl(filter.backendFilter, filter.frontFilter);

let res = {};
let totalCount = 0;
if (_.some(filter.frontFilter.tracks, val => val)
&& !_.isEqual(filter.frontFilter.types, [])) {
const url = `/recommender-api/${handle}?${query}`;
res = await this.private.apiV5.get(url).then(checkErrorV5);
totalCount = res.headers.get('x-total') || 0;
}

const challenges = res.result ? res.result.filter(ch => ch.jaccard_index > 0) : [];
return {
challenges,
totalCount,
meta: {
allChallengesCount: totalCount,
allRecommendedChallengesCount: 0,
myChallengesCount: 0,
ongoingChallengesCount: 0,
openChallengesCount: 0,
totalCount,
},
};
}

/**
* Gets SRM matches.
* @param {Object} params
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp