-
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
Iris
: Upgrade settings system for Pyris V2
#9247
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f3f6da2
Iris Settings V3
Hialus cd2b3a8
Merge branch 'develop' into chore/iris/settings-v3
Hialus 3a391e5
Merge develop
Hialus 420a912
Fix merge issues
Hialus 3869102
Improve endpoints
Hialus bdd59f0
Merge branch 'develop' into chore/iris/settings-v3
Hialus 1c0db46
Merge branch 'develop' into chore/iris/settings-v3
Hialus ce497fc
Fix one package name
Hialus 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 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
65 changes: 0 additions & 65 deletions
65
src/main/java/de/tum/cit/aet/artemis/iris/domain/IrisTemplate.java
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
src/main/java/de/tum/cit/aet/artemis/iris/domain/session/IrisHestiaSession.java
This file was deleted.
Oops, something went wrong.
This file contains 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 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
20 changes: 0 additions & 20 deletions
20
...java/de/tum/cit/aet/artemis/iris/domain/settings/IrisCompetencyGenerationSubSettings.java
This file contains 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,36 +1,16 @@ | ||
package de.tum.cit.aet.artemis.iris.domain.settings; | ||
|
||
import jakarta.annotation.Nullable; | ||
import jakarta.persistence.CascadeType; | ||
import jakarta.persistence.DiscriminatorValue; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.FetchType; | ||
import jakarta.persistence.OneToOne; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
import de.tum.cit.aet.artemis.iris.domain.IrisTemplate; | ||
|
||
/** | ||
* An {@link IrisSubSettings} implementation for the settings for competency generation. | ||
* CompetencyGeneration settings provide a single {@link IrisTemplate} | ||
*/ | ||
@Entity | ||
@DiscriminatorValue("COMPETENCY_GENERATION") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public class IrisCompetencyGenerationSubSettings extends IrisSubSettings { | ||
|
||
@Nullable | ||
@OneToOne(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.EAGER) | ||
private IrisTemplate template; | ||
|
||
@Nullable | ||
public IrisTemplate getTemplate() { | ||
return template; | ||
} | ||
|
||
public void setTemplate(@Nullable IrisTemplate template) { | ||
this.template = template; | ||
} | ||
|
||
} |
This file contains 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 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.
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.
🧹 Nitpick (assertive)
Improved guidance on collection types and persistence!
The changes to the "Best Practices" section provide valuable insights, particularly the guidance on choosing between Set and List for collections. The explanation of how to handle ordered collections and the note on persisting objects in ordered collections are especially helpful for preventing common errors.
Consider adding a brief explanation of why the procedure for persisting objects in ordered collections is necessary (e.g., to maintain the correct order and avoid null index issues) to help developers understand the reasoning behind this approach.