I don’t believe this style of doc annotation is used elsewhere. What’s the purpose of this?
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Fri, Apr 12
Seems good
Wed, Apr 3
Are there mechanisms to re-gen the doc after we land changes? If not that might be something we should be able to do with harnormaster, and we can bring the docs back after something like that is set up to ensure they’re always updated
Tue, Apr 2
The change looks reasonable though I’m not familiar at this level of the database schema design
Ah yep, GET with body will get flagged in a number of cases.
Mar 26 2024
Mar 25 2024
I prefer to invert the logic and return early, to avoid having the entire function contents inside a nested level - up to you but this looks good.
Mar 22 2024
Mar 13 2024
yep!
Feb 28 2024
I’m not very familiar with this area of code but this sounds appropriate
Feb 12 2024
Is it possible to check if anything is relying on this not working with negative numbers?
whoops
Feb 10 2024
A mermaid-js one could be written based on the old graphviz one:
Feb 9 2024
I haven’t run this specific issue but I have seen other oddities when using my installed arc within the arc or phorge repos. I’m unable to get it to work unless I use the arc that exists along side that phorge repo. That might be similar here.
Hahaha I’m just now seeing this. Thank you for putting together the presentation and giving the talk. I enjoy seeing your excitement!
I configure my browsers to increase the default font size because my eyes can’t handle the small fonts. Most pages tend to size appropriately but there are some oddities, including Phorge. I’ll grab some screen caps when I’m back on workstation.
Feb 6 2024
Both of these failures are edge cases so it does seem likely we wouldn't have found them as quickly. I do still wonder how many Windows users we have.
The ArcanistBundleTestCase failures are due to diff binary not being present on Windows systems. The tests could be rewritten to utilize git diff instead but would take some effort.
Fix some lints about line length
Fix use of ExecFuture to pass a scalar string as first argument instead of variable.
I managed to compile xhpast on windows using llvm installed via Scoop. I also have Visual Studio C++ 19 installed which may be required (I saw some suspicious output that indicated that some include files were being pulled from that install somehow).
I wonder how many Windows users we have. The xhpast linter does not work, and the unit test failures listed here are pre-existing and occur without these changes.
Feb 5 2024
Almost seems a little too easy
Jan 30 2024
I’m not sure about Permalink being a top-level button. Maybe under the View Options menu?
Jan 26 2024
I believe it was originally made for Phacility to accept donations and then process payments for paid support, neither of which we want at Phorge, and I doubt is used elsewhere. Removing seems fine to me.
Jan 19 2024
Is it assumed that using the site will automatically license the user’s content under these, or should there be a line for that?
Thanks!
Jan 18 2024
@bekay while in this area of code would you have any pointers on these other issues I’d like to fix at some point?
- File browse widget doesn’t work unless logged in, for publicly accessible repos
- The search results pop up width is often too narrow to show the full results path, and truncates the end of the path instead of beginning.
Looks good! Thank you so much for this!
Jan 17 2024
Jan 14 2024
Jan 13 2024
Thanks - I did mean as an inline comment in the code but either is good.
Is the input to parseDiff guaranteed to be UTF-8 encoded? I don’t have the code on-hand to look up but it’s possible encoding is handled elsewhere — or arc might have a hard requirement for all input to be UTF-8. All mercurial commands run by arcanist are done with a flag to enforce UTF-8.
Hmm I’ve used mercurial and arcanist/Phab for years at my company and don’t believe we’ve ever run into this. Any idea what’s causing the presence of the BOM? We’ll apply a change to handle the UTF-8 bom but I am curious what may have caused it to show up. Is your hgrc configured in some way for this or maybe an environment variable?
Jan 12 2024
Jan 11 2024
Same comment about keeping strlen. Up to you if you want to switch before landing.
ty
Jan 10 2024
I have some containers I put together for development which could provide a place to start
https://github.com/neandrake/phab-dev
Jan 7 2024
Also instead of “Goodie” maybe “Helper” or something. Maybe there’s a similar naming elsewhere in the code base
I forgot I had this requesting changes. Any idea of the performance hit in markup rendering now that PhutilURI is constructed for every link? I think its constructor does a fair amount.
Dec 14 2023
Dec 10 2023
Dec 9 2023
I’ve been meaning to investigate this. It also has thrown me that it’s not available where you expect it. I do suspect @valerio.bozzolan is right
Dec 7 2023
It might be safer to do a null check with the strlen check in case the value isn’t a string.
Dec 5 2023
Good catch. I don’t think it would cause an implosion but might result in not applying constraints when it should
Dec 4 2023
Whitelisting both vs and id sound good.
Dec 3 2023
I spent only 5 minutes playing around on a diff to see what might make the url change. The diff id is probably the key one I’d be interested in keeping. I don’t know what the other params are for (even vs).
Dec 2 2023
Hmm that stack trade doesn’t seem to contain the origin of the issue, likely getting lost through error handling or maybe it’s an incomplete stack trace.
This seems fine, though I wonder if we should introduce a phutil_empty_string() or phutil_is_empty_string function to avoid the double-negative logic. I think this reads more easily:
if (phutil_empty_string($from)) { throw new Exception() }
Is there a stacktrace to work from here? I suspect nothing should really be passing null into phutil_encode_log() and there's likely another issue here. I prefer preventing passing null values into this rather than papering over the issue here in the depths of util functions.
Thank you so much for the header fix that’s been bugging me every time I use conpherence lol
Dec 1 2023
Thanks for staging this @valerio.bozzolan
6 year old in-your-face unreported bugs like these make me wonder how many people use Phabricator/Phorge :-(
It's not many, but this issue would be specific to anyone using Phabricator/Phorge for PHP development, which is likely Phab/Phorge itself is close to 100% of that market. And Phab/Phorge also itself has its own unit testing framework instead of PHPUnit.
Nov 30 2023
What do you think about keeping the current naming scheme but whitelisting a handful of query params to use instead of using them all? The timestamp adds noise and it's probably nice to see the ID of the diff in the filename, e.g. D25478.id1541.diff? Maybe just allow the the id parameter and regex that it's value is just a string of numbers.
Sorry for the delayed review
Oh interesting
Nov 29 2023
Was this the result of a recent change?
Nov 28 2023
Nov 19 2023
I don’t think revert I’d needed but the comment should probably be removed or updated. I’d like to understand why it was deemed hard to do but the solution here doesn’t seem that hard. Maybe it’s more difficult than it appears, or was robots.txt standard later updated in a way that makes this easier, or maybe Phab URLs changed in a way that made this easier but this was never updated, etc.
Nov 17 2023
Nov 16 2023
Nov 15 2023
Nov 14 2023
Minor, just suggestion
I think there’s still a chunk to do here, including additional documentation during setup