Here are the interactions I can come up with which we'll potentially get wrong by implementing this naively:
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Jun 17 2016
My understanding is that the root issue here is that you're adding reviewers via Herald/Owners (per T10939) so the "no reviewers" warning is inaccurate or misleading in many cases because owners will be added automatically after the revision is created.
This appears to be resolved and accounted for. There's one followup in T11120 (8bit vs base64 mail encoding) which also might be fixed now. If anyone runs into issues, let us know.
Jun 16 2016
Can anyone interested in this explain the use case for making it per-Herald or per-user instead of global? Are half your users bitterly opposed to inline diffs, even after we fixed the Differential ones to not be terrible (T10694)?
Just bookkeeping, this doesn't currently have external priority.
Jun 14 2016
OK, I didn't actually read the 69-chars indent earlier.
The image on the right looks exactly the way I would expect a 69-deep text diff to look - most of the way to the right, breaking when it needs to.
The one on the left looks like it's not indented much; The double-space is because the lines on the right-side are longer.
The diff UI just looks off in the video, each line takes up two lines. I don't know what browser / OS that is nor have any diffs here to reproduce it though. Retina Mac / Chrome maybe?
Is this the same issue https://slack-files.com/T029GG40X-F1FA40DUJ-cdf3ae1eec (From IRC a couple of days ago)? Extra-long words, like minified javascript, doesn't get broken.
Jun 13 2016
Jun 11 2016
Jun 9 2016
Sounds good. I'll call this done for now, let us know if you run into issues.
I was able to filter by status using the queryKey, which is much more valuable than displaying the status. So omitting status from the response is ok by me considering the level of effort required to refactor the numeric constants. Thanks again, much appreciated!
I return the other fields, but don't currently return "status" because I'd have to return an internal numeric constant. So we may need to fix that more thoroughly before you can move forward.
Awesome, thanks for the quick turnaround. This looks good to me. Currently I'm using revision ID, title, status, and authorPHID in the response for display purposes. I'll try your recommendation for 'open' revisions using the queryKey to handle the status.
Actually, this is slightly more involved because you want to select open revisions.
You essentially only need the revision IDs in the response, right?
This report doesn't include reproduction instructions and doesn't clearly demonstrate a problem: all of the screenshots are explicable through user error.
We haven't seen other requests for this in many years.
I can't reproduce this at HEAD, presuming it was resolved some time in the last year.
Jun 8 2016
Jun 7 2016
Jun 6 2016
Ref T11085
Jun 3 2016
T11092 has a lot of discussion, but D16031 will almost certainly prevent this from doing damage. It does not fix the underlying Quicksand issue, but you should get an immediate error instead of confusing/spooky behavior/apparent data loss.
None of those screenshots demonstrate inconsistencies on their own.
Okay. I can't reproduce that. Here's what I did.
The author of the revision intended to mark the comment Done, but this didn't happen when he submitted the form. For me that seems to be unexpected behaviour.
The "Inline Comments" section shows new inline comments. It does not show inlines marked "Done".
Jun 2 2016
Jun 1 2016
Yeah sounds like they didn't grok my initial reply.
It looks like the original user may have just wanted (or been satisfied with) a Diffusion file-line link anyway? Thread is sort of ambiguous:
We could change the URL as a side effect of starting an inline comment, although you'd have to cancel the inline comment afterward.
Looks like we could do what we do in Diffusion already, just change the URL, no interaction needed inline?
This is fairly involved in the general case:
May 30 2016
After D15989, this dialog should properly include information about tree hash and commit hash matches. It could still be more clear, but appears to at least be working as intended now.
Basically, the metadata is sufficient to generate the "Local Commits" table and little else.
The commits are not in Diffusion. Here's a real example of the metadata we store for a commit:
Got it, thanks for taking the time to explain. When you say "metadata" for the commits, do you mean the commits are also in Diffusion (even if invisible)? If so, wouldn't this behavior affect Herald / Harbor Master?
When you run arc diff, you provide (explicitly or implicitly) a commit range. Phabricator stores:
The expected behavior is that when we discover a new commit, we search for any open revision which has an active diff with a commit that has the same commit hash or tree hash as one of the discovered commits. In this case, it appears that this revision did.
Here and in one other report, revisions which are closed by matching a commit or tree hash with a discovered commit are not explaining this in "Explain Why". "Explain Why" is expected to be able to provide details about this:
May 29 2016
I tried yesterday, with phd restart and it doesn't work. it restarted the daemon, but on web the issue still exists. Then I restart the whole server and the problem is still the same. Today when I wake up, I restart the server again. Magically the problem solved. I don't know what's happening here but I will close this question for now. Thanks avivey for your help here.
You can use 'phd restart' to stop all daemons before starting new daemons.
This is strange. After you mentioned daemon, I log into the admin account and see an issue about daemons not running. However, when I ssh to server and run the demon, it told me that demon is already running...
Are your daemons running? That will explain the part about "not closing revisions", and it might also effect the lint/unit "run" not being complete.
May 25 2016
It should probably go under T10978, I believe. I imagine it would get it for free, but worth mentioning over there nonetheless.
I thought I tried that too, but perhaps I'm confused between differential and diffusion (such very confusing terminology for people new to phabricator!). I'm making inline comments against the commits, not against code reviews.
This task is for inline comments on a diff in Differential.
This feature is very important to me, so I've been following along. However perhaps I'm missing something and cannot get the new functionality to work as I expect.
May 24 2016
On the "public preview" use case I do think "--plan-changes + [DRAFT] in title + just let Herald triggers fire, if users configured them they can deal with knowing about your not-quite-perfect-yet changes" is fairly reasonable, which is part of why I've resisted pursuing this until now.
(not that adding the feature would harm us, just my 2 cents)
We have a particularly opinionated set of developers here (when I say "opinionated", I mean roughly, nobody ever agrees on anything) and we've managed to successfully argue in favor of just using "plan changes" rather than opting for some other intermediary or distinct state. It correctly communicates to reviewers what you should want them to know: you're not done with the revision yet. Far and away the largest reason why this is our accepted workflow, rather than pushing on upstream to implement a "Not Yet Ready for Review" state is very tightly coupled to the entire concept of why Phabricator does review the way it does:
to avoid accidentally forgetting to pass an additional option in cases where you did intend it
Another possibility is:
We've never seen any real interest from other installs in a default preview-before-publish mode, and I'm not aware of any class of mistakes that users routinely make or wish to correct which this mode would aid in (if I was, we'd try to detect/fix them in arc diff so users didn't need to go to the browser). We've also never seen other interest in the annotate-before-publish use case. T949 is the only task in this vein that I was able to dig up, and focused on previewing the diff only. I'm not really sure what problems this mode solves outside easing adoption when coming from another tool which works like this.
In the "final look before publishing" use case, the best value for "Reviewers" is probably the final, effective set of reviewers (i.e., including reviewers from Herald and Owners), so you can see exactly who the revision will be published to. In the competing "share with a few people" use case, the best value for "Reviewers" is only explicit reviewers (you don't want to notify or involve others).
Thanks!
May 23 2016
This seemed to fix the issue:
From the server logs:
Phabricator version is rPe1ad312fdd2c570eeaacd3e02eda2142cc5d9849.