-
Notifications
You must be signed in to change notification settings - Fork 929
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
Add Messages API #4605
Add Messages API #4605
Conversation
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.
I don't know enough about he code but it looks like this likely duplicates some logic. Can this be shared in a concern or something similar?
c2b1810
to
0b47155
Compare
0b47155
to
d901293
Compare
a35491a
to
21c6993
Compare
@tomhughes Friendly ping, any chance of reviewing the PR? |
f297cbf
to
37c7ceb
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.
I've had a first pass over the code and an initial peek at the tests and added my comments. I'll definitely want @gravitystorm to have a look as well before we merge.
|
||
module Api | ||
class MessagesControllerTest < ActionDispatch::IntegrationTest | ||
def setup |
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.
Has this been copied from notes and not removed?
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 still seems to be present? What was the resolution?
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.
Sorry, I guess there were 2 mentions of notes, and I only removed one.
Thanks for the review, will look into your comments shortly |
37c7ceb
to
68d2559
Compare
68d2559
to
55754df
Compare
55754df
to
92b6558
Compare
Rebased and updated based on #4858. |
@tomhughes Please advise if any modifications are required for this PR, thanks. |
|
||
module Api | ||
class MessagesControllerTest < ActionDispatch::IntegrationTest | ||
def setup |
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 still seems to be present? What was the resolution?
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.
A few more minor comments...
A comment on the generated output of the new API
I don't believe we would want to make a statement on the copyright of the messages in the first place (because they are essentially private and in any scenario you would need to agree with whoever you had communicated with on publishing them), but if it would be anything, the copyright would be held by the individual author of the respective e-mail. |
This comes from including Side note - looking at notes (where I probably copied at least some templates from) I noticed that XML output does include the copyright notice, while json does not. |
92b6558
to
ea78530
Compare
ea78530
to
f4ebdb5
Compare
@tomhughes I updated the code according to your suggestions from the last review. Please advise if more modifications are necessary. |
f4ebdb5
to
3062e1c
Compare
as discussed in [Issue openstreetmap#4509](https://wiki.openstreetmap.org/w/index.php?title=Messaging_API_proposal) and documented in [Messaging API reference](https://wiki.openstreetmap.org/w/index.php?title=Messaging_API_proposal)
3062e1c
to
0db47f3
Compare
@tomhughes code updated for comments from July 28. |
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. I think this all looks good now!
...as discussed in Proposal for Messages API - Issue #4509 and documented in Messaging API reference