-
Notifications
You must be signed in to change notification settings - Fork 440
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
feat(polls): allow editing of draft polls #13883
base: main
Are you sure you want to change the base?
Conversation
@nickvergessen wdyt of adding the validation to the setters in the Poll Entity instead of validating them beforehand? Would make sense, don't you think? |
8e473b0
to
9dcf018
Compare
Signed-off-by: Anna Larch <anna@nextcloud.com> # The commit message #2 will be skipped: # fixup! feat(polls): allow editing of draft polls
2aeb3ef
to
0ca00dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly minor things and reaching the end soon :)
lib/Controller/PollController.php
Outdated
try { | ||
$poll = $this->pollService->getPoll($this->room->getId(), $pollId); | ||
} catch (DoesNotExistException $e) { | ||
return new DataResponse(['error' => $e->getMessage()], Http::STATUS_NOT_FOUND); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return new DataResponse(['error' => $e->getMessage()], Http::STATUS_NOT_FOUND); | |
return new DataResponse(['error' => PollPropertyException::REASON_POLL], Http::STATUS_NOT_FOUND); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gives me a MoreSpecificReturnType error, same with the change below
☑️ Resolves
🛠️ API Checklist
🚧 Tasks
🏁 Checklist
docs/
has been updated or is not required