28 Commits

Author SHA1 Message Date
2147d7ad5e Redo simulations lifecycle ()
## 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: 
Co-authored-by: Manuel Bustillo <bustikiller@bustikiller.com>
Co-committed-by: Manuel Bustillo <bustikiller@bustikiller.com>
2025-01-26 12:53:21 +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
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
55e6cfcd36 Fix order of Ruby's magic string comment and Copyright assignment 2024-12-28 18:37:47 +01:00
19dcb551fa Run Rubocop autocorrect on app/models 2024-12-28 18:13:57 +01:00
83e36df14e Allow the creation of guests associated to no group 2024-12-08 13:10:49 +01:00
9e097361d0 Define endpoints to create, update, and delete groups 2024-12-08 11:30:38 +01:00
4d9563cab7 Adapt background job to use acts as tenant 2024-12-01 10:41:05 +01:00
8bff98b165 Create DB associations 2024-11-30 20:06:43 +01:00
f1d1ea825c Recalculate simulations after removing a guest 2024-11-17 18:25:38 +01:00
7542c6361c Define an endpoint to destroy guests 2024-11-17 18:24:43 +01:00
31d41ea2ea Remove unused bulk update endpoint 2024-11-17 17:07:29 +01:00
6f6a6aaabf Update format of guests API and document endpoints 2024-11-16 02:16:19 +01:00
d75b117c60 Merge pull request 'Introduce endpoint to retrieve a summary of groups and invite attendance' () from groups-index-stats into main
Reviewed-on: 
2024-11-14 08:30:27 +01:00
bd5c4f5482 Merge first and last name and expose guest update endpoint 2024-11-11 07:55:03 +01:00
9035df5178 Install shoulda matchers, improve guests specs and change enum syntax 2024-11-09 17:45:23 +01:00
50a5c90728 Only include potential guests in the simulation 2024-11-03 09:15:48 +01:00
5fef6f1011 Remove references to acts_as_taggable_on gem 2024-11-01 19:55:39 +00:00
b7cabc1661 Add copyright notice 2024-10-27 21:42:45 +00:00
7338bbf0a8 Include an additional tentative status 2024-10-27 19:25:24 +01:00
cb42b86136 Include confirmation status 2024-08-11 19:24:24 +02:00
cca869a0c4 Display group name in the list of guests 2024-08-11 18:25:12 +02:00
3660d14d44 Fix install of taggable gem and add tags to seeds 2024-07-11 20:41:07 +02:00
946cd959e2 Display list of guests 2024-07-11 20:13:22 +02:00
2ed9f98695 Create guests scaffold 2024-07-11 20:08:26 +02:00