-
Notifications
You must be signed in to change notification settings - Fork 464
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
JAMES-2884 Rename classes to more closely match the JMAP spec #163
Conversation
Rename class to more closely match the type name in RFC 8620.
Rename class to more closely match the type name in RFC 8620.
Rename class to match the name in RFC 8620.
And it could look like this: |
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.
Many thanks for this nice pull request!
Yes, terms had evolved within the JMAP specification, and a bit of update here is more than welcome!
Regarding https://www.mail-archive.com/server-dev@james.apache.org/msg62072.html: After creating the PR I realized there's a chance you might want to keep the draft JMAP implementation around for a bit. The proposal on the mailing list sounds reasonable to me. But I think in that case the classes shouldn't be renamed like proposed in this pull request. What do you think? |
In my opinion, as preliminary steps, we can get the code organization (of the old spec) as close as possible to the new spec. It does not hurt. The red-line is changing code within So it's a step in the good direction, and that does not affect existing deployments. As such it makes the work described on the mailing list easier as well, and thus I belive we can still merge it. |
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.
Thank you for this PR, that's a very good move.
Hi, This pull request has just been merged. I don't have write access to this repository, hence I can not close this issue. Wouldn't you mind doing it for me? It would avoid me annoying the Apache INFRA team with such simple concerns. Cheers, Benoit |
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.
Thanks a lot for the contribution, nice work :)
This pull request renames the following classes:
ProtocolRequest
toInvocationRequest
(it models theInvocation
type from the specification)AuthenticatedProtocolRequest
toAuthenticatedRequest
ProtocolResponse
toInvocationResponse
(it models theInvocation
type from the specification)ClientId
toMethodCallId
(the spec simply uses the typeString
for this; but the element is called "method call id")This change should make it easier to map classes used in James to types from the specification. Another thing that motivated this change is that
ProtocolRequest
would be a good name to use for a class that holds the properties of a (current spec) request, namely, theusing
andmethodCalls
properties.This pull request only renames classes, fields, methods, parameters and local variables. None of the functionality has been changed.
https://issues.apache.org/jira/browse/JAMES-2884