-
Notifications
You must be signed in to change notification settings - Fork 302
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
Adaptive learning
: Fix an issue that standardized competencies could not be deleted when they had a linked competency
#8709
Conversation
src/main/resources/config/liquibase/changelog/20240531210000_changelog.xml
Outdated
Show resolved
Hide resolved
WalkthroughThe changes made to the Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant Test as StandardizedCompetencyIntegrationTest
participant Repo as CompetencyRepository
participant Service as CompetencyService
participant DB as Database
Test->>Repo: Find competency by ID
Repo-->>Test: Return competency
Test->>Service: Request deletion of competency
Service->>DB: Delete competency and linked standardized competency
DB-->>Service: Confirmation of deletion
Service-->>Test: Deletion successful
This diagram illustrates the flow of the new 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 (
|
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: 1
src/test/java/de/tum/in/www1/artemis/competency/StandardizedCompetencyIntegrationTest.java
Show resolved
Hide resolved
Adaptive Learning
: Fix an issue that standardized competencies could not be deleted when they had a linked competencyAdaptive learning
: Fix an issue that standardized competencies could not be deleted when they had a linked competency
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.
Demonstrated in testing session - Code also LGTM
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.
demonstrated in a testing session. Works as expected. Code also looks good.
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.
Tested in Testing Session and works as expected 👍
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.
Migration looks good to me
…andardized-competencies-when-linked
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.
Maintainer approved
…not be deleted when they had a linked competency (#8709)
Checklist
General
Motivation and Context
Standardized Competencies could not be deleted if they had a linked competecy.
Description
Sets the foreign key constraint for linked competencies to onDelete="SET NULL". This allows the standardized competency to be deleted.
Steps for Testing
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Performance Review
Code Review
Manual Tests
Test Coverage
unchanged