In T15583#13304, @avivey wrote:go for it.
There may already be a feature somewhere to automatically trigger a re-index because the code changed - I'll try to look for one this week.
edit: looks like it's just "add an autopatch" like resources/sql/autopatches/20191028.uriindex.01.rebuild.php. No worries.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed All Stories
All Stories
All Stories
Aug 22 2023
Aug 22 2023
aklapper updated the task description for T15623: RuntimeException: min(): Array must contain at least one element at DiffusionBlameController.php:201.
This might be a Good Starter Task, I think - you'll need to add a class for the config, and pull the config value in diffusion.
go for it.
valerio.bozzolan added a comment to D25414: Fix PHP 8.1 "strlen(null)" exception rendering PHUISegmentBar without a label.
I don't love this, but this is a general fix:
Aug 21 2023
Aug 21 2023
Okay, my proposal:
a hack that might work: add a field in the document that's called "typeahead-text" or something, and put both title and callsign into it (and maybe number and short-name as well). Then use that field in the Datasource.
Since this is a full-text field, whatever the user types will fit this field...
Okay, I have tried to wrap my head around the ferret engine. Problem is: the repo callsign is not part of the indexed material. So I would have to construct some query like (just a schema): WHERE ferret-query like '%term%' OR callsign like 'term%' - but that is not possible with the phabricator query engine. The ferret query parts are separatly created and every other where clause is merged with AND. I don't think, there is a clean way out of this. You could make TWO queries: The old one and one with the ferret engine. And then merge the results and remove doubles. But I don't know... just doesn't feel right.
In T15583#13296, @avivey wrote:I suspect that the code in People is the oldest one - this stuff blames to 2011! and does explicit sql stuff!
rP99c9df96b4ffbf7 (2015) is the big "convert to Full Text Search" commit, but looks like it's not about Ferret (2017?).
I suspect that the code in People is the oldest one - this stuff blames to 2011! and does explicit sql stuff!
I have searched through the code a little bit and there is another system for typeahaed results. It is token based. So, how does it work?
roberto.urbani retitled D25416: Replacing the deprecated -moz-outline-style with outline-style from Task ref: T15585
roberto.urbani requested review of D25416: Replacing the deprecated -moz-outline-style with outline-style.
Yeah, that's probably good - that's the query for typeaheads and probably global search, but not for other cases.
There is no ferret involved in my fix. I have already implemented it in our company instance and the devs are loving it. The change is in this line: https://we.phorge.it/source/phorge/browse/master/src/applications/repository/query/PhabricatorRepositoryQuery.php$650
valerio.bozzolan added a comment to T15583: Typeahead datasource query for repos should match substrings.
I also don't fully understand the "Phabricator way" to create full text queries still using indexes. That is my main concern.
avivey added a project to T15583: Typeahead datasource query for repos should match substrings: Feature Requests.
Yeah, totally reasonable feature request.
Do you think you can implement?
This might involve the Ferret engine (like this thing, or maybe there's a simpler approach for the query (title LIKE %text% in the Query class?).
No interest in this? I can send a diff to differential and be mauled there 🦁
avivey updated Q72: Add support for Cloudflare Turnstile (A Captcha alternative)? from Add support for Cloudflare Turnstile? to Add support for Cloudflare Turnstile (A Captcha alternative)?.
Lectrician1 updated the question details for Q72: Add support for Cloudflare Turnstile (A Captcha alternative)?.
Aug 20 2023
Aug 20 2023
aklapper updated the diff for D25374: Fix PHP 8.1 "urlencode(null)" exception blocking account registration redirect for custom OAuth provider.
Ran arc unit first
aklapper updated the diff for D25374: Fix PHP 8.1 "urlencode(null)" exception blocking account registration redirect for custom OAuth provider.
Make code more readable
aklapper updated the diff for D25414: Fix PHP 8.1 "strlen(null)" exception rendering PHUISegmentBar without a label.
Accept whatever stuff is passed as $label as long as it's not null, per last comment
IDK - this was code was never explicitly about git am - I think it was about patch, which started in the stone age and predates things like "formal specification".
valerio.bozzolan requested changes to D25414: Fix PHP 8.1 "strlen(null)" exception rendering PHUISegmentBar without a label.
I will kindly mark this as request changes since unfortunately we have a crash if the $label is an object like PhutilSafeHTML.
In D25359#10790, @valerio.bozzolan wrote:I noticed that Phorge exports the date in this format:
Date: 2023-08-02 23:23:38 (UTC+2)While git exports the date in this format:
Thu Jun 29 23:23:28 2023 +0200Is this known? Should we uniform these?
Thanks again \o/
OK so if I understand correctly:
Aug 19 2023
Aug 19 2023
Restored the previous selectors, added some code comments to try to explain better why I wrote them this way. I hope this clarifies things. Thanks!
aklapper updated the test plan for D25415: Make InterpreterBlockRule regex only match on valid interpreter names.
aklapper added a comment to T15372: "RuntimeException: Undefined array key" when pasting "a {{{a}}} a" comment (due to regex in PhutilRemarkupInterpreterBlockRule.php).
FYI I proposed a partial patch in D25415 which makes the issue more contained at least.
aklapper requested review of D25415: Make InterpreterBlockRule regex only match on valid interpreter names.
valerio.bozzolan added a comment to T15619: Calendar: Impossible to import .ics file (Phorge checks for a non-existing remote URI).
I've invested 8 minutes in this and I'm somehow confused about the possible cause and solution :)
aklapper closed T15620: PHP 8.1 "strlen(null)" exceptions importing ICS file into calendar, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3, as Resolved.
aklapper committed rP9b105c8e9e54: Fix PHP 8.1 "strlen(null)" exceptions importing ICS file into calendar.
Fix PHP 8.1 "strlen(null)" exceptions importing ICS file into calendar
add noreferrer for privacy reasons
taavi renamed Wikimania Hackathon 2023 Singapore from Wikimania Hackaton 2023 Singapore to Wikimania Hackathon 2023 Singapore.
avivey closed T15621: PHP 8.2: Diviner's Phorge Technical Documentation not accessible, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3, as Resolved.
avivey closed T15621: PHP 8.2: Diviner's Phorge Technical Documentation not accessible as Resolved by committing rPba4b8cb1ae7d: PHP 8 and Diviner Technical Documentation.
PHP 8 and Diviner Technical Documentation
valerio.bozzolan attached a referenced file: F312321: Screenshot 2023-06-20 at 07-27-41 Editing-team (Kanban Board) · Workboard.png.
valerio.bozzolan attached a referenced file: F312323: Screenshot 2023-06-20 at 07-32-20 Editing-team (Kanban Board) · Workboard.png.
valerio.bozzolan added a comment to D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.
Thanks my friend
You are a good minion, thanks bob
I will kindly resign since I'm terrible at frontend :) Others: please help here
For faster review I would like to try to explain better to others why it was necessary to change so many selectors to change the Workboards scrollbar, but I'm not 100% sure about .phui-flank-view-body and the shadow thing.
valerio.bozzolan added a comment to D25400: Fix a PHP 8.1 deprecated use of strlen with a NULL argument.
Can somebody else test this? I need more time, since I have issues with hosted repositories at the moment :(
valerio.bozzolan retitled D25400: Fix a PHP 8.1 deprecated use of strlen with a NULL argument from Fix a PHP 8.1/8.2 deprecated use of strlen with a NULL argument
valerio.bozzolan accepted D25411: Fix PHP 8.1 "strlen(null)" exceptions importing ICS file into calendar.
Thanks! Tested locally. This seems separated from the mentioned regression. Indeed the recurrence ID and the instance ISO seems that must be strings, or NULL, and any other value will cause a violent nuclear implosion as usual, and Phorge somehow likes it.
valerio.bozzolan triaged T15619: Calendar: Impossible to import .ics file (Phorge checks for a non-existing remote URI) as Normal priority.
Interesting. ICS URI import was fixed in 02a4f8b0c8f1279fc but at the cost of breaking ICS file import.
valerio.bozzolan retitled D25413: Show a link to the Phorge homepage from Show a link to the Phorge homepage
It seems we were missing a link to the project homepage.
Also we set the language of the HTML document.
Tested both cases, thanks
Aug 18 2023
Aug 18 2023
mturdus triaged T15621: PHP 8.2: Diviner's Phorge Technical Documentation not accessible as High priority.
aklapper requested review of D25411: Fix PHP 8.1 "strlen(null)" exceptions importing ICS file into calendar.
aklapper added a reverting change for D25061: Fix editing a Calendar import ICS URI: D25411: Fix PHP 8.1 "strlen(null)" exceptions importing ICS file into calendar.
aklapper added a comment to T15619: Calendar: Impossible to import .ics file (Phorge checks for a non-existing remote URI).
I confirm that there is no problem after running git revert 02a4f8b0c8f1279fc0040ad8077942fd8b0d948b.
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. · CC BY-SA 4.0 · Apache 2.0