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

BE: Events: Editor should be prevented from canceling the initial instance of a recurring event #15168

Closed
4 tasks
wesrowe opened this issue Sep 8, 2023 · 7 comments
Labels
backend Drupal engineering CMS team practice area Events product maintained by Public Websites team Needs refining Issue status non-quarter-prio (PW) not related to quarterly priorities Public Websites Scrum team in the Sitewide crew sitewide

Comments

@wesrowe
Copy link
Contributor

wesrowe commented Sep 8, 2023

Description

User story

AS AN (Event) Editor using the "Edit event series" UI
I WANT to be prevented from deleting a recurring event's first instance
SO THAT I don't create weird and/or system-corrupting data.

Engineering notes / background

Background:

Design ideas (to pre-fine):

  • Change the dropdown options on the first instance of the recurrent event to remove "cancel"
  • (less desirable) Leave the dropdown/UI as-is, but block it at save

Analytics considerations

Quality / testing notes

Acceptance criteria

Consider

  • Design / Accessibility reviews
  • Collab cycle requirements
  • Device sizes (mobile first)
  • Documentation updates / Change management
    < - Content model documentation
  • Testing notes
  • In the "Edit occurrences" modal, the "Cancel event" option is hidden from the dropdown on first instance
  • Added tests (what kind? etc)
  • Design review
  • PM review
@wesrowe wesrowe added Needs refining Issue status Public Websites Scrum team in the Sitewide crew Drupal engineering CMS team practice area Events product maintained by Public Websites team labels Sep 8, 2023
@wesrowe wesrowe changed the title BE: Events: Editor should be prevented from deleting the initial instance of a recurring event BE: Events: Editor should be prevented from canceling the initial instance of a recurring event Sep 8, 2023
@wesrowe
Copy link
Contributor Author

wesrowe commented Sep 8, 2023

@dsasser, rather than starting off asking @thejordanwood to design how this should work – do you have an idea for the most drupal-y way to handle this?

@wesrowe wesrowe added backend non-quarter-prio (PW) not related to quarterly priorities labels Sep 12, 2023
@wesrowe wesrowe mentioned this issue Sep 25, 2023
30 tasks
@wesrowe
Copy link
Contributor Author

wesrowe commented Sep 26, 2023

discussed in BE refinement – we decided it would be an adequate Editor experience to hide the delete option from the dropdown. this is a very edge-case situation.

@wesrowe wesrowe mentioned this issue Oct 6, 2023
28 tasks
@FranECross
Copy link

@jilladams @dsasser If we're light on backend/drupal work, is this a possible candidate, or is it such an edge case that we should just keep it in the ice box?

@dsasser
Copy link
Contributor

dsasser commented Nov 29, 2023

@jilladams @dsasser If we're light on backend/drupal work, is this a possible candidate, or is it such an edge case that we should just keep it in the ice box?

I think the last time we tested this, it wasn't occurring any longer. We might want to make sure it is still a problem before we commit it to a sprint.

@FranECross
Copy link

Would a small testing story be more appropriate for ya'll to see if it's still a problem? I could then prioritize this or close it as no longer needed. Not a rush, just grooming tickets today.

@dsasser
Copy link
Contributor

dsasser commented Nov 30, 2023

@FranECross

I just tested this, and it isn't possible to create an Event without at least one date, be that a recurrence, or the primary start/end dates. So the original edge case is not possible to realize.

If a user creates an Event with one or more recurrences, and manages to cancel all the occurrences (including the primary Event date), they will receive an error on save. You can see this in the screenshot below.

Screenshot 2023-11-29 at 3 57 53 PM

My $.02 would be that this is a no-op, since there may be cases where the primary Event date, for whatever reason, needs to be canceled, but the recurrences may not. Having this in place means that the Editor is given the utmost control over the dates of the Event without allowing them to break things, nor having to re-create an event because the primary Event date could not be canceled.

@FranECross
Copy link

@dsasser Thanks so much for testing this and your observations! I agree and will close as not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Drupal engineering CMS team practice area Events product maintained by Public Websites team Needs refining Issue status non-quarter-prio (PW) not related to quarterly priorities Public Websites Scrum team in the Sitewide crew sitewide
Projects
None yet
Development

No branches or pull requests

4 participants