Skip to content
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

Add implementation for Members, Sources and Invitations endpoints #131

Merged
merged 20 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ddd3401
feat(client): add members related endpoints
GG-Yanne Dec 5, 2024
d322eaa
feat(client): add teams related endpoints
GG-Yanne Dec 5, 2024
8e9748d
feat(client): add sources related endpoints
GG-Yanne Dec 6, 2024
8555586
feat(client): add invitation related endpoints
GG-Yanne Dec 6, 2024
a932163
docs(changelog): added changelog for teams, members, invitations and …
GG-Yanne Dec 6, 2024
b5f7f6b
fix(models): changed wrong keyword argument for parameters schema and…
GG-Yanne Dec 6, 2024
009bcad
refactor(client): delete methods now return None in case deletion was…
GG-Yanne Dec 11, 2024
f59f4a1
refactor(models): remove many arguments in from_dict and move list se…
GG-Yanne Dec 11, 2024
a672070
fix(models): mark last_scan as optional for a scan object
GG-Yanne Dec 11, 2024
27bc067
test(client): changed error message to detail
GG-Yanne Dec 11, 2024
3e17f92
refactor(models): move schema, parameters and paginated response to m…
GG-Yanne Dec 11, 2024
463062c
test(client): change client tests to allow tests to run on any workspace
GG-Yanne Dec 13, 2024
90f3f02
refactor(client): rename list team source to better match public api doc
GG-Yanne Dec 13, 2024
4a06722
refactor(models): prefix all post_load method with make
GG-Yanne Dec 18, 2024
994f987
refactor(client): rename "update" function model's argument to payload
GG-Yanne Dec 18, 2024
1ff53dc
docs(tests): add documentation around limitations of initial workplac…
GG-Yanne Dec 18, 2024
20b1624
test(client): move get functions to utils file
GG-Yanne Dec 18, 2024
b87bc42
fix(client): explicit add status code for all response
GG-Yanne Dec 19, 2024
3efc288
fix(models_utils): paginated data now also receives status code when …
GG-Yanne Dec 19, 2024
5133106
refactor(client): change query_parameters to parameters for list_members
GG-Yanne Dec 20, 2024
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
A new scriv changelog fragment.

Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed

- A bullet item for the Removed category.

-->

### Added

- Added support for members and teams endpoints.
- Added support for invitations endpoints.
- Added support for sources endpoints.

<!--
### Changed

- A bullet item for the Changed category.

-->
<!--
### Deprecated

- A bullet item for the Deprecated category.

-->
<!--
### Fixed

- A bullet item for the Fixed category.

-->
<!--
### Security

- A bullet item for the Security category.

-->
31 changes: 31 additions & 0 deletions doc/dev/tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Users, teams and sources

It is possible to removed all cassettes from this repository and run them all by providing a valid personal access token.

However, for users, teams and sources, this requires a workplace with enough data filled in.

## For source related tests

We require the workplace to have:

- At least two sources

## For member related tests

We require the workplace to have:

- At least two members, they should have different access levels
- At least one invitation sent out

## For team related tests

We require the workplace to have :

- At least two teams
- These teams should have 2 or more members
- These teams should have at least one monitored source in their perimeter
- ⚠️ No team should have all available sources in their perimeter
- There should exist a team where at least one member is not invited
- There should exist one pending team invitation

> Keep in mind that some of these tests will delete resources, so they should run in an isolated workplace
Loading
Loading