nextcloud / calendar_resource_management

Resources back-end for the Nextcloud CalDAV server
https://apps.nextcloud.com/apps/calendar_resource_management
GNU Affero General Public License v3.0
61 stars 14 forks source link

addable options #118

Open Zweihorn opened 5 months ago

Zweihorn commented 5 months ago

Is your feature request related to a problem? Please describe.

E.g., a building created with --wheelchair-accessible 0 (i.e. set to "no" by default) should change to "yes" if at least one room provides --wheelchair-accessible 1 i.e. "yes" on any floor of this building.

E.g., a building with --wheelchair-accessible 1 (i.e. set to "yes" by creating or changing logic) should change to "no" if not any room provides --wheelchair-accessible 1 i.e. "yes" on any floor of this building any more.

Describe the solution you'd like

The minimum solution should be available to the CLI like follows.

Setting an option to "wheelchair" should be addable by reasonable logic like:

Thus by internal logic causing a command chain consecutively like:

  1. calendar-resource:floor:set floor_id 11 --wheelchair-accessible 1 e.g., addressing floor "1" in building "1" for the benefit of this example as this line might miss the necessary building id, I presume.

  2. calendar-resource:building:set building 1 --wheelchair-accessible 1

Describe alternatives you've considered

Hurting my fingers by re-typing endless commands on CLI as a poor admin to many users? Meh.

Additional context

ref #117 ref #83