Define model and endpoints to store affinity between group pairs #200

Merged
bustikiller merged 4 commits from affinities-controller into main 2024-12-28 15:47:57 +00:00
Owner

This PR establishes the basement to override the affinities between groups. It defines a model, GroupAffinity, which stores the discomfort between a pair of groups. The discomfort is assumed to be reciprocal, so group pairs like A-B and B-A are not allowed. The discomfort of a group with itself is also not allowed, as it is assumed to be zero.

The discomfort calculator is not using this information yet, that will be implemented in a subsequent PR.

Relates to #197

This PR establishes the basement to override the affinities between groups. It defines a model, `GroupAffinity`, which stores the discomfort between a pair of groups. The discomfort is assumed to be reciprocal, so group pairs like A-B and B-A are not allowed. The discomfort of a group with itself is also not allowed, as it is assumed to be zero. The discomfort calculator is not using this information yet, that will be implemented in a subsequent PR. Relates to #197
bustikiller added 1 commit 2024-12-26 19:29:26 +00:00
Define model and endpoints to store affinity between group pairs
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 1m7s
Add copyright notice / copyright_notice (pull_request) Successful in 1m18s
Run unit tests / unit_tests (pull_request) Successful in 2m16s
6c6ae62e5a
bustikiller added 1 commit 2024-12-26 19:30:38 +00:00
Add copyright notice
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 1m20s
Add copyright notice / copyright_notice (pull_request) Successful in 41s
Run unit tests / unit_tests (pull_request) Successful in 2m11s
0780b17f4b
bustikiller added 1 commit 2024-12-28 13:19:12 +00:00
Refine endpoint to receive an affinity value and transform it into a discomfort equivalent
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 49s
Add copyright notice / copyright_notice (pull_request) Successful in 1m14s
Run unit tests / unit_tests (pull_request) Successful in 3m25s
5784c89b79
bustikiller added 1 commit 2024-12-28 15:44:00 +00:00
Update swagger documentation
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 37s
Add copyright notice / copyright_notice (pull_request) Successful in 55s
Run unit tests / unit_tests (pull_request) Successful in 1m42s
9fe649f8b8
bustikiller changed title from WIP: Define model and endpoints to store affinity between group pairs to Define model and endpoints to store affinity between group pairs 2024-12-28 15:47:40 +00:00
bustikiller merged commit ad88fb0909 into main 2024-12-28 15:47:57 +00:00
Sign in to join this conversation.
No Reviewers
No Label
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bustikiller/wedding-planner#200
No description provided.