Assign supervisor to student ideas no matter if target (goal) is reached #96

Merged
ansv7779 merged 12 commits from 67-supervisor-target-non-blocking into develop 2025-02-18 09:59:24 +01:00
Owner

Fixes #67

How to test

  1. log in with principal 'dev@localhost' (default)
  2. Click "Match", there is one student idea available: 'Fundamental Math Concepts of AI', which is unmatched.
  3. Click "Application periods", and then "Edit targets", Supervisor "Eric Employee" has target set to 10, and "Eve Employee", has targets set to 0.
  4. Click "Ideas" again, select supervisor "Eve Employee", this assignment will go through, but feedback text will be shown as warning, since there is not target assigned to "Eve Employee".
  5. Change supervisor "Eric Employee", the assignment will go through, and the feedback text will be shown as green. "Eric Employee" has target set to 10.
Fixes #67 ## How to test 1. log in with principal 'dev@localhost' (default) 2. Click "Match", there is one student idea available: 'Fundamental Math Concepts of AI', which is unmatched. 3. Click "Application periods", and then "Edit targets", Supervisor "Eric Employee" has target set to 10, and "Eve Employee", has targets set to 0. 4. Click "Ideas" again, select supervisor "Eve Employee", this assignment will go through, but feedback text will be shown as warning, since there is not target assigned to "Eve Employee". 5. Change supervisor "Eric Employee", the assignment will go through, and the feedback text will be shown as green. "Eric Employee" has target set to 10.
tozh4728 added 1 commit 2025-01-27 14:55:52 +01:00
67: Assign supervisor to student ideas no matter if target (goal) is reached
Some checks failed
Build and test / build-and-test (push) Failing after 44s
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m9s
b8afa202ba
First-time contributor
Deployed to https://scipro-67-supervisor-target-non-blocking.branch.dsv.su.se
tozh4728 added 1 commit 2025-01-27 15:06:33 +01:00
67: Reformat code
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m8s
Build and test / build-and-test (push) Successful in 15m42s
ce6b5aabdb
tozh4728 added 1 commit 2025-01-27 15:22:47 +01:00
67: Create target for test purpose
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m8s
Build and test / build-and-test (push) Successful in 15m42s
8a44bc8eb3
tozh4728 added 1 commit 2025-01-30 09:21:28 +01:00
67: Increase target in test data to 10 for supervisor 'Eric Employee'
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m7s
Build and test / build-and-test (push) Successful in 19m33s
6e31fca410
tozh4728 added 1 commit 2025-01-30 15:19:27 +01:00
67: Add project type in message
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m12s
Build and test / build-and-test (push) Successful in 15m31s
3c8252d010
tozh4728 added 1 commit 2025-02-10 12:30:13 +01:00
67: Employee needs to set up as active supervisor.
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m33s
Build and test / build-and-test (push) Successful in 17m40s
6f82d5fdc4
tozh4728 added 1 commit 2025-02-10 13:34:51 +01:00
67: Enable JPA save for employee.
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m31s
Build and test / build-and-test (push) Successful in 22m31s
f5c88c7b8e
tozh4728 added 1 commit 2025-02-10 14:50:44 +01:00
67: Add languages to supervisors and add new student for submitting student idea.
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m37s
Build and test / build-and-test (push) Successful in 18m45s
37b4e76ad2
tozh4728 added 1 commit 2025-02-12 10:06:53 +01:00
67: Create student idea to test setting supervisor target
Some checks failed
Build and test / build-and-test (push) Successful in 16m29s
Deploy to branch.dsv.su.se / deploy (pull_request) Failing after 1m20s
32c066a1c5
tozh4728 added 1 commit 2025-02-12 13:35:29 +01:00
67: merge from develop
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m21s
Build and test / build-and-test (push) Successful in 21m5s
1b692f87fb
tozh4728 changed title from WIP: Assign supervisor to student ideas no matter if target (goal) is reached to Assign supervisor to student ideas no matter if target (goal) is reached 2025-02-12 14:05:58 +01:00
tozh4728 added the
po
needed
label 2025-02-12 14:08:44 +01:00
ansv7779 requested changes 2025-02-12 15:22:50 +01:00
Dismissed
ansv7779 left a comment
Owner

Code looks good to me. Minor nitpick on the null check on the return value from a count method.

Code looks good to me. Minor nitpick on the null check on the return value from a count method.
@ -217,0 +219,4 @@
);
int targetCounter = (currentTarget == null) ? 0 : currentTarget.getTarget();
long matchedCounter = (countMatched == null) ? 0L : countMatched;
Owner

This seems weird, a count method should return 0 not null.

This seems weird, a count method should return 0 not `null`.
Author
Owner

Fine point, the unnecessary null check has been removed.

The rationale for null check is that ideaService.countMatched returning Long. It would be better that a @NotNull annotation is applied to such method which is guaranteed to return non null object.

Fine point, the unnecessary null check has been removed. The rationale for null check is that ideaService.countMatched returning Long. It would be better that a @NotNull annotation is applied to such method which is guaranteed to return non null object.
ansv7779 marked this conversation as resolved
tozh4728 added 1 commit 2025-02-13 09:26:26 +01:00
67: Remove unnessary null check
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m36s
Build and test / build-and-test (push) Successful in 15m57s
aa801d0ae5
ansv7779 approved these changes 2025-02-13 10:01:07 +01:00
ansv7779 left a comment
Owner

Looks good

Looks good
tozh4728 added 1 commit 2025-02-13 15:28:21 +01:00
67: Merge from develop
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m25s
Build and test / build-and-test (push) Successful in 16m7s
Remove branch deployment from branch.dsv.su.se / cleanup (pull_request) Successful in 4s
46173d5da3
Owner

Jag tycker att det ser bra ut. Jag har skickat länken till Gruorna för test, så vi avvaktar deras feedback.
Avvaktar deras feedback innan vi ändrar status från "PO needed".

Jag tycker att det ser bra ut. Jag har skickat länken till Gruorna för test, så vi avvaktar deras feedback. Avvaktar deras feedback innan vi ändrar status från "PO needed".
andan added
po
approved
and removed
po
needed
labels 2025-02-18 08:54:31 +01:00
Owner

Ok för Gruorna att sätta denna feature i drift redan den här veckan

Ok för Gruorna att sätta denna feature i drift redan den här veckan
ansv7779 merged commit 399d8f5275 into develop 2025-02-18 09:59:24 +01:00
ansv7779 deleted branch 67-supervisor-target-non-blocking 2025-02-18 09:59:24 +01:00
Sign in to join this conversation.
No description provided.