-
Notifications
You must be signed in to change notification settings - Fork 301
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
: Improve SSH handling
#8772
Conversation
WalkthroughRecent modifications enhance the application by introducing SSH key management features, such as adding, viewing, editing, and deleting SSH keys. Key additions include new methods in backend services, updates to the Angular frontend components, and relevant localization entries. These changes improve user management and security in repository interactions, especially for users utilizing GitLab version control. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UserResource
participant AccountService
participant AngularComponent
User->>AngularComponent: Interact with SSH Key Management UI
AngularComponent->>AccountService: deleteSshPublicKey()
AccountService->>UserResource: DELETE /api/users/sshpublickey
UserResource->>AccountService: Confirm Deletion
AccountService->>AngularComponent: Update UI
AngularComponent->>User: Display updated SSH Key status
In this sequence diagram, a user interacts with the Angular component for SSH key management. The component calls the 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Integrated code lifecycle
: SSH usability improvements
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: 9
src/main/java/de/tum/in/www1/artemis/web/rest/UserResource.java
Outdated
Show resolved
Hide resolved
src/main/webapp/app/shared/user-settings/ssh-settings/ssh-user-settings.component.ts
Outdated
Show resolved
Hide resolved
src/main/webapp/app/shared/user-settings/ssh-settings/ssh-user-settings.component.ts
Outdated
Show resolved
Hide resolved
src/main/webapp/app/shared/user-settings/account-information/account-information.component.ts
Show resolved
Hide resolved
...webapp/app/shared/user-settings/user-settings-container/user-settings-container.component.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.
Actionable comments posted: 7
Outside diff range comments (1)
src/test/javascript/spec/component/account/account-information.component.spec.ts (1)
Line range hint
48-51
: Disallow duplicate setup and teardown hooks.The
beforeEach
block is duplicated inside thedescribe
function. Consider combining them into a singlebeforeEach
block to avoid redundancy and potential confusion during test execution.
src/main/webapp/app/shared/components/clone-repo-button/clone-repo-button.component.ts
Outdated
Show resolved
Hide resolved
...webapp/app/shared/user-settings/user-settings-container/user-settings-container.component.ts
Show resolved
Hide resolved
src/test/javascript/spec/component/account/user-settings-container.component.spec.ts
Show resolved
Hide resolved
src/test/javascript/spec/component/account/ssh-user-settings.component.spec.ts
Show resolved
Hide resolved
src/main/webapp/app/shared/user-settings/ssh-settings/ssh-user-settings.component.html
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.
Imo it would be better if the warning would disapear now, see also #6650. Before we were not able to know if the user has a ssh key setup, now we can test for that and should hide the message. |
Good point, I changed it so that the warning goes away when there is a SSH key available. 👍 |
…tum/Artemis into feature/ssh-usability-improvements
1d29461
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
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
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
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
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
Integrated code lifecycle
: SSH usability improvementsIntegrated code lifecycle
: Improve SSH handling
Checklist
General
Server
Client
authorities
to all new routes and checked the course groups for displaying navigation elements (links, buttons).Motivation and Context
Users should use SSH to clone from localVC for programming exercise repositories.
Description
Link to SSH settings in the clone dialogue:
SSH settings page: - creating a new key
save the key:
edit or delete the key:
Steps for Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Code Review
Manual Tests
Test Coverage
Screenshots
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests