-
Notifications
You must be signed in to change notification settings - Fork 38
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
Event response changes – is it final? #262
Comments
If I look at the old list of possible errors for the above event, I am not sure that the change in event XML is an improvement: <members-generate-recovery-code result="error">
<username type="missing" message="USERNAME is a required field." label="USERNAME" />
<username type="invalid" message="Member not found." label="USERNAME" />
<email type="missing" message="EMAIL is a required field." label="EMAIL" />
<email type="invalid" message="Member not found." label="EMAIL" />
<error type="invalid" message="No Identity field found." />
<error type="invalid" message="You cannot generate a recovery code while being logged in."/>
<post-values>
<username>Hello</username>
<email>[email protected]</email>
</post-values>
</members-generate-recovery-code> As you see, all the fields output the message as an attribute. So why do we introduce a message node with the latest changes? |
I makes sense to me to have the error message in the node and not an attribute. |
It's not consistent with the field messages (which are error messages as well). |
It's now consistent with the Symphony core which has a message element, so it's definitely an improvement. You can't have more than one of these messages at time, so the loss that I can see if the field node name? |
Ah, I was not aware of that, because for native Symphony events I never used the So we should probably keep this as it is, but it will mean:
At the moment I can't say when I will find the time to do this. But it must be done. @brendo: The messages in question used to be in a generic |
Commit 9adcb08 changed error responses of Members events.
Before:
After:
Is this change considered final?
Just asking because it broke parts of the Members Forms functionality…
The text was updated successfully, but these errors were encountered: