-
Notifications
You must be signed in to change notification settings - Fork 13
WIP: organizations api #393
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
b76a0be
feat: added base create organization action
BrRenat 3a1b791
fix: added organization create test
BrRenat e87a335
fix: added tests for create organization, edited method
BrRenat fc2bd00
feat: added organization updateMetadata method
BrRenat 1adb1b4
feat: added remove organization methodf
BrRenat f20c961
fix: added organization info to members
BrRenat 18a066e
feat: added method to switch organization state
BrRenat 9f06b91
feat: added invite to organization method
BrRenat bef4729
fix: edited create organization
BrRenat 0c40b8f
fix: edited create organization
BrRenat dd3aceb
fix: fix lint error
BrRenat 4cc2f80
fix: fix discussions, edited resolveOrganization script
BrRenat 48ff686
feat: added invite, members organization api
BrRenat cd78a91
fix: edited update organization metadata
BrRenat 83d59f5
fix: fix resolve organization metadata
BrRenat 568d716
fix: fix lint errors
BrRenat ce2a09f
feat: added getMetadata action
BrRenat 52efbc6
fix: return oauth in test config
BrRenat 92ae59e
fix: added organization api docs
BrRenat f00e516
fix: edited lua script, metadata test
BrRenat 1e1e66e
fix: fix lua script
BrRenat 103e06e
fix: fix updateMetadata test
BrRenat bf3f182
fix: edited invite member to organization
BrRenat a0e96b4
fix: edited add organization members
BrRenat 6e07ce8
fix: fix organization members test
BrRenat 7e6b9d6
fix: edited send invite action
BrRenat 80ffac9
fix: fix get organization test
BrRenat 96c353b
fix: fix lint test
BrRenat 9df8646
fix: return oauth config
BrRenat 218563a
fix: add allowed method to organization actions
BrRenat ccd3e9b
fix: fix auth in organization tests
BrRenat 074d226
fix: restart semaphoreci
BrRenat 5e7883c
feat: added request organizations list
BrRenat 40a9e0c
fix: fix organizations lua script
BrRenat 649bcdd
fix: remove organization id from ORGANIZATIONS_INDEX
BrRenat 0996eb3
fix: edited allowed handler for organizations
BrRenat 08e0d2d
fix: added lock on create organization, resolved discussions
BrRenat 9f3971b
fix: returned bluebird promise
BrRenat e27d17b
fix: actions response format, switch name to id on requests
BrRenat 70becb8
fix: edited create organization action
BrRenat 17000d3
fix: skip facebook test
BrRenat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "name" | ||
| ], | ||
| "properties": { | ||
| "name": { | ||
| "type": "string" | ||
| }, | ||
| "active": { | ||
| "type": "boolean" | ||
| }, | ||
| "metadata": { | ||
| "type": "object", | ||
| "minProperties": 1 | ||
| }, | ||
| "members": { | ||
| "type": "array", | ||
| "minItems": 1, | ||
| "items": { | ||
| "$ref": "common.json#/definitions/organizationMember" | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId", | ||
| "username", | ||
| "inviteToken" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| }, | ||
| "username": { | ||
| "type": "string" | ||
| }, | ||
| "inviteToken": { | ||
| "type": "string", | ||
| "minLength": 1 | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId", | ||
| "member" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| }, | ||
| "member": { | ||
| "$ref": "common.json#/definitions/organizationMember" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "type": "object", | ||
| "properties": { | ||
| "offset": { | ||
| "type": "integer", | ||
| "minimum": 0 | ||
| }, | ||
| "limit": { | ||
| "type": "integer", | ||
| "minimum": 1, | ||
| "maximum": 100 | ||
| }, | ||
| "order": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "ASC", | ||
| "DESC" | ||
| ] | ||
| }, | ||
| "criteria": { | ||
| "type": "string" | ||
| }, | ||
| "filter": { | ||
| "$ref": "common.json#/definitions/filter" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId", | ||
| "member" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| }, | ||
| "member": { | ||
| "$ref": "common.json#/definitions/organizationMember" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId", | ||
| "username", | ||
| "permission" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| }, | ||
| "username": { | ||
| "type": "string" | ||
| }, | ||
| "permission": { | ||
| "type": "object", | ||
| "minProperties": 1, | ||
| "properties": { | ||
| "$set": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "minLength": 1 | ||
| }, | ||
| "minItems": 1 | ||
| }, | ||
| "$remove": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "minLength": 1 | ||
| }, | ||
| "minItems": 1 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId", | ||
| "username" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| }, | ||
| "username": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId", | ||
| "active" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| }, | ||
| "active": { | ||
| "type": "boolean" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "type": "object", | ||
| "required": [ | ||
| "organizationId", | ||
| "metadata" | ||
| ], | ||
| "properties": { | ||
| "organizationId": { | ||
| "type": "string" | ||
| }, | ||
| "metadata": { | ||
| "$ref": "common.json#/definitions/metadata" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.