Page MenuHomePhorge
Feed All Stories

Jul 29 2024

valerio.bozzolan added a comment to D25051: Destroy file attachments when file is deleted, or object is deleted.

We can take inspiration from Phame (?)

Jul 29 2024, 20:29 · Files
valerio.bozzolan added a comment to D25740: Disallow awarding a badge without selecting recipient.

It's perfect as-is. Just adding last notes since I'm in verbose mode

Jul 29 2024, 19:46
valerio.bozzolan accepted D25740: Disallow awarding a badge without selecting recipient.

I thought there was a ->setFormErrors($errors) but it's not the case. Nice as-is. Tested thanks :3

Jul 29 2024, 19:38
aklapper closed D25755: Fix accessing private parent class properties in QueryFuture.
Jul 29 2024, 16:41
aklapper committed rP6d5cde8e1cbc: Fix accessing private parent class properties in QueryFuture.
Fix accessing private parent class properties in QueryFuture
Jul 29 2024, 16:41
valerio.bozzolan added a comment to D25754: Add return statements for PhutilChannelChannel::readBytes()/writeBytes().

Uhm. Before the change, the method returns void. After the change, the method returns void. So this proposed change would be "to make PHPStan happy" but I expect it will highlight in future versions of PHPStan as well.

Jul 29 2024, 10:55
valerio.bozzolan accepted D25755: Fix accessing private parent class properties in QueryFuture.

Double-slam-accept

Jul 29 2024, 10:47
aklapper updated the diff for D25755: Fix accessing private parent class properties in QueryFuture.

Use canResolve() as found by Valerio (so much for my reading skills)

Jul 29 2024, 10:45
valerio.bozzolan edited the content of Next Up.
Jul 29 2024, 10:44
valerio.bozzolan closed D25118: Remarkup: make less internal links open in new tabs.
Jul 29 2024, 10:42
valerio.bozzolan closed T15161: Internal resources should avoid to become external links, as default as Resolved by committing rP349f006904fa: Remarkup: make less internal links open in new tabs.
Jul 29 2024, 10:42 · User-valerio.bozzolan, Discussion Needed, Remarkup
valerio.bozzolan committed rP349f006904fa: Remarkup: make less internal links open in new tabs.
Remarkup: make less internal links open in new tabs
Jul 29 2024, 10:42
valerio.bozzolan updated the diff for D25118: Remarkup: make less internal links open in new tabs.

git rebase master (just because we can)

Jul 29 2024, 10:40
valerio.bozzolan accepted D25755: Fix accessing private parent class properties in QueryFuture.

Seems good thanks. It seems we can also have it shorter with canResolve() 🤔

Jul 29 2024, 10:35
avivey added a comment to D25750: fix PHP8 array_slice($results, null) which cause diffusion locate file broken.

You didn't have Trusted Contributors membership, which provides access to the repo. Try now

Jul 29 2024, 06:27
avivey added a member for Trusted Contributors: gemini133.
Jul 29 2024, 06:26
gemini133 added a comment to D25750: fix PHP8 array_slice($results, null) which cause diffusion locate file broken.

Could you try arc land instead of git push?

Jul 29 2024, 01:10

Jul 28 2024

aklapper requested review of D25755: Fix accessing private parent class properties in QueryFuture.
Jul 28 2024, 21:26
aklapper requested review of D25754: Add return statements for PhutilChannelChannel::readBytes()/writeBytes().
Jul 28 2024, 17:24
aklapper requested review of D25753: Fix call to undefined method PhabricatorInlineCommentController::canEditInlineComment().
Jul 28 2024, 17:04
aklapper requested review of D25752: Fix call to undefined method PhrictionDocumentTitleTransaction::renderHandleLink().
Jul 28 2024, 16:29
aklapper added a comment to D25750: fix PHP8 array_slice($results, null) which cause diffusion locate file broken.

Could you try arc land instead of git push?

Jul 28 2024, 15:20
aklapper requested review of D25751: Fix incorrect return value of PhabricatorCustomField::readValueFromObject().
Jul 28 2024, 14:44
aklapper added a revision to T15895: PhabricatorCustomField::readValueFromObject() should not return $this: D25751: Fix incorrect return value of PhabricatorCustomField::readValueFromObject().
Jul 28 2024, 14:44
gemini133 added a comment to D25750: fix PHP8 array_slice($results, null) which cause diffusion locate file broken.

Many thanks for your patience. you're very kind!
but I do have trouble landing this diff.
not sure what I'm doing wrong.

Jul 28 2024, 14:12
valerio.bozzolan awarded D25668: Add Open Graph protocol meta tags to Maniphest task pages a Doubloon token.
Jul 28 2024, 09:23
valerio.bozzolan added inline comments to D25668: Add Open Graph protocol meta tags to Maniphest task pages.
Jul 28 2024, 09:19
valerio.bozzolan accepted D25750: fix PHP8 array_slice($results, null) which cause diffusion locate file broken.

Please evaluate the same change also here to fix the "Pattern Search"

Jul 28 2024, 08:23
valerio.bozzolan updated the diff for D25750: fix PHP8 array_slice($results, null) which cause diffusion locate file broken.

arc lint

Jul 28 2024, 08:14
gemini133 added a comment to D25750: fix PHP8 array_slice($results, null) which cause diffusion locate file broken.

I skiped the linting and unit testing because they take time to process. too much for this tiny change

Jul 28 2024, 01:48
gemini133 requested review of D25750: fix PHP8 array_slice($results, null) which cause diffusion locate file broken.
Jul 28 2024, 01:45

Jul 27 2024

aklapper updated the task description for T15895: PhabricatorCustomField::readValueFromObject() should not return $this.
Jul 27 2024, 17:07
aklapper created T15895: PhabricatorCustomField::readValueFromObject() should not return $this.
Jul 27 2024, 17:06
aklapper created T15894: Numerous methods calling their non-existing parent:: methods.
Jul 27 2024, 15:57
aklapper updated the diff for D25740: Disallow awarding a badge without selecting recipient.

Too lazy, just doing the same as in rP43d3fd9eac6e8e44d8a60110d8ad6f01bb240979: Turn "Required" red after the first attempt

Jul 27 2024, 15:43
speck accepted D25118: Remarkup: make less internal links open in new tabs.
Jul 27 2024, 15:31
aklapper updated the diff for D25740: Disallow awarding a badge without selecting recipient.

Rebase after merging rP59678094fb777aed3c3eb66e8075c082b3dc393f

Jul 27 2024, 15:27
aklapper closed D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code.
Jul 27 2024, 15:23
aklapper committed rP59678094fb77: Refactor PhabricatorBadgesEditRecipientsController to remove dead code.
Refactor PhabricatorBadgesEditRecipientsController to remove dead code
Jul 27 2024, 15:23
aklapper updated the test plan for D25668: Add Open Graph protocol meta tags to Maniphest task pages.
Jul 27 2024, 15:22
aklapper added a comment to D25668: Add Open Graph protocol meta tags to Maniphest task pages.

Replying to a comment in Z1 from a week ago: When Phorge's curtain doesn't allow someone to access the content, it shows either a 404 ("Access Denied: Restricted Maniphest Task") or the login dialog. In both cases, no OGP meta tags are leaked.

Jul 27 2024, 15:21
aklapper requested review of D25749: Fix call to undefined HarbormasterBuildMessageRestartTransaction::isFailed().
Jul 27 2024, 11:21
valerio.bozzolan awarded Q144: Support for arc work T12345 (workOnTask workflow) a Love token.
Jul 27 2024, 10:49 · Feature Requests, Arcanist
valerio.bozzolan updated the summary of D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code.
Jul 27 2024, 10:47
valerio.bozzolan accepted D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code.

Thaaaaanks, it works

Jul 27 2024, 10:46
valerio.bozzolan retitled D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code from Fix undefined variable in PhabricatorBadgesEditRecipientsController
Jul 27 2024, 10:46
aklapper updated the diff for D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code.

Same results as Valerio after testing more. Also remove unused vars $title and $header_name - they are unused.

Jul 27 2024, 05:19
aklapper closed T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3, as Resolved.
Jul 27 2024, 04:47 · PHP 8 support
aklapper closed T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password as Resolved by committing rP7909f6a91937: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.
Jul 27 2024, 04:47 · PHP 8 support
aklapper closed D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.
Jul 27 2024, 04:47
aklapper committed rP7909f6a91937: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.
Fix PHP 8.1 "strlen(null)" exception on LDAP login without password
Jul 27 2024, 04:47

Jul 26 2024

valerio.bozzolan added a comment to D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.

Yup. Laaaand

Jul 26 2024, 20:37
aklapper added a comment to D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.

The $password variable is not a string anymore in the line after. I guess it's not much more expensive to check if the string $username is nonempty versus comparing to a boolean value

Jul 26 2024, 19:31
valerio.bozzolan added a comment to T15879: Documentation: Macro image rendered instead of keyword when names match.

As temporary Phorge workaround, we may want to document these email keywords rendered as "progress". So we can just manually add backtics (?)

Jul 26 2024, 19:19
aklapper added a comment to T15879: Documentation: Macro image rendered instead of keyword when names match.

Quick notes:

  • For testing code changes, make sure to ./bin/cache purge --caches remarkup
  • rPcc44ae32c546: Remove obsolete "setDisableMacros()" on "PhabricatorRemarkupControl" once upon a time existed, could provide a base
    • But how to even realize/pass the info that we are rendering strings in a documentation context?
  • PhutilRemarkupRule has a isFlatText($text) method but no setFlatText(true) method
  • PhutilRemarkupSimpleTableBlockRule::markupText() is handling our $cell which has the meme/macro name as its only string content
  • Afterwards, PhabricatorMemeRemarkupRule:apply() is the next step being called
Jul 26 2024, 17:56
valerio.bozzolan accepted D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.

Thaaaanks. I wonder why $has_password has a dedicated variable, and instead $has_username has not 🤔

Jul 26 2024, 16:09
aklapper updated the task description for T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password.
Jul 26 2024, 14:50 · PHP 8 support
aklapper requested review of D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.
Jul 26 2024, 14:46
aklapper added a revision to T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password: D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.
Jul 26 2024, 14:46 · PHP 8 support
aklapper created T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password.
Jul 26 2024, 14:43 · PHP 8 support
aklapper closed D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call.
Jul 26 2024, 11:48
aklapper committed rP903015312a0b: Remove unused parameter from PhabricatorDaemonController::buildSideNavView()….
Remove unused parameter from PhabricatorDaemonController::buildSideNavView()…
Jul 26 2024, 11:48
valerio.bozzolan added a comment to D25118: Remarkup: make less internal links open in new tabs.

Flagging all comments as done (but feel free to share other things)

Jul 26 2024, 10:43
valerio.bozzolan added a comment to D25118: Remarkup: make less internal links open in new tabs.

Thanks again @speck. This is probably useful to answer your performance question:

Jul 26 2024, 10:41
valerio.bozzolan accepted D25711: Suppress PHP 8.1 warnings "Return type mixed is not covariant with tentative return type mixed of method Iterator::key()".

😐

Jul 26 2024, 10:21
valerio.bozzolan accepted D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call.
Jul 26 2024, 10:11
aklapper closed D25747: Remove unused parameter from PhabricatorMailEmailEngine::newEmailThreadingHeaders() call.
Jul 26 2024, 10:06
aklapper committed rPc5c2b8ce5a67: Remove unused parameter from PhabricatorMailEmailEngine….
Remove unused parameter from PhabricatorMailEmailEngine…
Jul 26 2024, 10:06
valerio.bozzolan accepted D25747: Remove unused parameter from PhabricatorMailEmailEngine::newEmailThreadingHeaders() call.
Jul 26 2024, 10:02
arp asked Q144: Support for arc work T12345 (workOnTask workflow).
Jul 26 2024, 09:00 · Feature Requests, Arcanist
aklapper closed D25745: Remove unused parameter from PhabricatorConfigConsoleController::newLibraryVersionTable() call.
Jul 26 2024, 08:24
aklapper committed rP4e31cadb54d2: Remove unused parameter from PhabricatorConfigConsoleController….
Remove unused parameter from PhabricatorConfigConsoleController…
Jul 26 2024, 08:24
valerio.bozzolan accepted D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code.

Thanks. It seems that line 17 impose edit capability. Also, appendForm() does not accept a null.

Jul 26 2024, 07:25
valerio.bozzolan accepted D25745: Remove unused parameter from PhabricatorConfigConsoleController::newLibraryVersionTable() call.

I cannot imagine any situation where the incoming viewer from handleRequest(AphrontRequest $request) could be different from the implicit viewer from AphrontController#getViewer() ($this->getRequest()->getViewer()).

Jul 26 2024, 07:09

Jul 25 2024

aklapper requested review of D25747: Remove unused parameter from PhabricatorMailEmailEngine::newEmailThreadingHeaders() call.
Jul 25 2024, 18:34
aklapper retitled D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call from Remove parameter from PhabricatorDaemonController::buildSideNavView() call
Jul 25 2024, 13:56
aklapper requested review of D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call.
Jul 25 2024, 13:54
aklapper requested review of D25745: Remove unused parameter from PhabricatorConfigConsoleController::newLibraryVersionTable() call.
Jul 25 2024, 13:50
aklapper requested review of D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code.
Jul 25 2024, 13:43
aklapper requested review of D25743: Fix stripping headers from proxy requests to other cluster nodes.
Jul 25 2024, 13:31
aklapper closed D25741: Fix undefined variable in HeraldAction.
Jul 25 2024, 12:41
aklapper committed rP0b93685cc999: Fix undefined variable in HeraldAction.
Fix undefined variable in HeraldAction
Jul 25 2024, 12:41
valerio.bozzolan added a comment to T15889: Apache 2.4.61 throws a 403 Forbidden for links containing %3F.

Thanks. What happens in older Apache2 versions?

Nothing. :) This issue only popped up in our error logs after an Apache update.

Jul 25 2024, 10:15
valerio.bozzolan accepted D25741: Fix undefined variable in HeraldAction.

sgtm

Jul 25 2024, 10:12

Jul 24 2024

aklapper requested review of D25742: Fix non-existing log method in HarbormasterManagementRestartWorkflow.
Jul 24 2024, 16:36
aklapper requested review of D25741: Fix undefined variable in HeraldAction.
Jul 24 2024, 15:48
valerio.bozzolan updated the name of F2328200: Phorge post-commit Audit review.png from "image.png" to "Phorge post-commit Audit review.png".
Jul 24 2024, 09:29
valerio.bozzolan created T15892: Post-Commit Audit review: authors cannot "Raise Concern".
Jul 24 2024, 09:27 · Discussion Needed, Bug Reports, Diffusion

Jul 23 2024

20after4 added a comment to T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().

I think line 392 should be:

Jul 23 2024, 21:15
aklapper updated subscribers of T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().

Not sure if @20after4 has any opinions on this? :) For the records, the code looked like this before this last change: https://we.phorge.it/source/phorge/browse/master/src/applications/config/check/PhabricatorMySQLSetupCheck.php;a41d158490c0cd0a0454653473c39f7ad2b5954f$381-384

Jul 23 2024, 20:25
valerio.bozzolan added a comment to T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().

Ah. Maybe PhabricatorSearchHost should extend PhabricatorSearchService? Boh

Jul 23 2024, 13:53
valerio.bozzolan added a comment to T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().

I don't get this 🤔

Jul 23 2024, 13:51
aklapper created T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().
Jul 23 2024, 13:24
aklapper added a comment to T15378: PhabricatorApplicationTransactionStructureException trying to mute File notifications: "Attempting to apply a transaction which has not been constructed correctly".

My userbase is stellar in relentlessly clicking every button you provide them :P

Jul 23 2024, 09:34 · Bug Reports
aklapper added a comment to T15889: Apache 2.4.61 throws a 403 Forbidden for links containing %3F.

Thanks. What happens in older Apache2 versions?

Jul 23 2024, 09:25
valerio.bozzolan updated the task description for T15890: Workboard: better clarify if it's Archived.
Jul 23 2024, 08:53 · UX, Projects
valerio.bozzolan added a comment to T15882: When archiving a project, reset its default menu item to Profile.

OK. If you are partially mentioning nonsenses in we.phorge.it itself, you are indeed right.

Jul 23 2024, 08:50 · Discussion Needed, Feature Requests, Projects
valerio.bozzolan changed the visibility for F2325001: Workboard of an Archived Project - Phorge June 2024.png.
Jul 23 2024, 08:43
valerio.bozzolan updated the name of F2325001: Workboard of an Archived Project - Phorge June 2024.png from "image.png" to "Workboard of an Archived Project - Phorge June 2024.png".
Jul 23 2024, 08:43
valerio.bozzolan created T15890: Workboard: better clarify if it's Archived.
Jul 23 2024, 08:43 · UX, Projects