Page MenuHomePhorge
Feed All Stories

Nov 16 2023

aklapper requested review of D25474: Disallow webcrawlers to index Diffusion commits.
Nov 16 2023, 10:11
aklapper added a revision to T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers: D25474: Disallow webcrawlers to index Diffusion commits.
Nov 16 2023, 10:11 · Discussion Needed
aklapper closed T15662: Disallow webcrawlers to follow Paste line number anchor links as Resolved by committing rP76ed0c7ff7be: Disallow webcrawlers to follow Paste line number anchor links.
Nov 16 2023, 10:00
aklapper closed D25461: Disallow webcrawlers to follow Paste line number anchor links.
Nov 16 2023, 10:00
aklapper committed rP76ed0c7ff7be: Disallow webcrawlers to follow Paste line number anchor links.
Disallow webcrawlers to follow Paste line number anchor links
Nov 16 2023, 10:00
aklapper created T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers.
Nov 16 2023, 09:55 · Discussion Needed
valerio.bozzolan added a comment to D25441: Fix possible array to string conversion renaming Pholio Mockup image.

Happy you fixed!

Nov 16 2023, 09:47
aklapper closed T15646: Renaming several Pholio Mockup images creates neverending daemon task (PhutilProxyException due to Array to string conversion) as Resolved by committing rPf42dd5819e98: Fix possible array to string conversion renaming Pholio Mockup image.
Nov 16 2023, 09:42 · Affects-Wikimedia, Bug Reports
aklapper closed D25441: Fix possible array to string conversion renaming Pholio Mockup image.
Nov 16 2023, 09:42
aklapper committed rPf42dd5819e98: Fix possible array to string conversion renaming Pholio Mockup image.
Fix possible array to string conversion renaming Pholio Mockup image
Nov 16 2023, 09:42
aklapper added a comment to D25441: Fix possible array to string conversion renaming Pholio Mockup image.

Thanks for the deeper investigation! I can confirm that with the last version and following my original steps to reproduce, no stuck daemon task about the mock looping due to an exception on http://phorge.localhost/daemon/ anymore, so I'm going to land this.

Nov 16 2023, 09:40

Nov 15 2023

Sten added a comment to T15501: Voluntary Usage Survey App.

One of my favourite updates in my workplace was to store counts of feature usage per month in a table. Move forward 3 years, and whenever we need to update some code in a feature, we check for it in the table, and if it's not been used in 3 years we just scrap the feature.

Nov 15 2023, 18:14 · Discussion Needed
Sten updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

Skip lint (javelinsymbols)

Nov 15 2023, 17:49
Sten updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

Great suggestions

  • Implemented celerity_generate_unique_node_id()
  • Implemented .collapsible-content > ul.remarkup-list CSS

Loved the comment, as otherwise I wouldn't have understood what was going on in the CSS. I've reworded it - hope that's OK.

Nov 15 2023, 17:49
valerio.bozzolan added a comment to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

JavaScript: ✅ I damn like your proposal and I think it is very OK, non-plus-ultra

Nov 15 2023, 16:29
valerio.bozzolan updated the name of F399268: Before.png from "image.png" to "Before.png".
Nov 15 2023, 15:44
valerio.bozzolan updated the name of F399270: After.png from "image.png" to "After.png".
Nov 15 2023, 15:44
Sten added a comment to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

I am quite happy with this now. Spent way too long on it, so I hope you like it too!

Nov 15 2023, 15:25
Sten updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
  • Refactored the PHP code to build the collapsible button & div into buildCollapsibleIndex()
  • Define the javelin call config first, then refer to it - saves defining the variables independently!
  • Create an icon field in the button, allowing for open and close icons to be set
  • Make both the icon and the text optional in the collapsible javascript - if you just want an icon, fine. Just text, also fine. Neither - sure!
Nov 15 2023, 15:23
valerio.bozzolan requested changes to D25473: Change some instances of "phabricator" to "phorge".

So this is the only blocking Test that is failing:

Nov 15 2023, 13:23
valerio.bozzolan updated the test plan for D25473: Change some instances of "phabricator" to "phorge".
Nov 15 2023, 13:19
valerio.bozzolan added a comment to D25473: Change some instances of "phabricator" to "phorge".

We have just a minor issue but with a potentially working fix, and it's ready to land

Nov 15 2023, 13:18
valerio.bozzolan edited the content of Next Up.
Nov 15 2023, 12:58
valerio.bozzolan closed T15528: Diffusion commit Feed: avoid to show the author twice (Authored by xxx) as Resolved by committing rP775d141fe6bf: Audit Feed: less verbose when the author is the committer.
Nov 15 2023, 12:57 · UX, User-valerio.bozzolan, Diffusion
valerio.bozzolan closed D25421: Audit Feed: less verbose when the author is the committer.
Nov 15 2023, 12:57
valerio.bozzolan committed rP775d141fe6bf: Audit Feed: less verbose when the author is the committer.
Audit Feed: less verbose when the author is the committer
Nov 15 2023, 12:57
speck accepted D25421: Audit Feed: less verbose when the author is the committer.
Nov 15 2023, 12:49
valerio.bozzolan added a revision to T15006: Re-brand Phorge: D25473: Change some instances of "phabricator" to "phorge".
Nov 15 2023, 12:17 · Phorge
valerio.bozzolan updated the summary of D25473: Change some instances of "phabricator" to "phorge".
Nov 15 2023, 12:17
valerio.bozzolan added a comment to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

I don't know. Let's see :)

Nov 15 2023, 11:49
Sten added a comment to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

The problem there is that by requiring collapsiblejx to have knowledge of the 'collapsible-toggler-label', we introduce tight coupling to it's caller. (see how adding 'jx' on to the end of collapsiblejx has made it uniquely identifiable?)
A better solution would be to have the collapsiblejx config contain 'btn_open_icon' and 'btn_close_icon' icons. I'll have a go...

Nov 15 2023, 09:52
valerio.bozzolan added inline comments to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
Nov 15 2023, 09:32
valerio.bozzolan updated the diff for D25421: Audit Feed: less verbose when the author is the committer.

avoid micro-optimizations that make this unreadable

Nov 15 2023, 08:41
valerio.bozzolan added inline comments to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
Nov 15 2023, 08:28
Sten updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
  • move duplicated button text into a variable
  • improve formatting
Nov 15 2023, 08:24
Sten updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
  • Renamed button/div IDs to remove spaces
  • Renamed diffusion-collapsible-container to collapsiblejx
  • Added margin-top: 10px; in the collapsible content - this overrides the higher up margin-top: 0px
  • Moved webroot/rsrc/js/application/diffusion/collapsible-container.js to webroot/rsrc/js/core/behavior-collapsiblejx.js
  • Renamed the JX from diffusion-collapsible-container to collapsiblejx - the single word collapsible was a bit too common if you 'git grep' for it.
Nov 15 2023, 08:14
valerio.bozzolan added inline comments to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
Nov 15 2023, 07:46
valerio.bozzolan added a comment to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

As already noted we were affected by this margin-top: 0; that was making the TOC a bit too much attached to the button:

Nov 15 2023, 07:34
valerio.bozzolan updated the name of F398751: Margins highlited.png from "Screenshot_2023_11_15_080423.png" to "Margins highlited.png".
Nov 15 2023, 07:33
valerio.bozzolan updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
  • sorry if I introduced an ID for just the label: now replace with a non-unique Javelin Sigil
  • tried to fix the margin-top thing
Nov 15 2023, 07:33
valerio.bozzolan added a comment to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

I can also propose another small change to adopt a sigil for the button label, so we don't need an ID.

Nov 15 2023, 06:58

Nov 14 2023

valerio.bozzolan added a comment to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

We need more help on this. Never approved anything similar, I don't have enough experience.

Nov 14 2023, 22:12
valerio.bozzolan updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

Tried to add a lovely icon but still keeping the label toggling and the whole button selectable

Nov 14 2023, 22:10
Sten updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

Renamed butt to btn as per PR. Much more common abbrieviation!

Nov 14 2023, 20:37
speck accepted D25421: Audit Feed: less verbose when the author is the committer.

Minor, just suggestion

Nov 14 2023, 19:45
valerio.bozzolan awarded D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup a Love token.
Nov 14 2023, 16:40
valerio.bozzolan added inline comments to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
Nov 14 2023, 16:40
Sten updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

Happy to take your suggestions with a couple of changes

  • Remove index from the config labels - we've made collapsible-container.js generic, and not just for an index.
  • The reason for the if/else block was to enable long variable/attribute names so as to have self-documenting code. I've done away with it, but we do need a comment instead so as to show why we associate the 'push this to close' text with the open state and vice-versa.
Nov 14 2023, 15:33
valerio.bozzolan added a comment to D25436: Update PhutilCowsay.php to work for small cows.

I'm a bit confused (!) I thought there were no PHP changes on Rev 1414 and I approved it, but instead I now see that we have again PHP changes. It's unclear to me whenever the Diff I approved was "updated to reflect changes", or maybe I'm just totally crazy because of real life. Please share your opinion.

Nov 14 2023, 15:31
Sten closed D25436: Update PhutilCowsay.php to work for small cows.
Nov 14 2023, 15:05
Sten committed rARC5bc53cfe53d0: Update PhutilCowsay.php to work for small cows.
Update PhutilCowsay.php to work for small cows
Nov 14 2023, 15:05
waldyrious updated the task description for T15644: Support backticks in inline and block code by wrapping with multiple backticks.
Nov 14 2023, 14:47 · Feature Requests, Remarkup
waldyrious updated the task description for T15290: vscode extension for working on phorge codebase.
Nov 14 2023, 14:44 · Phorge Development Tools, Phactory: Community Projects
waldyrious added projects to D25466: Improve command line prompts in setup issue pages: UX, Config.
Nov 14 2023, 14:40 · Config, UX
waldyrious updated the diff for D25473: Change some instances of "phabricator" to "phorge".
  • Use dynamically generated platform path where possible
Nov 14 2023, 14:37
waldyrious added inline comments to D25473: Change some instances of "phabricator" to "phorge".
Nov 14 2023, 14:28
valerio.bozzolan moved T15282: Fix/avoid/simplify similar fatal: detected dubious ownership in repository at '/var/www/phorge' from PingDeath 🌚 to 🔥 Trap on the User-valerio.bozzolan board.
Nov 14 2023, 13:55 · User-valerio.bozzolan
valerio.bozzolan edited Description on Blessed GitHub phorgelabs Admins.
Nov 14 2023, 13:55
valerio.bozzolan closed T15206: Clarify administrators of GitHub https://github.com/phorgelabs, a subtask of T15037: Support OAuth login via GitHub/Google/etc?, as Resolved.
Nov 14 2023, 13:54 · Governance
valerio.bozzolan closed T15206: Clarify administrators of GitHub https://github.com/phorgelabs as Resolved.

Hoping to be useful we can self-document this joining this group:

Nov 14 2023, 13:54 · User-valerio.bozzolan, Governance
valerio.bozzolan created Blessed GitHub phorgelabs Admins.
Nov 14 2023, 13:53
valerio.bozzolan moved T15163: The Task Cover Image is visible only to the uploader (invisible to Task participants) from Backlog to Code Sprint Candidate on the User-valerio.bozzolan board.
Nov 14 2023, 13:46 · Affects-Wikimedia, Maniphest, User-valerio.bozzolan, Cover Image, Workboard
valerio.bozzolan added inline comments to D25473: Change some instances of "phabricator" to "phorge".
Nov 14 2023, 13:37
valerio.bozzolan added a comment to D25421: Audit Feed: less verbose when the author is the committer.

(This was already approved but I wait for another "Yeah land" since I changed a thing)

Nov 14 2023, 13:23
valerio.bozzolan added a comment to T15669: Document how to install javelinsymbols.

To fix this error:

Nov 14 2023, 12:34
valerio.bozzolan created T15669: Document how to install javelinsymbols.
Nov 14 2023, 12:32
waldyrious added a comment to D25466: Improve command line prompts in setup issue pages.

Btw, there are some similar commands in src/applications/config/check/PhabricatorManualActivitySetupCheck.php. Should I change them as well? How can I "break Phorge" to see this page rendered?

Nov 14 2023, 12:24 · Config, UX
waldyrious requested review of D25473: Change some instances of "phabricator" to "phorge".
Nov 14 2023, 12:12
speck planned changes to D25276: Add support for secure connections to the database.

I think there’s still a chunk to do here, including additional documentation during setup

Nov 14 2023, 12:01
waldyrious updated the test plan for D25466: Improve command line prompts in setup issue pages.
Nov 14 2023, 11:50 · Config, UX
waldyrious updated the diff for D25466: Improve command line prompts in setup issue pages.
  • Actually the path is not needed here.
Nov 14 2023, 11:47 · Config, UX
waldyrious updated the diff for D25466: Improve command line prompts in setup issue pages.
  • Fix missing arguments to hsprintf; re-add csprintf to string using the %R conversion
Nov 14 2023, 11:46 · Config, UX
waldyrious updated the diff for D25466: Improve command line prompts in setup issue pages.
  • Improve prompts: use hsprintf instead of cprintf, add missing <tt> markers, simplify syntax
Nov 14 2023, 11:40 · Config, UX
waldyrious attached a referenced file: F397870: image.png.
Nov 14 2023, 11:36 · Config, UX
waldyrious added a comment to D25466: Improve command line prompts in setup issue pages.

For future reference, I went digging for the difference between csprintf() and hsprintf(), and found the following:

Nov 14 2023, 11:36 · Config, UX
valerio.bozzolan edited the content of Next Up.
Nov 14 2023, 11:30
aklapper added a comment to T15547: Alternative hashtag of milestone has no primary slug, thus project URL redirects to 404 /tag//.

This might be a duplicate of T15636

Nov 14 2023, 11:20
Sten added a comment to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.

As an aside, what do you think of https://github.com/campbsb/example-phorge-php-project - should we put a selection of example projects on https://we.phorge.it, either as individual repos, or one repo containing a bunch of examples, or somewhere in the arcanist repo ?

Nov 14 2023, 11:17 · Arcanist
valerio.bozzolan added a comment to D25418: Catch RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

(I will immediately hard-approve this lovely change as soon as we share whatever ACK like "Yeah let's log the planet" or "Yeah let's just show a user message")

Nov 14 2023, 11:14
valerio.bozzolan added a comment to D25418: Catch RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

OK the situation is a bit more clear now.

Nov 14 2023, 11:12
Sten added a comment to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.

More complete test case added to D25472 which demonstrates the following error:

Nov 14 2023, 11:10 · Arcanist
Sten updated the test plan for D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..
Nov 14 2023, 11:06
valerio.bozzolan added a comment to T15624: RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

Interesting. I think this specific crash was not caused by a specific document, but it was probably caused by a specific nonsense request with a nonsense encoding.

Nov 14 2023, 10:56
aklapper updated the diff for D25418: Catch RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

Good points. This patch puts also the exception message into phlog.

Nov 14 2023, 10:34
Sten updated the test plan for D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..
Nov 14 2023, 09:57
Sten requested review of D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..
Nov 14 2023, 09:57
Sten added a revision to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option: D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..
Nov 14 2023, 09:57 · Arcanist
valerio.bozzolan added a comment to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.
In T15667#14211, @Sten wrote:

how many people use Phabricator/Phorge :-(

Nov 14 2023, 09:38 · Arcanist
valerio.bozzolan edited the content of Organizations Using Phorge.
Nov 14 2023, 09:37
Sten added a comment to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.

I guess the documentation needs an update on page https://we.phorge.it/book/phorge/article/arcanist_lint_unit/ and/or https://we.phorge.it/book/phorge/article/arcanist_new_project/

Nov 14 2023, 09:28 · Arcanist
valerio.bozzolan accepted D25276: Add support for secure connections to the database.

I basically completely trust speck if they say this works with TLS, and I verified this works without TLS. Tried with / without this configuration.

Nov 14 2023, 09:28
Sten added a comment to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.

6 year old in-your-face unreported bugs like these make me wonder how many people use Phabricator/Phorge :-(

Nov 14 2023, 09:22 · Arcanist
valerio.bozzolan added a comment to D25418: Catch RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

(I share the same question from Sten)

Nov 14 2023, 08:27
valerio.bozzolan accepted D25422: Fix a PHP 8.1 deprecated use of strlen with a NULL argument on commit page.

I'm 5% scared by this since in 8 months we may discover that $author could be an object and so an user may report our well-known exception in some cases. But, the method name is getAuthorString() so I'm quite sure that Evan Priestley already choosen that name for a reason, and so, probably the getAuthor() is always a string or null and nothing else, so it's nice to report alien things with an exception, as proposed here.

Nov 14 2023, 08:20
valerio.bozzolan triaged T15668: [Performance] Avoid to calculate a string length, if we are just interested in "is empty" as Wishlist priority.
Nov 14 2023, 08:09
valerio.bozzolan created T15668: [Performance] Avoid to calculate a string length, if we are just interested in "is empty".
Nov 14 2023, 08:00
Sten claimed T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.
Nov 14 2023, 07:40 · Arcanist
Sten created T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.
Nov 14 2023, 07:40 · Arcanist
valerio.bozzolan added a comment to D25428: Fix the issue about persistent chat setting icon being clickable when the chat is collapsed.
  • We don't use document.querySelector - we use JX.DOM.find, you can see an example in line 43
Nov 14 2023, 07:38
valerio.bozzolan added a comment to D25466: Improve command line prompts in setup issue pages.

I love your change. Simple and effective and without impact on other parts.

Nov 14 2023, 07:29 · Config, UX