2147d7ad5e
Redo simulations lifecycle ( #222 )
...
## Why
The current way of creating and deleting simulations doesn't scale for big instances. We cannot generate 50 simulations every time a guest confirms attendance, and we should not delete existing valuable simulations. For example, if a guest confirms attendance and declines right after, previously generated simulations should still be valid.
## What
In this PR we are introducing a series of changes that make simulations management easier:
1. We're removing the automatic creation of simulations.
2. Simulations are not removed anymore, neither manually nor automatically.
3. A new endpoint has been defined to create simulations on demand.
4. A digest property has been defined to determine whether a simulation is still valid (meaning there have not been any change in the list of guests involved).
Reviewed-on: #222
Co-authored-by: Manuel Bustillo <bustikiller@bustikiller.com>
Co-committed-by: Manuel Bustillo <bustikiller@bustikiller.com>
2025-01-26 12:53:21 +00:00
f414acb2d5
Test reversibility of migrations ( #220 )
...
We want to make sure that:
1. Migrations are reversible
2. Reapplying migrations added to a PR leads to the same schema.rb
Reviewed-on: #220
Co-authored-by: Manuel Bustillo <bustikiller@bustikiller.com>
Co-committed-by: Manuel Bustillo <bustikiller@bustikiller.com>
2025-01-25 09:43:43 +00:00
8c12884212
Add copyright notice
2025-01-23 21:34:23 +00:00
6cead51bb9
Remove all copyright notices to force recreation
2025-01-23 22:29:26 +01:00
74ca20d3e8
Add copyright notice
2025-01-23 21:18:12 +00:00
9f7f99f3f4
Fix error loading arrangements
2025-01-22 20:39:09 +01:00
7c968f555f
Merge pull request 'Use group affinities in discomfort calculator' ( #215 ) from discomfort-calculation-revamp into main
...
Reviewed-on: #215
2025-01-19 20:19:10 +00:00
1f0c6c2aac
Use group affinities in discomfort calculator
2025-01-19 20:58:42 +01:00
390899524b
Fix rubocop ofenses
2025-01-19 19:44:22 +01:00
c6c5a87d8b
Fix duplicate row index on upsert statement
2025-01-14 19:13:40 +01:00
acf3b7b82a
Merge pull request 'Update copyright assignment to cover 2025 and include all contributors' ( #212 ) from copyright-2025 into main
...
Reviewed-on: #212
2025-01-13 21:04:10 +00:00
91bbae1c63
Add copyright notice
2025-01-13 20:38:47 +00:00
e20a366410
Update copyright assignment to cover 2025 and include all contributors
2025-01-13 21:37:02 +01:00
a154e92b6c
Define an endpoint to reset the discomfort between all groups
2025-01-13 21:16:22 +01:00
f997657cd3
Define an endpoint to return the default affinities of a group
2025-01-12 20:41:01 +01:00
55e6cfcd36
Fix order of Ruby's magic string comment and Copyright assignment
2024-12-28 18:37:47 +01:00
b16ef1e237
Run Rubocop autocorrect on the rest of the project
2024-12-28 18:30:54 +01:00
0c7c69ee5e
Run Rubocop autocorrect on app/controllers
2024-12-28 18:28:38 +01:00
4fc95185fb
Run Rubocop autocorrect on app/helpers
2024-12-28 18:21:16 +01:00
02fcd03b0e
Run Rubocop autocorrect on app/services
2024-12-28 18:20:09 +01:00
fbc6926402
Run Rubocop autocorrect on app/queries
2024-12-28 18:16:36 +01:00
19dcb551fa
Run Rubocop autocorrect on app/models
2024-12-28 18:13:57 +01:00
5784c89b79
Refine endpoint to receive an affinity value and transform it into a discomfort equivalent
2024-12-28 14:19:06 +01:00
0780b17f4b
Add copyright notice
2024-12-26 19:30:32 +00:00
6c6ae62e5a
Define model and endpoints to store affinity between group pairs
2024-12-26 20:29:06 +01:00
3bfe889747
Redo TablesArrangements#show to display arrangement ID and discomfort breakdown
2024-12-16 18:52:34 +01:00
bab5cd3161
Merge pull request 'Define an endpoint with a global summary of expenses and attendance' ( #184 ) from dashboard into main
...
Reviewed-on: #184
2024-12-11 22:44:35 +00:00
4e61ee2f22
Include real data in the guests summary of the dashboard
2024-12-11 23:42:25 +01:00
f68caca5a4
Add copyright notice
2024-12-11 08:03:02 +00:00
da8f3c7618
Define an endpoint with a global summary of expenses and attendance
2024-12-11 09:01:35 +01:00
98c1c0d18c
Group attendance properties into a json key
2024-12-10 08:41:10 +01:00
be40c97f2f
Define and document CRUD endpoints for expenses
2024-12-09 19:28:32 +01:00
dfb50ed2dc
Avoid stack too deep erros due to excessive recursion
2024-12-09 18:14:21 +01:00
83e36df14e
Allow the creation of guests associated to no group
2024-12-08 13:10:49 +01:00
cbcb7b70e3
Merge pull request 'Define CUD endpoints for the Groups model' ( #173 ) from groups-endpoints into main
...
Reviewed-on: #173
2024-12-08 10:52:59 +00:00
20127398c6
Fix summary query to leverage ActsAsTenant scopes
2024-12-08 11:39:50 +01:00
9e097361d0
Define endpoints to create, update, and delete groups
2024-12-08 11:30:38 +01:00
98877166dd
Add copyright notice
2024-12-08 08:34:55 +00:00
438de103ec
Define a dummy endpoint to return a valid CSRF token
2024-12-08 09:32:34 +01:00
1fb6c483ed
Temporarily allow insecure cookies
2024-12-08 00:48:42 +01:00
fdef94be9a
Revert "Fix tenant-related error retrieving captcha"
...
This reverts commit 3996ffc85c1fe3a912db14cbb317158fe9bcd8e2.
2024-12-07 23:18:23 +01:00
c62bb137ce
Merge branch 'main' into remove-wedding-date
2024-12-07 22:17:30 +00:00
3996ffc85c
Fix tenant-related error retrieving captcha
2024-12-07 22:53:30 +01:00
022b58bb38
Fix issues with tenant during registration
2024-12-07 12:43:08 +01:00
8527b20075
Remove wedding date attribute
2024-12-07 12:39:43 +01:00
3fca449461
Limit visibility per tenant
2024-12-02 09:04:48 +01:00
5f01741943
Validate the Captcha challenge for account signup
2024-12-01 19:57:01 +01:00
be9ca9e6b0
Add copyright notice
2024-12-01 18:43:28 +00:00
b237239a1f
Define an endpoint to retrieve a LibreCaptcha captcha
2024-12-01 19:42:25 +01:00
9d08ef6f18
Update wedding slug rules to accept numbers and other chars
2024-12-01 18:17:37 +01:00