Skip to content

feat: added get and update actions for organization member#484

Merged
BrRenat merged 2 commits intostagingfrom
feat/SLR-1994
Nov 27, 2020
Merged

feat: added get and update actions for organization member#484
BrRenat merged 2 commits intostagingfrom
feat/SLR-1994

Conversation

@BrRenat
Copy link
Copy Markdown
Collaborator

@BrRenat BrRenat commented Nov 26, 2020

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 26, 2020

Codecov Report

Merging #484 (c442732) into staging (287f7b3) will decrease coverage by 0.00%.
The diff coverage is 94.91%.

Impacted file tree graph

@@             Coverage Diff             @@
##           staging     #484      +/-   ##
===========================================
- Coverage    94.99%   94.99%   -0.01%     
===========================================
  Files          159      162       +3     
  Lines         3095     3154      +59     
===========================================
+ Hits          2940     2996      +56     
- Misses         155      158       +3     
Impacted Files Coverage Δ
.../utils/organization/update-organization-members.js 93.75% <93.75%> (ø)
src/actions/organization/members/get.js 95.00% <95.00%> (ø)
src/actions/organization/members/update.js 95.45% <95.45%> (ø)
src/utils/organization/get-organization-members.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 287f7b3...ba5d85a. Read the comment docs.

const $setKeys = $set && Object.keys($set);
const $setLength = $setKeys && $setKeys.length || 0;
if ($setLength > 0) {
pipeline.hmset(memberKey, mapValues($set, JSONStringify));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const values = $set ? Object.values($set) : false

if (values && values.length) {
  pipeline.hmset(memberKey, values.map(JSONStringify))
}

afterEach(global.clearRedis);

it('must reject invalid params and return detailed error', function test() {
return this.dispatch('users.organization.members.update', {})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

как-то так:

await assert.rejects(this.dispatch('users.organization.members.update', {}), {
   name: 'HttpStatusError'
})

@BrRenat BrRenat merged commit b905071 into staging Nov 27, 2020
@BrRenat BrRenat deleted the feat/SLR-1994 branch November 27, 2020 16:21
BrRenat added a commit that referenced this pull request Nov 27, 2020
* feat: added get and update actions for organization member

* fix: bump mailer templates
BrRenat added a commit that referenced this pull request Nov 29, 2020
* fix: edited actions for the organization members and invites (#481)

* fix: edited actions for the organization members and invites

* fix: not include added members in invite list

* fix: update mailer templates

* chore(release): 14.12.3-rc.1 [skip ci]

## [14.12.3-rc.1](v14.12.2...v14.12.3-rc.1) (2020-11-16)

### Bug Fixes

* edited actions for the organization members and invites ([#481](#481)) ([a3f2627](a3f2627))

* fix: added new props form email config in validation scheme

* chore(release): 14.12.3-rc.2 [skip ci]

## [14.12.3-rc.2](v14.12.3-rc.1...v14.12.3-rc.2) (2020-11-18)

### Bug Fixes

* added new props form email config in validation scheme ([6625eb6](6625eb6))

* fix: edit emal types in validate config

* fix: omit required email types in validation config

* fix: fix test config

* chore(release): 14.12.3-rc.3 [skip ci]

## [14.12.3-rc.3](v14.12.3-rc.2...v14.12.3-rc.3) (2020-11-18)

### Bug Fixes

* edit emal types in validate config ([43896ba](43896ba))
* fix test config ([0db5127](0db5127))
* omit required email types in validation config ([f2b16de](f2b16de))

* fix: allow any types for user permission

* chore(release): 14.12.3-rc.4 [skip ci]

## [14.12.3-rc.4](v14.12.3-rc.3...v14.12.3-rc.4) (2020-11-20)

### Bug Fixes

* allow any types for user permission ([be0d9dc](be0d9dc))

* fix: remove invite after accept

* chore(release): 14.12.3-rc.5 [skip ci]

## [14.12.3-rc.5](v14.12.3-rc.4...v14.12.3-rc.5) (2020-11-23)

### Bug Fixes

* remove invite after accept ([287f7b3](287f7b3))

* feat: added get and update actions for organization member (#484)

* feat: added get and update actions for organization member

* fix: bump mailer templates

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
AVVS pushed a commit that referenced this pull request Nov 29, 2020
# [14.13.0-rc.1](v14.12.3...v14.13.0-rc.1) (2020-11-29)

### Bug Fixes

* added new props form email config in validation scheme ([c11d040](c11d040))
* allow any types for user permission ([2c708e9](2c708e9))
* edit emal types in validate config ([b162bdf](b162bdf))
* edited actions for the organization members and invites ([#481](#481)) ([cc276bc](cc276bc))
* fix test config ([c1f88e1](c1f88e1))
* omit required email types in validation config ([a05b4fd](a05b4fd))
* remove invite after accept ([2eac8c4](2eac8c4))

### Features

* added get and update actions for organization member ([#484](#484)) ([6d59440](6d59440))
AVVS pushed a commit that referenced this pull request Dec 1, 2020
# [14.13.0](v14.12.3...v14.13.0) (2020-12-01)

### Features

* merge pull request [#485](#485) staging to master ([37645a5](37645a5)), closes [#481](#481) [#481](#481) [#484](#484)
* merge pull request [#486](#486) staging to master ([19b4576](19b4576))
AVVS pushed a commit that referenced this pull request Dec 7, 2020
# [14.14.0-rc.1](v14.13.0...v14.14.0-rc.1) (2020-12-07)

### Bug Fixes

* added new props form email config in validation scheme ([c11d040](c11d040))
* allow any types for user permission ([2c708e9](2c708e9))
* bump templates ([77eedd0](77eedd0))
* edit emal types in validate config ([b162bdf](b162bdf))
* edited actions for the organization members and invites ([#481](#481)) ([cc276bc](cc276bc))
* fix test config ([c1f88e1](c1f88e1))
* merge master ([99fc059](99fc059))
* omit required email types in validation config ([a05b4fd](a05b4fd))
* remove invite after accept ([2eac8c4](2eac8c4))

### Features

* added get and update actions for organization member ([#484](#484)) ([6d59440](6d59440))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants