In D41919, I missed that there was a *second* step when uploading
diffs via web where the repository should be specified.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Well spotted. I've just verified that if you enter the repository on the first page it isn't automatically copied through to the "Create Revision" page. I'm assuming that it's setting the repository on the "create revision" stage that results in automatically adding llvm-commits of cfe-commits to the subscriber list?
Questions:
- Is there actually any advantage to entering the repository on the first ("create Diff")? It seems likely we should advise people to ignore it on this page, as they'll enter the repository at a future stage.
- When updating a diff, presumably there's no advantage to entering the repository?
Thinking about the Desired Visible Effect, the auto-subscription would be on the Revision and not on the Diff, assuming that it's the subscriber list on the Revision that determines where the emails go.
But that would be sensible from the end-user's point of view, which doesn't mean it's actually how the software works. :-)
Is there actually any advantage to entering the repository on the first ("create Diff")? It seems likely we should advise people to ignore it on this page, as they'll enter the repository at a future stage.
I'm assuming this actually does something in some variation of the flow (maybe pasting a diff?), or else it wouldn't be there.
It's definitely not copied when uploading a diff. This is a bug which I just reproduced at https://secure.phabricator.com/ .
I reported the upstream bug here:
For now, it's probably safest to tell people to enter the repository twice, and fix that when/if the product behavior changes.
So, I just posted a review without specifying the Repository for the diff, but I did put it on the review, and it auto-subscribed llvm-commits.
I suspect there's no real reason to put it on a diff, and we shouldn't tell people to do that.
I suspect there's no real reason to put it on a diff, and we shouldn't tell people to do that.
My foggy recollection of Phabricator internals tells me there is actually a repository attached to both Phabricator objects (the diff and the review), but we're not using the repository on the diff for much of anything.
Yes, I'm sure the repository information is stored somewhere attached to the diff object - but it seems we don't use it. For this patch, I think the best way forwards is to advise users they can ignore the field when uploading the diff, and should enter it on the subsequent page. It's possible the workflow will be improved based on your upstream bug report, but we'd have to wait for the LLVM phabricator install to be updated anyway.
Thanks for all of your work on addressing the llvm-commits/cfe-commits subscription issue.
For this patch, I think the best way forwards is to advise users they can ignore the field when uploading the diff, and should enter it on the subsequent page.
OK, done.
I think the change to "To submit an updated patch:" should probably be left out, given we agree there's no benefit currently in specifying the repo for the diff object (as opposed to the review).
With that, looks good to me!
docs/Phabricator.rst | ||
---|---|---|
87 ↗ | (On Diff #129626) | This change could probably be left out - there's no benefit we can see in setting the repository when posting an updated patch. |