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

Release v1.2.4 : MM Dashboard#326

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 18 commits intomasterfromdevelop
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
18 commits
Select commitHold shift + click to select a range
53bd448
Add support for fetching challenge statistics
ThomasKranitsasDec 10, 2021
dab2735
fix lint
ThomasKranitsasDec 10, 2021
dd7a143
fix tests
ThomasKranitsasDec 10, 2021
1d57bd8
Update package-lock.json
luizrrodriguesDec 10, 2021
49e51cb
Revert changes to package-lock.json
luizrrodriguesDec 10, 2021
078df5e
ci: added tag test-release
luizrrodriguesDec 10, 2021
4005fe4
ci: version test-release
luizrrodriguesDec 10, 2021
3c3009d
Fix export action
luizrrodriguesDec 10, 2021
142e563
ci: update test-release version
luizrrodriguesDec 10, 2021
0df35a9
Fix snapshots
luizrrodriguesDec 10, 2021
2397bab
Revert "feat: use v5 api to save traits"
luizrrodriguesDec 13, 2021
83a7c5c
Merge pull request #325 from topcoder-platform/revert-322-feat/traits…
luizrrodriguesDec 13, 2021
4101426
Merge branch 'develop' into mm-dashboard
luizrrodriguesDec 13, 2021
93f5a72
fix loading indicator
luizrrodriguesDec 13, 2021
07b6620
Merge pull request #324 from topcoder-platform/mm-dashboard
luizrrodriguesDec 13, 2021
bb277af
fix: for topcoder-platform/community-app#5935
luizrrodriguesDec 13, 2021
818d610
ci: removed tag test-release
luizrrodriguesDec 13, 2021
71f3963
fix: for topcoder-platform/community-app#5935
luizrrodriguesDec 13, 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: 2 additions & 0 deletions__tests__/__snapshots__/index.js.snap
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,6 +12,8 @@ Object {
"challenge": Object {
"dropCheckpoints": [Function],
"dropResults": [Function],
"fetchChallengeStatisticsDone": [Function],
"fetchChallengeStatisticsInit": [Function],
"fetchCheckpointsDone": [Function],
"fetchCheckpointsInit": [Function],
"getActiveChallengesCountDone": [Function],
Expand Down
4 changes: 4 additions & 0 deletions__tests__/actions/profile.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,6 +18,8 @@ const linkedAccounts = [{

// Mock services
const mockMembersService = {
getPresignedUrl: jest.fn().mockReturnValue(Promise.resolve()),
uploadFileToS3: jest.fn().mockReturnValue(Promise.resolve()),
updateMemberPhoto: jest.fn().mockReturnValue(Promise.resolve('url-of-photo')),
updateMemberProfile: jest.fn().mockReturnValue(Promise.resolve(profile)),
addSkill: jest.fn().mockReturnValue(Promise.resolve({ skills: [skill] })),
Expand DownExpand Up@@ -45,6 +47,8 @@ test('Module exports', () => expect(actions).toMatchSnapshot());
test('profile.uploadPhotoDone', async () => {
const actionResult = await redux.resolveAction(actions.profile.uploadPhotoDone(handle, tokenV3));
expect(actionResult).toMatchSnapshot();
expect(mockMembersService.getPresignedUrl).toBeCalled();
expect(mockMembersService.uploadFileToS3).toBeCalled();
expect(mockMembersService.updateMemberPhoto).toBeCalled();
});

Expand Down
36 changes: 36 additions & 0 deletions__tests__/reducers/__snapshots__/challenge.js.snap
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,6 +15,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -40,6 +41,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -65,6 +67,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -87,6 +90,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -118,6 +122,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -151,6 +156,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -182,6 +188,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -211,6 +218,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -243,6 +251,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -276,6 +285,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -309,6 +319,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -342,6 +353,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -375,6 +387,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -406,6 +419,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -439,6 +453,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -470,6 +485,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -499,6 +515,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -531,6 +548,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -552,6 +570,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -577,6 +596,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -602,6 +622,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -624,6 +645,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -655,6 +677,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -688,6 +711,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -719,6 +743,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -748,6 +773,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -780,6 +806,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -801,6 +828,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -826,6 +854,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -851,6 +880,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand All@@ -873,6 +903,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -904,6 +935,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -937,6 +969,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -968,6 +1001,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -997,6 +1031,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand DownExpand Up@@ -1029,6 +1064,7 @@ Object {
"registering": false,
"results": null,
"resultsLoadedForChallengeId": "",
"statisticsData": null,
"submissionInformation": null,
"unregistering": false,
"updatingChallengeUuid": "",
Expand Down
40 changes: 34 additions & 6 deletionsdocs/services.members.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,7 +25,9 @@ members via API V3.
* [.addSkill(handle, skillTagId)](#module_services.members..MembersService+addSkill) ⇒ <code>Promise</code>
* [.hideSkill(handle, skillTagId)](#module_services.members..MembersService+hideSkill) ⇒ <code>Promise</code>
* [.updateMemberProfile(profile)](#module_services.members..MembersService+updateMemberProfile) ⇒ <code>Promise</code>
* [.updateMemberPhoto(userHandle, file)](#module_services.members..MembersService+updateMemberPhoto) ⇒ <code>Promise</code>
* [.getPresignedUrl(userHandle, file)](#module_services.members..MembersService+getPresignedUrl) ⇒ <code>Promise</code>
* [.updateMemberPhoto(S3Response)](#module_services.members..MembersService+updateMemberPhoto) ⇒ <code>Promise</code>
* [.uploadFileToS3(presignedUrlResponse)](#module_services.members..MembersService+uploadFileToS3) ⇒ <code>Promise</code>
* [.verifyMemberNewEmail(handle, emailVerifyToken)](#module_services.members..MembersService+verifyMemberNewEmail) ⇒ <code>Promise</code>

<a name="module_services.members.getService"></a>
Expand DownExpand Up@@ -63,7 +65,9 @@ Service class.
* [.addSkill(handle, skillTagId)](#module_services.members..MembersService+addSkill) ⇒ <code>Promise</code>
* [.hideSkill(handle, skillTagId)](#module_services.members..MembersService+hideSkill) ⇒ <code>Promise</code>
* [.updateMemberProfile(profile)](#module_services.members..MembersService+updateMemberProfile) ⇒ <code>Promise</code>
* [.updateMemberPhoto(userHandle, file)](#module_services.members..MembersService+updateMemberPhoto) ⇒ <code>Promise</code>
* [.getPresignedUrl(userHandle, file)](#module_services.members..MembersService+getPresignedUrl) ⇒ <code>Promise</code>
* [.updateMemberPhoto(S3Response)](#module_services.members..MembersService+updateMemberPhoto) ⇒ <code>Promise</code>
* [.uploadFileToS3(presignedUrlResponse)](#module_services.members..MembersService+uploadFileToS3) ⇒ <code>Promise</code>
* [.verifyMemberNewEmail(handle, emailVerifyToken)](#module_services.members..MembersService+verifyMemberNewEmail) ⇒ <code>Promise</code>

<a name="new_module_services.members..MembersService_new"></a>
Expand DownExpand Up@@ -252,18 +256,42 @@ Updates member profile.
| --- | --- | --- |
| profile | <code>Object</code> | The profile to update. |

<a name="module_services.members..MembersService+updateMemberPhoto"></a>
<a name="module_services.members..MembersService+getPresignedUrl"></a>

#### membersService.updateMemberPhoto(userHandle, file) ⇒ <code>Promise</code>
Uploads and updatesmember photo.
#### membersService.getPresignedUrl(userHandle, file) ⇒ <code>Promise</code>
Gets presigned url formember photo file.

**Kind**: instance method of [<code>MembersService</code>](#module_services.members..MembersService)
**Returns**: <code>Promise</code> - Resolves to the api response content

| Param | Type | Description |
| --- | --- | --- |
| userHandle | <code>String</code> | The user handle |
| file | <code>File</code> | The file to be uploaded |
| file | <code>File</code> | The file to get its presigned url |

<a name="module_services.members..MembersService+updateMemberPhoto"></a>

#### membersService.updateMemberPhoto(S3Response) ⇒ <code>Promise</code>
Updates member photo.

**Kind**: instance method of [<code>MembersService</code>](#module_services.members..MembersService)
**Returns**: <code>Promise</code> - Resolves to the api response content

| Param | Type | Description |
| --- | --- | --- |
| S3Response | <code>Object</code> | The response from uploadFileToS3() function. |

<a name="module_services.members..MembersService+uploadFileToS3"></a>

#### membersService.uploadFileToS3(presignedUrlResponse) ⇒ <code>Promise</code>
Uploads file to S3.

**Kind**: instance method of [<code>MembersService</code>](#module_services.members..MembersService)
**Returns**: <code>Promise</code> - Resolves to the api response content

| Param | Type | Description |
| --- | --- | --- |
| presignedUrlResponse | <code>Object</code> | The presigned url response from getPresignedUrl() function. |

<a name="module_services.members..MembersService+verifyMemberNewEmail"></a>

Expand Down
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.2.3",
"version": "1.2.4",
"dependencies": {
"auth0-js": "^6.8.4",
"config": "^3.2.0",
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp