-
Notifications
You must be signed in to change notification settings - Fork 291
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
Integrated code lifecycle
: Let users generate personal access tokens
#9182
Conversation
WalkthroughThe recent changes enhance user account management by introducing new RESTful endpoints for handling SSH public keys and Version Control System (VCS) access tokens. An Angular component has been added for better user interaction with these tokens. Additionally, improvements in logging, error handling, and testing have been implemented to strengthen the overall functionality of the authentication management system. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant VcsAccessTokensSettingsComponent
participant AccountService
participant AccountResource
User->>VcsAccessTokensSettingsComponent: View VCS Token Settings
VcsAccessTokensSettingsComponent->>AccountService: Fetch current tokens
AccountService->>AccountResource: Request tokens
AccountResource-->>AccountService: Return tokens
AccountService-->>VcsAccessTokensSettingsComponent: Return tokens
VcsAccessTokensSettingsComponent-->>User: Display tokens
User->>VcsAccessTokensSettingsComponent: Add new token
VcsAccessTokensSettingsComponent->>AccountService: Add token request
AccountService->>AccountResource: Create new token
AccountResource-->>AccountService: Token created
AccountService-->>VcsAccessTokensSettingsComponent: Token added
VcsAccessTokensSettingsComponent-->>User: Confirm token added
sequenceDiagram
participant User
participant VcsAccessTokensSettingsComponent
participant AccountService
participant AccountResource
User->>VcsAccessTokensSettingsComponent: Delete token
VcsAccessTokensSettingsComponent->>AccountService: Delete token request
AccountService->>AccountResource: Delete token
AccountResource-->>AccountService: Token deleted
AccountService-->>VcsAccessTokensSettingsComponent: Confirm deletion
VcsAccessTokensSettingsComponent-->>User: Confirm token deletion
Possibly related issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 5
src/main/java/de/tum/in/www1/artemis/web/rest/UserResource.java
Outdated
Show resolved
Hide resolved
.../app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.component.ts
Outdated
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add 1-2 server tests?
.../app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.component.ts
Show resolved
Hide resolved
.../app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.component.ts
Outdated
Show resolved
Hide resolved
...n/webapp/app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.html
Outdated
Show resolved
Hide resolved
...n/webapp/app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.html
Outdated
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
...bapp/app/shared/user-settings/user-settings-container/user-settings-container.component.html
Outdated
Show resolved
Hide resolved
.../app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.component.ts
Outdated
Show resolved
Hide resolved
.../app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.component.ts
Outdated
Show resolved
Hide resolved
.../app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.component.ts
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
…tings/vcs-access-tokens-settings.component.ts Co-authored-by: Johannes Stöhr <[email protected]>
Co-authored-by: Johannes Stöhr <[email protected]>
Co-authored-by: Johannes Stöhr <[email protected]>
Co-authored-by: Johannes Stöhr <[email protected]>
Co-authored-by: Johannes Stöhr <[email protected]>
Co-authored-by: Patrik Zander <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 8
...n/webapp/app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.html
Outdated
Show resolved
Hide resolved
...n/webapp/app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.html
Outdated
Show resolved
Hide resolved
src/test/javascript/spec/component/account/vcs-access-token-settings.component.spec.ts
Outdated
Show resolved
Hide resolved
.../app/shared/user-settings/vcs-access-tokens-settings/vcs-access-tokens-settings.component.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-approve (test)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapprove tested on TS3. Max 1 year works 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-approve
Integrated code lifecycle
: Let users generate personal VCS access tokensIntegrated code lifecycle
: Let users generate personal access tokens
Checklist
General
Server
Client
Changes affecting Programming Exercises
Motivation and Context
Users should be able to use a personal access token to interact with the LocalVC. Especially for instructors this is handy, as they can use the token (similar as in the gitlab setup), to also clone the student's repositories.
Description
This PR:
Steps for Testing
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Code Review
Manual Tests
Test Coverage
Screenshots
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Style
Tests