It works now, thanks
is there any documentation like https://secure.phabricator.com/book/phabricator/ hosted by phorge? I worry that the phabricator/book will disappear some time
https://we.phorge.it/book/phorge/ ๐ฌ should have looked in the most obvious place
then again I couldn't find a link from the home page so struggled to find it again
Home โ Documentation โ Phorge ๐
Maybe we misconfigured something?
The last link "Defined in... concepts/behaviors.diviner:1 " does not work:
https://we.phorge.it/book/javelin/article/behaviors/
Only in Javelin, other books work
Heya, I'm writing an extension and I was wondering if there's a space to store request context? I have a preflight function that takes a reference to the AphrontRequest passed into the controller - right now I'm modifying requestData, but that obviously has the downside of being modifiable at request-time just with ?x=y.
My current workaround to that is checking every value I'm going to be setting and just halting the request if it's being sent (although realistically I could just override the value and be fine.. ehh, I'm iffy on it)
Some context: I'm abusing the controller system to create an API within Phorge that authenticates a system calling it with JWTs instead of Conduit; It's horrible and somehow works?
Anyways; I'm calling the preflight check function as the first thing that happens in each controller handler, since I expose them without auth controller-side.
Here's some example code of what I'm basically trying to do
// public static function PreflightApiChecks(AphrontRequest &$request): ?AphrontResponse public function handleRequest(AphrontRequest $request): AphrontResponse { $preflight = Util::PreflightApiChecks($request); if ($preflight !== null) { return $preflight; // 403 or 404 response, depending on internal "stealth_mode" config to prevent probing } $jwt_issuer = $request->getStr('jwt_iss'); // token issuer is set in preflight
btw, assuming I want to turn this into a library instead of an extension (to both avoid the stated performance penalty in docs, and because I just hit an issue where an abstract class i created wasn't resolved until i turned it into a lib for arc liberate), is placing it into the extensions/ dir good enough? I'd prefer avoiding using the load-libraries config- (if not, would a shim of ...Init.php that runs phutil_register_library('libname', '/path/to/actual/lib'); work in its place in extensions, or would I end up loading too late?)
(sorry, had to go and things)
For the second question: If you put the file in /extensions/, then it will still try to load it automatically even if you did arc liberate, so you wouldn't gain anything performance-wise. I think an explicit phutil_register_library would "just work"; I'm not 100% sure you can use it in a Preamble script, worth trying out.
Ah, thanks avivey. There was an user talking about $_SERVER['HTTPS'] = true; and now I see that is covered by that "Preamble script"
But I cannot find that question - but I've found this (undocumented?) option that probably does the same thing https://we.phorge.it/rPee05fe81a4515621546fbd4f034b6b496f63fae1
For the first issue - I'm not sure if we have anything exactly like this.
There is a "request cache" that you could maybe use for this; It's used for policy checks in some places. It an optional size limit, so it's not ideal for this task.
Also maybe somebody can help l2dy to confirm their email manually
Yep. Can you reproduce this problem on desktop with small window? also in other phones? or just on your specific phone?
How do you recommend I make a feature request? In particular I'd like the breakpoint width to be changed for showing project columns as columns as opposed to full-width boxes, especially when I have "request desktop site" ticked (not sure that does anything though). It would be nice to be able to use the increased screen real estate of Android tablets and folding phones. Probably a niche request but I don't mind doing the work.
IIRC "Request Desktop Site" is basically ignored, see also https://phabricator.wikimedia.org/T258529 (though that does not really provide pointers)
To file a feature request, create a new Maniphest Task and follow this guide: https://we.phorge.it/book/contrib/article/feature_requests/
(although this guide might need updating?)
Does Phorge offer functionality for generating SQL for a LiskDAO/PhabricatorLiskDAO descendant? Given that Phorge is capable of inspecting its own schema I would expect it to be capable of generating a table definition, but all I could find is bin/storage quickstart and that is broken on latest master.
(For context, this is in a new application, in an extension)
I'd better get some tunes going to bang out SQL like the olden days then. Maybe if I'm feeling particularly daring I'll build something for that too. Thanks!
when I run arc lint --everything in the phorge repo, some of the unit test files are auto-corrected which will break the corresponding tests:
- src/infrastructure/markup/remarkup/__tests__/remarkup/block-then-list.txt
- src/infrastructure/markup/remarkup/__tests__/remarkup/diff.txt
- src/infrastructure/markup/remarkup/__tests__/remarkup/just-backticks.txt
- src/infrastructure/markup/remarkup/__tests__/remarkup/leading-newline.txt
- src/infrastructure/markup/remarkup/__tests__/remarkup/tick-block-multi-flavored-comment.txt
- src/infrastructure/markup/remarkup/__tests__/remarkup/tick-block-multi-flavored.txt
- src/infrastructure/markup/remarkup/__tests__/remarkup/tick-block-multi.txt
- src/infrastructure/markup/remarkup/__tests__/remarkup/trailing-whitespace-codeblock.txt
All the "errors" are trailing whitespaces.
Shouldn't these txt files be ignored somehow ?
How to drop a Diviner book? Like, the old "phabricator" Diviner book? ๐ค
There was some CVE reported somewhere about graphviz, but the real concern was allowing un-sanitized user input to be provided directly to 3rd party executables running server-side.
cowsay (and figlet) were re-written in php and are still around, but we couldn't do that with graphviz.
mermaid runs in the user's browser, so it's still a risk, it's slightly less so.
[PSA] Last call for your opinionated review comment on "Allow collapsing/expanding workboard column content by clicking its header" in https://we.phorge.it/D25672 before merging - TIA
Would anyone have review opinions on merging OGP support for Maniphest tasks in https://we.phorge.it/D25668 ? Asking as I repeatedly get asked about this in my company... Comments like "no, make this more generic and not only for tasks" are also fine but I'd consider that a future step