Page MenuHomePhorge
Feed All Stories

Jan 13 2024

speck added a comment to D25514: Correct manual upload of Differential patch with a leading BOM.

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.

Jan 13 2024, 15:51
speck added a comment to T15452: Differential drops a diff's first hunk if the file starts with a Byte-order-Mark.

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 13 2024, 15:42 · Differential
aklapper updated the task description for T15326: PHP 8.0 without GD installed: Unhandled Exception setting a project profile image: Call to undefined function imagecreatefromstring().
Jan 13 2024, 14:32 · Files, PHP 8 support
aklapper added a comment to T15638: RuntimeException: "Undefined index" when left diff does not exist in DifferentialRevisionTimelineEngine.php.

I'm tempted to just change that one line to $left = idx($view_data, 'left', 0); so there shoud not be a crash at this stage anymore but instead the default value 0 is passed to the DifferentialDiffQuery and to the new DifferentialTransactionView... but I lack a reproducer to check if all other code is fine with this.

Jan 13 2024, 13:35
aklapper closed T15511: Do not require the real name during registration as Invalid.

PHP 8.2.14, Phorge at cc964550f945b08c64970c01a34b55314e8ef0aa

  1. As an admin, check that /config/edit/user.require-real-name/ is set to Make real names optional
  2. Log out of Phorge
  3. Go to http://phorge.localhost/auth/register/
  4. See that the Real Name field does not state Required on the right
  5. Enter values into the fields Username, Password, Confirm Password, Email
  6. Click the Register Account button
Jan 13 2024, 11:46 · Auth
avivey added a comment to T15565: Phorge Extension for Phorge.it.

I've created R10 PhorgeIt Extension for this, with a little bit of content. I'll load it to the server shortly.

Jan 13 2024, 11:27 · Phorge Development Tools, phorge.it install
avivey committed R10:86dda1c5bb63: Start phorge.it extension.
Start phorge.it extension
Jan 13 2024, 11:27
aklapper added a comment to T15511: Do not require the real name during registration.

Reference: rPdfcccd4cb882a171d10ba8a5c2763dcc73654256

Jan 13 2024, 10:55 · Auth
aklapper added a revision to T15452: Differential drops a diff's first hunk if the file starts with a Byte-order-Mark: D25514: Correct manual upload of Differential patch with a leading BOM.
Jan 13 2024, 10:21 · Differential
aklapper requested review of D25514: Correct manual upload of Differential patch with a leading BOM.
Jan 13 2024, 10:21
avivey added a comment to T15701: Clarify that a Project is just a "Tag".

+lots for removing the words "storage containers" - projects are very much not "storage".
A better metaphor is "labels" or "index" (like in a printed book? Is that something young people know about?).

Jan 13 2024, 10:21 · UX, Projects
avivey added a project to T15582: Allow blocking users: Clarification Needed.
Jan 13 2024, 10:14 · Clarification Needed
avivey added a comment to T15705: Lower the search ranking of disabled user accounts.

Also for Archived Projects, and maybe some other objects.
I'm not sure if there's a generic way to do this, or if each search-engine needs to be updated manually.

Jan 13 2024, 10:12 · Spam mitigation, UX
avivey created T15709: modernize the "add item to menu" flow to deprecate EventListener.
Jan 13 2024, 10:11
aklapper added a comment to T15322: Footer: specify a default Libre license for Phorge contents.

+1 on Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses.

Jan 13 2024, 03:06 · Discussion Needed, Governance
aklapper added a comment to T15582: Allow blocking users.

clarify why the Disable User button [...] not sufficient for this purpose.

Jan 13 2024, 03:01 · Clarification Needed
aklapper added a comment to T15701: Clarify that a Project is just a "Tag".

I'd like to keep this boring:
Projects are hashtags are tags. You can use them for code bases, teams, or anything you need to group.

Jan 13 2024, 02:54 · UX, Projects
aklapper renamed T15452: Differential drops a diff's first hunk if the file starts with a Byte-order-Mark from Differntial drops a diff's first hunk if the file starts with a Byte-order-Mark to Differential drops a diff's first hunk if the file starts with a Byte-order-Mark.
Jan 13 2024, 02:50 · Differential
aklapper updated aklapper.
Jan 13 2024, 02:43
aklapper accepted D25507: Config User Extra Fields: link to the doc (like Maniphest).
Jan 13 2024, 02:37
aklapper closed T15707: Long labels overlap in Add Action area as Resolved by committing rPcc964550f945: Ellipsize long labels in Add Action area to avoid text overlap.
Jan 13 2024, 02:30
aklapper closed D25511: Ellipsize long labels in Add Action area to avoid text overlap.
Jan 13 2024, 02:30
aklapper committed rPcc964550f945: Ellipsize long labels in Add Action area to avoid text overlap.
Ellipsize long labels in Add Action area to avoid text overlap
Jan 13 2024, 02:30

Jan 12 2024

speck added inline comments to D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.
Jan 12 2024, 22:51
valerio.bozzolan updated the test plan for D25504: Fix "Map omits required key" exception by comparing result order against modern field keys.
Jan 12 2024, 22:14
valerio.bozzolan awarded T15631: "Map returned omits required key" exception for second result page (cursor) for Maniphest search ordered by custom field a Yellow Medal token.
Jan 12 2024, 22:12 · Affects-Wikimedia, Bug Reports
valerio.bozzolan accepted D25511: Ellipsize long labels in Add Action area to avoid text overlap.

Do you mean "action"? If yes, I can reproduce

Jan 12 2024, 22:00
valerio.bozzolan updated the test plan for D25511: Ellipsize long labels in Add Action area to avoid text overlap.
Jan 12 2024, 22:00
valerio.bozzolan accepted D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.

Indeed this fixes the problem. Premising there is still some mystery here that may deserve additional eyes.

Jan 12 2024, 21:54
valerio.bozzolan added inline comments to rPed7a5078f954: Add "user" and "users" standard custom fields.
Jan 12 2024, 21:53
valerio.bozzolan updated the diff for D25507: Config User Extra Fields: link to the doc (like Maniphest).

Sentence case <3

Jan 12 2024, 21:45
valerio.bozzolan abandoned D25078: Trigger: Capitalize most Buzzwords in our Weird Way as usual.

Part of this Diff has no sense now that I learned that... some of these has sense. Let's close.

Jan 12 2024, 21:44
valerio.bozzolan closed T15692: Allow to see your own public revoked key as Resolved by committing rP549a26d0879c: Auth SSH Details: show Public Key (not just Type).
Jan 12 2024, 21:34 · UX, User-valerio.bozzolan, Auth
valerio.bozzolan closed D25495: Auth SSH Details: show Public Key (not just Type).
Jan 12 2024, 21:34
valerio.bozzolan committed rP549a26d0879c: Auth SSH Details: show Public Key (not just Type).
Auth SSH Details: show Public Key (not just Type)
Jan 12 2024, 21:34
valerio.bozzolan added a member for Trusted Contributors: Harej.
Jan 12 2024, 21:06
doommius added a comment to T15708: Discord as auth method.

Sounds easy enough to implement.

Jan 12 2024, 18:44 · Auth
avivey added inline comments to D25513: Work in progress discord auth.
Jan 12 2024, 17:16 · Auth
avivey added a comment to T15708: Discord as auth method.

Doc(s) on new extensions: I remember having a chapter under /book/contrib/, but I can't find it now. We should build a guide under T15030.
Short answer: create a new repo, make an src dir with all the code, and run arc liberate to create a "library" (including __phutil_library_init__.php and __phutil_library_map__.php), and then add the path of the extension to load-libraries in conf.json.

Jan 12 2024, 17:02 · Auth
mturdus added a comment to D25509: Improve remarkup codeblock syntax highlighting when using Dark Mode.

I copy/pasted the keys of the getStyleMap() function dictionary into chatgpt with some remark that they were part of a syntax highlighting mechanism.
I asked it to translate them into something more readable.

Jan 12 2024, 16:25
doommius added a comment to T15708: Discord as auth method.

I'd like to see this as an Extension rather then go into the rP, just because we want to have more stuff as extensions; I think this area is abstracted enough so that it can easily be made that way.

That could be a good target as well for this, Is there docs on how extensions should be made?

Jan 12 2024, 14:21 · Auth
avivey added a comment to T15708: Discord as auth method.

I'd like to see this as an Extension rather then go into the rP, just because we want to have more stuff as extensions; I think this area is abstracted enough so that it can easily be made that way.

Jan 12 2024, 14:12 · Auth
valerio.bozzolan accepted D25512: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML.

Double-accept yeah

Jan 12 2024, 13:58
doommius updated the summary of D25513: Work in progress discord auth.
Jan 12 2024, 13:43 · Auth
doommius updated the summary of D25513: Work in progress discord auth.
Jan 12 2024, 13:42 · Auth
doommius updated subscribers of T15708: Discord as auth method.

@valerio.bozzolan & @avivey What is the best practice for setting up the role/server check when new users attempt to auth via the oauth, you can't set limits on the oauth from discords side of view so you'd need to set them up on phorge, I've put down some ideas in the above comment.

Jan 12 2024, 13:33 · Auth
doommius added a comment to D25513: Work in progress discord auth.

Also, apart from the linter results, this patch should not include the changes from D25512

Jan 12 2024, 13:29 · Auth
speck accepted D25512: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML.
Jan 12 2024, 13:23
doommius added a comment to T15708: Discord as auth method.

How would i go about implementing it such that for a user to sign in with discord they need to have certain roles.

Jan 12 2024, 13:13 · Auth
doommius added a comment to D25513: Work in progress discord auth.

(Small tip: never work in master. Create a git branch for each feature, in sync with origin/master, and with your commits on top of that, so your patch is minimal and arc diff works)

Jan 12 2024, 12:52 · Auth
valerio.bozzolan awarded D25513: Work in progress discord auth a Grey Medal token.
Jan 12 2024, 12:49 · Auth
valerio.bozzolan added a comment to D25513: Work in progress discord auth.

(Small tip: never work in master. Create a git branch for each feature, in sync with origin/master, and with your commits on top of that, so your patch is minimal and arc diff works)

Jan 12 2024, 12:48 · Auth
aklapper added a comment to D25513: Work in progress discord auth.

Also, apart from the linter results, this patch should not include the changes from D25512

Jan 12 2024, 12:26 · Auth
aklapper updated the diff for D25503: Allow to uninstall (hide) Audit application.

Also hide "Buckets" search field on diffusion/commit/query/advanced/ when Audit is uninstalled

Jan 12 2024, 12:25
aklapper added a comment to D25507: Config User Extra Fields: link to the doc (like Maniphest).

Yeah I honestly don't know if uppercase or lowercase.

Jan 12 2024, 12:12
aklapper updated the diff for D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.

manual rebase

Jan 12 2024, 12:07
aklapper accepted D25495: Auth SSH Details: show Public Key (not just Type).

LGTM. Tested locally and works as expected, use case also makes sense, plus this is only about public keys.

Jan 12 2024, 12:03
aklapper retitled D25512: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML from Fixed get title error when opening auth page, see T15706
Jan 12 2024, 11:58
doommius added a revision to T15708: Discord as auth method: D25513: Work in progress discord auth.
Jan 12 2024, 11:55 · Auth
doommius added a task to D25513: Work in progress discord auth: T15708: Discord as auth method.
Jan 12 2024, 11:55 · Auth
doommius requested review of D25513: Work in progress discord auth.
Jan 12 2024, 11:54 · Auth
doommius created T15708: Discord as auth method.
Jan 12 2024, 11:49 · Auth
aklapper added a comment to D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.
if (!is_array($value)) {  // ←←←←←←←←← May be this needs to be converted to is_string($value) or similar thing

This seems reasonable since it's nonsense to me to decode an integer, or decode a float. Only decoding a string makes sense to me.

Jan 12 2024, 11:47
aklapper updated the diff for D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.

Only call json_decode() in PhabricatorStandardCustomFieldPHIDs.php on string values, instead of not calling setValueFromApplicationTransactions() in PhabricatorCustomFieldEditField.php as proposed by Valerio

Jan 12 2024, 11:46
doommius added a revision to T15706: Phorge/auth/config/view/3/ Call to phutil_nonempty_string() expected null or a string, got: PhutilSafeHTML.: D25512: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML.
Jan 12 2024, 11:35 · Auth, Bug Reports
doommius added a task to D25512: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML: T15706: Phorge/auth/config/view/3/ Call to phutil_nonempty_string() expected null or a string, got: PhutilSafeHTML..
Jan 12 2024, 11:35
doommius requested review of D25512: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML.
Jan 12 2024, 11:34
valerio.bozzolan added a comment to D25507: Config User Extra Fields: link to the doc (like Maniphest).

Yeah I honestly don't know if uppercase or lowercase.

Jan 12 2024, 11:15
aklapper added a comment to D25507: Config User Extra Fields: link to the doc (like Maniphest).

Tested locally, all in all +1 but capitalization is inconsistent comparing to maniphest.custom-field-definitions: Custom Fields twice and User Profiles once should use lower-case.

Jan 12 2024, 10:59
valerio.bozzolan planned changes to D25118: Remarkup: make less internal links open in new tabs.
Jan 12 2024, 10:16
valerio.bozzolan changed the visibility for F709421: After D25509.png.
Jan 12 2024, 09:57
valerio.bozzolan changed the visibility for F709419: Before D25509.png.
Jan 12 2024, 09:57
valerio.bozzolan accepted D25509: Improve remarkup codeblock syntax highlighting when using Dark Mode.

I sincerely think this is lovely. Thanks. I do not understand how you figure it out all these keywords and in what order and associated to what, but hey, it works.

Jan 12 2024, 09:55
valerio.bozzolan retitled D25509: Improve remarkup codeblock syntax highlighting when using Dark Mode from Fix remarkup codeblock syntax highlighting when using Dark Mode
Jan 12 2024, 09:53
valerio.bozzolan added a comment to T15673: Phorge participation at FOSDEM 2024.

I set this to unbreak now just to give extra visibility on the homepage :^)

Jan 12 2024, 09:38 · Blessed Communicators, Phorge
valerio.bozzolan renamed T15673: Phorge participation at FOSDEM 2024 from Phorge participation at FOSDEM 2024 (Deadline: 10th December) to Phorge participation at FOSDEM 2024.
Jan 12 2024, 09:38 · Blessed Communicators, Phorge
valerio.bozzolan added a comment to D25478: Use predictable filenames when downloading raw diffs from a revision.

Ah, before landing, please consider an additional line in the comment (like the proposed one)

Jan 12 2024, 09:24
valerio.bozzolan accepted D25478: Use predictable filenames when downloading raw diffs from a revision.

As far as I can understand, the generated file name here is 100% for commodity purposes: not used for anything on the filesystem, not used as unique key in something, not used to check whenever the file should be created again or not.

Jan 12 2024, 09:22
valerio.bozzolan accepted D25503: Allow to uninstall (hide) Audit application.

I'm testing this. It works and this makes me happy. Please wait Sunday before landing this, so others can give an eye.

Jan 12 2024, 09:10
valerio.bozzolan added a comment to T15706: Phorge/auth/config/view/3/ Call to phutil_nonempty_string() expected null or a string, got: PhutilSafeHTML..

Can you try changing this line in your local install?

Jan 12 2024, 08:58 · Auth, Bug Reports
valerio.bozzolan raised a concern with rPa0fb344b9488: Fix PHP 8.1 auth view strlen(null) error.

Probably causing problems with Facebook OAuth

Jan 12 2024, 08:56
valerio.bozzolan awarded T15706: Phorge/auth/config/view/3/ Call to phutil_nonempty_string() expected null or a string, got: PhutilSafeHTML. a Grey Medal token.
Jan 12 2024, 08:53 · Auth, Bug Reports
valerio.bozzolan added Q103: Ponder: "New Answer" input box should be hidden for those without permissions. (Answer 131).
Jan 12 2024, 08:19
valerio.bozzolan added a member for Trusted Contributors: sirocyl.
Jan 12 2024, 08:18
aklapper closed T15691: PHP 8.1 "strlen(null)" exception creating Maniphest task when custom select field configured, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jan 12 2024, 07:40 · PHP 8 support
aklapper closed T15691: PHP 8.1 "strlen(null)" exception creating Maniphest task when custom select field configured as Resolved by committing rP8e09dbfee343: Fix PHP 8.1 exception creating task when custom select field configured.
Jan 12 2024, 07:40 · PHP 8 support
aklapper closed D25494: Fix PHP 8.1 exception creating task when custom select field configured.
Jan 12 2024, 07:40
aklapper committed rP8e09dbfee343: Fix PHP 8.1 exception creating task when custom select field configured.
Fix PHP 8.1 exception creating task when custom select field configured
Jan 12 2024, 07:40
fgaz updated fgaz.
Jan 12 2024, 07:37
aklapper closed T15687: PHP 8.1 "strlen(null)" exception when custom select field configured, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jan 12 2024, 01:05 · PHP 8 support
aklapper closed T15687: PHP 8.1 "strlen(null)" exception when custom select field configured as Resolved by committing rP40d10fbe1ae6: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.
Jan 12 2024, 01:05 · PHP 8 support
aklapper closed D25492: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.
Jan 12 2024, 01:05
aklapper committed rP40d10fbe1ae6: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.
Fix PHP 8.1 "strlen(null)" exception when custom select field configured
Jan 12 2024, 01:05
aklapper updated the diff for D25494: Fix PHP 8.1 exception creating task when custom select field configured.

Use strlen() instead of empty string check

Jan 12 2024, 01:04

Jan 11 2024

speck accepted D25494: Fix PHP 8.1 exception creating task when custom select field configured.

Same comment about keeping strlen. Up to you if you want to switch before landing.

Jan 11 2024, 23:25
aklapper updated the diff for D25503: Allow to uninstall (hide) Audit application.

Simplify some code / fix TODOs as proposed by Valerio

Jan 11 2024, 23:22
speck accepted D25492: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.

ty

Jan 11 2024, 23:21
aklapper added a comment to D25503: Allow to uninstall (hide) Audit application.

Just for the records and bystanders: All expectations described in D25503#14539 are also what the patch currently does.

Jan 11 2024, 23:21
aklapper updated the diff for D25492: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.

Use strlen() instead of empty string check

Jan 11 2024, 22:33
aklapper added inline comments to D25492: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.
Jan 11 2024, 22:32