-
Notifications
You must be signed in to change notification settings - Fork 32
✨ web-api: Adds endpoint to retrieve project services with Release and Access Information #7287
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
pcrespov
merged 46 commits into
ITISFoundation:master
from
pcrespov:is6201/catalog-history-alternative
Mar 5, 2025
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
155bb91
draft project/services api
pcrespov bcf3fa4
draft test and api in catalog
pcrespov 1ff3970
updates OAS
pcrespov 36d0150
draft
pcrespov c110249
draft 2
pcrespov 1f9da9e
draft 3
pcrespov 504a11d
fix tests
pcrespov 19cc9d1
expanding test
pcrespov 50f2de1
update
pcrespov d2f8ec9
connect to rpc
pcrespov f5a7c40
updates listing
pcrespov 43ae5b0
fix tests
pcrespov 9479efd
cleanup
pcrespov dfd365e
drop api changes
pcrespov 13013e3
items
pcrespov 47d96c6
other user fixture
pcrespov 3451d57
fix tests
pcrespov e2bfac8
drafts test
pcrespov 18c0dd5
fixes models
pcrespov b3aed7d
minor oas changes
pcrespov 52319ab
adds get_project_services handle
pcrespov 99e999c
drafts test
pcrespov ead3316
implementing get_project_nodes_services
pcrespov a79eb6d
adds test
pcrespov 4c5c868
fixes mypy
pcrespov e663629
fixes pylint
pcrespov a6f3051
fixes tests
pcrespov 02bb0fa
updates OAS
pcrespov 323ab38
services/webserver api version: 0.60.0 → 0.61.0
pcrespov d1ae3d9
adds access check
pcrespov b31ab1f
accepts no ownership
pcrespov f5c9a28
updates OAS
pcrespov 31d0f11
cleanup
pcrespov ea7a012
extends test
pcrespov 8183622
fixes pylint
pcrespov 924c083
Merge branch 'master' into is6201/catalog-history-alternative
pcrespov 056bedc
fix pylint
pcrespov 0510b0b
fix sonar
pcrespov c53cab9
@GitHK review: validate on server side
pcrespov 5131518
Merge branch 'master' into is6201/catalog-history-alternative
pcrespov 6797b92
Merge branch 'master' into is6201/catalog-history-alternative
pcrespov b4035d5
@sanderegg review: rename error
pcrespov 6b02ba2
Merge branch 'master' into is6201/catalog-history-alternative
pcrespov b7e4327
Merge branch 'master' into is6201/catalog-history-alternative
pcrespov 517952d
Merge branch 'master' into is6201/catalog-history-alternative
pcrespov a7f864a
Merge branch 'master' into is6201/catalog-history-alternative
pcrespov 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
15 changes: 12 additions & 3 deletions
15
packages/models-library/src/models_library/access_rights.py
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 |
|---|---|---|
| @@ -1,9 +1,18 @@ | ||
| from typing import Annotated | ||
|
|
||
| from pydantic import BaseModel, ConfigDict, Field | ||
|
|
||
|
|
||
| class AccessRights(BaseModel): | ||
| read: bool = Field(..., description="has read access") | ||
| write: bool = Field(..., description="has write access") | ||
| delete: bool = Field(..., description="has deletion rights") | ||
| read: Annotated[bool, Field(description="has read access")] | ||
| write: Annotated[bool, Field(description="has write access")] | ||
| delete: Annotated[bool, Field(description="has deletion rights")] | ||
|
|
||
| model_config = ConfigDict(extra="forbid") | ||
|
|
||
|
|
||
| class ExecutableAccessRights(BaseModel): | ||
| write: Annotated[bool, Field(description="can change executable settings")] | ||
| execute: Annotated[bool, Field(description="can run executable")] | ||
|
|
||
| model_config = ConfigDict(extra="forbid") |
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.
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.