Adds reservation cancellation path to resources#2550
Conversation
c5c6960 to
80c2aac
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Daverball
left a comment
There was a problem hiding this comment.
Currently this seems to be limited to cancelling all reservations in a ticket, which should cover individual reservations nicely, but does that cover 90+% of customer requests or is it more common, or almost as common that for large half year reservations, they want to cancel a single date?
If so, we probably need to allow customers to select which dates they want to cancel, which would also necessarily change the UI in the ticket.
|
Now cancellation requests can select single reservations to be cancelled and the manager sees the request cancellation dates, then approve it. |
Daverball
left a comment
There was a problem hiding this comment.
Looks good overall, although we should consider if and how we should notify a ticket's assignee and/or resource recipients.
There's also couple of minor improvement suggestions and a couple of questionable conditions, that make the feature less flexible.
Co-authored-by: David Salvisberg <david.salvisberg@seantis.ch>
Co-authored-by: David Salvisberg <david.salvisberg@seantis.ch>
999ca4a to
79501c1
Compare
|
|
||
| self.last_state_change = self.timestamp() | ||
| self.state = 'open' | ||
| self.user = None |
There was a problem hiding this comment.
I think it only makes sense to unassign the ticket and reopen it, if it has already been closed. If it's pending, it should stay pending.
In either case we may want to notify resource recipients in addition to assignees, just like we do when a customer writes a message into a pending ticket. Also keep in mind that there may not be an assignee, in which case you can only send an e-mail to resource recipients. Although we may want to add a new setting on resource recipients, so they can be subscribed to this specific kind of notification, but we may want to write a migration that subscribes all recipients that currently subscribe to customer messages, to also subscribe to cancellation requests.
Reservation: Adds reservation cancellation path to resources
TYPE: Feature
LINK: ogc-3064