Use consistent class scope; fix a typo
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
All Stories
Jun 5 2024
IMHO this is ready to review.
Avoid non-ASCII bytes in CSS by using FontAwesome
Display custom collapse/expand arrows only on mobile screens; display them after the column header name instead of before
Add PHPDoc for setCollapsible
Fix syntax
Not sure if we prefer to make isCollabsable a property of the base classes, instead of making them non-final
Yeah right, NuanceFormItemType returns an array so NuanceGitHubEventItemType should also return an empty array. Good point, thanks!
kill it
Also fix the typo in the function name
$ grep -FR 'extends PhabricatorIconSet' . ./src/applications/people/icon/PhabricatorPeopleIconSet.php: extends PhabricatorIconSet { ./src/applications/calendar/icon/PhabricatorCalendarIconSet.php: extends PhabricatorIconSet { ./src/applications/project/icon/PhabricatorProjectIconSet.php: extends PhabricatorIconSet { ./src/applications/badges/icon/PhabricatorBadgesIconSet.php: extends PhabricatorIconSet { ./src/applications/search/menuitem/PhabricatorProfileMenuItemIconSet.php: extends PhabricatorIconSet { ./src/applications/dashboard/icon/PhabricatorDashboardIconSet.php: extends PhabricatorIconSet {
Thanks. Your edit effectively reflects what already happens, but interestingly, it still may crash 🤔
@valerio.bozzolan: Y U so sirious??? :D
A bit more than Normal, since it reflects on a database with orphan elements that creates "ghosts in the UI".
Wow. With my proposal is not funny anymore. OK I will refrain myself from contributing here. But I personally like the new proposal from Andrè and @pppery. Personally approving.
I understand the points. Third proposal, starting with useful tips (good idea), and shorter:
Jun 4 2024
I like the change in language here, but maybe a total rewrite of the text is better. My take:
When setting a new password. please keep it safe, using a trustworthy password manager and a randomly generated password.
We thank you, your administrator thanks you, and you'll thank yourself in the future.In the unlikely event you that absolutely don't intend to keep it safe at all, you might choose instead, to:
- Write it down on a sticky note, put it on your monitor, and hope nobody else uses it on %s.
- Use the same password you've already used, especially for your e-mail and bank account.
- Use easy-to-remember, easy-to-guess passwords, like "12345abcde".
Modern security advice considers these practices "a bad idea".
If you're already doing any of these, here or elsewhere, you might want to consider the account compromised.
Thanks! Confirming that the link on https://we.phorge.it/book/dev/class/PhutilDaemon/ is a 404, and that the file was deleted in https://secure.phabricator.com/rPHU720c8116845bb9dc19334170e6c0702aa0210c78
Fix a double space after testing
Actually do that, since I screwed up before
Update to Andre's suggestion
Tested this with nearly all DataSources mentioned above before and after applying the patch in both a logged-in and a private browser window. Behaves as expected and no errors in the logs.
No results.
Is anything extending HeraldEngine trying direct access to that?
Please add some negative tests - things that could trigger this thing, but shouldn't.
The linter now screams nonsense things because of my little new unit test, taken from the proposed tar.gz file. Probably better than nothing. Tested A/B and it makes sense. Also the addition makes sense to me, compared to the other ones.
add unit test
Jun 3 2024
- AlmanacDeviceSearchEngine: add comma, but maybe keeping 'networks' in plural since the button is See Networks
- AlmanacServiceSearchEngine: -of your devices +provided by your devices
Note that the responsible users' projects and packages should absolutely still be included in the reviewers query join (line 487 right-side). This is why $this->responsibles remains unmodified.
In D25676#18547, @aklapper wrote:@jmeador Hi, what would be the Test Plan to get a "resulting query"? Going to /differential/query/advanced/, selecting the magnifier button for the Responsible Users field, and checking that after applying the patch only user accounts are listed, and no more projects or packages, I assume?
@jmeador Hi, what would be the Test Plan to get a "resulting query"? Going to /differential/query/advanced/, selecting the magnifier button for the Responsible Users field, and checking that after applying the patch only user accounts are listed, and no more projects or packages, I assume?
All in all, this looks ready to merge after removing two commas and fixing one BE spelling. I tested this locally and everything worked as expected.
I'd also prefer American English spelling for the sake of consistency, means: using catalog instead of catalogue.
cf https://we.phorge.it/source/arcanist/browse/master/src/workflow/ArcanistWorkflow.php$840 :P
I confirm that all other 21 definitions of function getNewUserBody() are in *Engine.php files/classes, except the one fixed/moved by this very patch.
Abiding by the law of triviality, after nine meetings the Working Group that I set up for this task came up with this proposal:
Jun 2 2024
I think the EditEngine is what's used to create the actions form, and it has some sense of the object's status (see for example the available actions on Revisions - these change based on the revision's state).
Maybe it can get an additional "field" for this warning, and display it based on task status.
Jun 1 2024
May 31 2024
I remain unhappy with my code in D25546:
- Phorge lacks a method "give me all engines for this application".
- PhabricatorApplication offers nothing related to engines.
- PhabricatorEditEngine::getApplication() does what I want exactly the other way round: it returns the application for a given engine.
- PhabricatorEditEngine::getAllEditEngines() is confusingly named. It only returns EditEngine keys like calendar.export or maniphest.task but not actual engines or engine classes. ($engines = id(new PhabricatorEditEngineQuery())->setViewer($this->getViewer())->execute(); returns the actual engines, as already used by this code.)
- I cannot find some mapping between EditEngine keys (like maniphest.task) and either PhabricatorPHIDTypes (like ManiphestTaskPHIDType) or their TypeConstants (like TASK) either.
- getEngineClassName() exists but only in a SearchEngine/SearchQuery context, not in a EditEngine content (and I cannot find its constructor)
I remain unhappy with this code.
- Phorge lacks a method "give me all engines for this application".
- PhabricatorApplication offers nothing related to engines.
- PhabricatorEditEngine::getApplication() does what I want exactly the other way round: it returns the application for a given engine.
- PhabricatorEditEngine::getAllEditEngines() is confusingly named. It only returns EditEngine keys like calendar.export or maniphest.task but not actual engines or engine classes. ($engines = id(new PhabricatorEditEngineQuery())->setViewer($this->getViewer())->execute(); returns the actual engines, as already used by this code.)
- I cannot find some mapping between EditEngine keys (like maniphest.task) and either PhabricatorPHIDTypes (like ManiphestTaskPHIDType) or their TypeConstants (like TASK) either.
- getEngineClassName() exists but only in a SearchEngine/SearchQuery context, not in a EditEngine content (and I cannot find its constructor)