-
Notifications
You must be signed in to change notification settings - Fork 12
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
Bug 1873965 - Revert changes that made the attach_inlines
parameter to differential.createcomment
a no-op
#39
Bug 1873965 - Revert changes that made the attach_inlines
parameter to differential.createcomment
a no-op
#39
Conversation
…ntial.createcomment` a no-op" This reverts commit 3976488.
Testing on Phabricator-Dev:
|
{"result":null,"error_code":"ERR-CONDUIT-CORE","error_info":"Querying for comments that are \"not published\" is not supported."} |
|
|
Finally, it is working on phabricator-dev! |
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 think it makes sense to include a more comprehensive commit message, perhaps referencing the different commits that had to be reverted (looks like more than one? I.e., loadUnsubmittedInlineComments
and loadAndAttachVersionedDrafts
). Also including the a quick overview of functionality that was added/changed and why in the commit message.
src/applications/differential/conduit/DifferentialCreateCommentConduitAPIMethod.php
Show resolved
Hide resolved
attach_inlines
parameter to differential.createcomment
a no-op"attach_inlines
parameter to differential.createcomment
a no-op
I updated the pull request's title and description, which can be reflected on the commit message when you "Squash and merge" the PR. |
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 looks good to me. One minor nit, and the only other thing which I mentioned on Slack was whether we want to consider reintroducing this under a different parameter, to avoid unexpected behaviour for anyone using this parameter already (which may not be an issue anyway).
src/applications/differential/conduit/DifferentialCreateCommentConduitAPIMethod.php
Show resolved
Hide resolved
I don't think it's necessary because it won't have an impact unless the same user has previously created inline comment drafts on the same revision. |
To restore the functionality of
attach_inlines
, I implemented the following changes:loadUnsubmittedInlineComments
function fromphabricator/src/applications/differential/query/DifferentialTransactionQuery.php
Lines 10 to 53 in 3976488
loadUnsubmittedInlineComments
that uses thegetContentForEdit
method because it was removed