Page MenuHomePhabricator

Create Validations for the Deleted Event Registration API
Closed, ResolvedPublic

Description

As a Dev I want to validate the inputed fields before deleting the event registration.

Acceptance criteria:

The event registration id:

  • Must be set
  • Must be an integer
  • Must be a valid event registration id
  • The event registration must not be already deleted

If not should return an error message (Like Event registration not found)

The user id must be the creator of the event for V0

Event Timeline

Change 776242 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Add backend logic and REST endpoint for deleting a registration

https://gerrit.wikimedia.org/r/776242

Change 776242 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add backend logic and REST endpoint for deleting a registration

https://gerrit.wikimedia.org/r/776242

This seems like it should be included in pre-QTE roll-up. Do you agree, @Daimona & @vyuen?

This may also be good for QTE. Do you agree, @Daimona & @vyuen?

Nothing for me to test, so I'll mark this as Done.

This may also be good for QTE. Do you agree, @Daimona & @vyuen?

Nothing for me to test, so I'll mark this as Done.

Yes, see T303723#7851532

This may also be good for QTE. Do you agree, @Daimona & @vyuen?

Aye

AC should change to allow The user Id to be that of the creator of the event or an admin per T303722. Marking this as complete in T305708