-
Notifications
You must be signed in to change notification settings - Fork 339
Adaptive learning
: Fix learner profile settings
#11324
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
Open
ahmetsenturk
wants to merge
75
commits into
develop
Choose a base branch
from
bugfix/learner-profile-settings
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+55
−29
Open
Changes from all commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
5fdb3ad
add previous submission to athena feedback request dto
ahmetsenturk 9b02073
remove debugging prints
ahmetsenturk bdb02e2
add the skeleton modal for preference selection
ahmetsenturk 2a2d7e4
add the navigation logic to the modal
ahmetsenturk e7576e3
add a persistent flag for onboarding logic
ahmetsenturk 0eced8f
update folder structure
ahmetsenturk c260a64
emit results from the modal
ahmetsenturk c890ac2
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk 764661d
Merge branch 'develop' into feature/athena/incorporate-prev-submission
ahmetsenturk bba14b4
fix last merge conflict issues
ahmetsenturk 51cfeee
Merge branch 'develop' into feature/athena/incorporate-prev-submission
ahmetsenturk 29ade1e
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk bfbc238
add translations
ahmetsenturk 7a3190c
update the feedback dimensions
ahmetsenturk 4f74f2e
update feedback profile options
ahmetsenturk f4515fd
update segmented-toggle focus color
ahmetsenturk d4d863f
fix learner profile fetching
ahmetsenturk 84b0c45
update test cases
ahmetsenturk b018089
Merge branch 'develop' into feature/athena/incorporate-prev-submission
ahmetsenturk 8ff0484
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk 192e78f
update get to get or create
ahmetsenturk 3e134a8
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk b8a9973
add neutral option to feedback preferences
ahmetsenturk 7dcf297
optimize db calls
ahmetsenturk f46c4f5
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk 705fc98
Merge branch 'develop' into feature/athena/incorporate-prev-submission
ahmetsenturk 3e690be
fix client tests
ahmetsenturk 754cc4d
address Konstantins review
ahmetsenturk c3bd5ce
fix client tests
ahmetsenturk 7b04fa6
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk 460e12c
remove redundant post endpoint
ahmetsenturk f95cbcc
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk 5d8e7c5
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk a95db58
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk 4d2755e
convert hardcoded color codes
ahmetsenturk 940112e
address tobias feedback
ahmetsenturk a4e11ac
convert int to tinyint
ahmetsenturk b17dd92
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk a06e270
fix failing client tests
ahmetsenturk 3cf742a
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk f64042e
update segmented button component
ahmetsenturk 73af80d
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk 09f8b2f
Merge branch 'develop' into feature/athena/incorporate-prev-submission
ahmetsenturk 30496f9
Merge branch 'develop' into feature/athena/incorporate-prev-submission
ahmetsenturk 1f16c51
fix feedback suggestion tests
ahmetsenturk 7adb51b
convert get to getOrCreate
ahmetsenturk 05ccb06
update learner profile test
ahmetsenturk 32b20d5
addressing Florian's feedback
ahmetsenturk 4bece5c
Merge branch 'develop' into feature/athena/incorporate-prev-submission
ahmetsenturk 7abe155
Merge branch 'develop' into feature/athena/incorporate-prev-submission
ahmetsenturk 79f99d9
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk ef6c47b
Merge branch 'feature/athena/incorporate-prev-submission' into featur…
ahmetsenturk 620d3be
refactor test suite
ahmetsenturk 1f3eb9a
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk 0f2e228
update dark mode compatibility
ahmetsenturk 61e20e3
convert null to undefined
ahmetsenturk 01f0ac3
address coderabbit feedback
ahmetsenturk 8fd61c3
Merge branch 'develop' into feature/adaptive-learning/onboarding-feed…
ahmetsenturk 3398eaf
remove unused service from test
ahmetsenturk dc1712e
update learner profile creation logic
ahmetsenturk d8ddd5f
safe call create learner profile
ahmetsenturk f89cb25
update max beans
ahmetsenturk 37c0a33
Revert "update max beans"
ahmetsenturk 0ef72da
Revert "safe call create learner profile"
ahmetsenturk 9801337
Revert "update learner profile creation logic"
ahmetsenturk cb0edee
fix duplicate learner profile due to race condition
ahmetsenturk 34832ff
fix feedback preferences interface
ahmetsenturk f8533d3
fix course learner profile repository error
ahmetsenturk 1753769
Merge branch 'develop' into bugfix/learner-profile-settings
ahmetsenturk 3e3a129
update segmented toggle signals
ahmetsenturk 0046adc
fix segmented toggle tests
ahmetsenturk 8f0a92f
Merge branch 'develop' into bugfix/learner-profile-settings
ekayandan a60a616
Merge branch 'develop' into bugfix/learner-profile-settings
HawKhiem 1c194a7
Merge branch 'develop' into bugfix/learner-profile-settings
ahmetsenturk bc9aa84
fix hibernate no session with left join fetch
ahmetsenturk 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
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
6 changes: 3 additions & 3 deletions
6
src/main/webapp/app/shared/segmented-toggle/segmented-toggle.component.html
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
import { Component, input, model } from '@angular/core'; | ||
import { NgClass } from '@angular/common'; | ||
|
||
@Component({ | ||
|
@@ -9,12 +9,11 @@ import { NgClass } from '@angular/common'; | |
styleUrls: ['./segmented-toggle.component.scss'], | ||
}) | ||
export class SegmentedToggleComponent<T> { | ||
@Input() options: { label: string; value: T }[] = []; | ||
@Input() selected: T; | ||
@Output() selectedChange = new EventEmitter<T>(); | ||
options = input<{ label: string; value: T }[]>([]); | ||
selected = model<T>(); | ||
maxLines = input(2); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this input used anywhere? if not, maybe can be deleted |
||
select(value: T) { | ||
this.selected = value; | ||
this.selectedChange.emit(value); | ||
this.selected.set(value); | ||
} | ||
} |
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
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.
🧩 Analysis chain
Ensure data integrity: enforce uniqueness for (user, course).
This method returns
Optional<CourseLearnerProfile>
, but without a DB-level unique constraint, concurrent creates can still yield duplicates and aNonUniqueResultException
later. Add a unique constraint on the join columns (e.g.,(learner_profile_id, course_id)
or(user_id, course_id)
depending on your model) plus a migration.Run to check if such a constraint already exists:
🏁 Script executed:
Length of output: 65380
Add DB-level UNIQUE constraint on course_learner_profile (learner_profile_id, course_id)
🤖 Prompt for AI Agents