Skip to content
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

TTVA-217 | Add a possibility to define a range for people capacity #191

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

japauliina
Copy link

@japauliina japauliina commented Jan 10, 2025

People capacity is split into two fields: people_capacity_lower and people_capacity_upper for adding a possibility to define a range of the space capacity.

Rename the people_capacity field to people_capacity_lower in the Resource model and keep the data of the original field in this new field. However, keep the original name people_capacity in the API until UI changes are
done.

Add the field people_capacity_upper to the Resource model and to the Respa admin's resource form.

Make sure that both people_capacity_lower and people_capacity_upper are considered when filtering resources by people capacity.

ra_capacity

Refs TTVA-217

@japauliina japauliina requested a review from jopesy January 10, 2025 12:08
@jopesy
Copy link
Collaborator

jopesy commented Jan 14, 2025

image

Perhaps the field names in Respa admin should be changed slightly (maybe ask for customer feedback on this) to make it clearer what they mean, e.g. "Maksimihenkilömäärä (alaraja)" and "Maksimihenkilömäärä (yläraja)". Currently I at least personally would understand that the resource can be reserved only for 20-25 people. Approved anyway.

People capacity will be split into two fields: `people_capacity_lower`
and `people_capacity_upper` for adding a possibility to define a range
of the space capacity.

Rename the `people_capacity` field to `people_capacity_lower` in the
`Resource` model and keep the data of the original field in this new
field.

Keep the original name `people_capacity` in the API until UI changes are
done.

Refs TTVA-217
Add the field `people_capacity_upper` to the `Resource` model and to
the Respa admin's resource form.

Refs TTVA-217
Make sure that both `people_capacity_lower` and `people_capacity_upper`
are considered when filtering resources by people capacity.

Refs TTVA-217
@japauliina japauliina force-pushed the TTVA-217-people-capacity-range branch from 548177e to 951091a Compare January 14, 2025 11:51
@japauliina japauliina marked this pull request as ready for review January 14, 2025 11:51
@japauliina japauliina merged commit 687f3be into tre-varaamo-qa Jan 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants