Page MenuHomePhorge
Feed All Stories

Jul 22 2024

aklapper committed rPa039c4952f6b: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Remove call to undefined method DoorkeeperDAO::getObjectKey()
Jul 22 2024, 15:28
aklapper updated the test plan for D25738: Avoid RuntimeException on "Skip past this commit" when commit still importing.
Jul 22 2024, 15:26 · Diffusion
aklapper requested review of D25738: Avoid RuntimeException on "Skip past this commit" when commit still importing.
Jul 22 2024, 15:25 · Diffusion
aklapper added a revision to T15888: RuntimeException using "Skip past this commit" to access a commit still importing: "reset() expects parameter 1 to be array, null given": D25738: Avoid RuntimeException on "Skip past this commit" when commit still importing.
Jul 22 2024, 15:25
aklapper updated the task description for T15888: RuntimeException using "Skip past this commit" to access a commit still importing: "reset() expects parameter 1 to be array, null given".
Jul 22 2024, 15:24
aklapper created T15888: RuntimeException using "Skip past this commit" to access a commit still importing: "reset() expects parameter 1 to be array, null given".
Jul 22 2024, 15:16
aklapper added a comment to T15882: When archiving a project, reset its default menu item to Profile.

We might come from different user journeys.
Your users might be aware what the project means, and that the project (and its workboard) is archived, and they do have an initial reason to look at this archived workboard (e.g. default view is not "open tasks" but "all tasks")?
My users clicked an external link to some project tag in something called Phorge, and that project has been archived in the meantime, and that project is set to show the workboard by default, and that is now just empty columns (as the default view of workboards is "open tasks"), and that is confusing and unhelpful.

Jul 22 2024, 14:17 · Discussion Needed, Feature Requests, Projects
aklapper requested review of D25737: Log Herald rules with invalid actions via phlog().
Jul 22 2024, 11:39
aklapper added a revision to T15887: Herald rule referring to a non-existing action silently fails: D25737: Log Herald rules with invalid actions via phlog().
Jul 22 2024, 11:39 · Bug Reports, Herald
aklapper created T15887: Herald rule referring to a non-existing action silently fails.
Jul 22 2024, 11:36 · Bug Reports, Herald
aklapper updated the diff for D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().

Skip assigning variable; direct return

Jul 22 2024, 11:18

Jul 21 2024

valerio.bozzolan accepted D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().

Just that oneline

Jul 21 2024, 22:12
valerio.bozzolan accepted D25736: Log Herald rules having disabled Herald rules as condition via phlog().

sgtm

Jul 21 2024, 22:11
aklapper added a comment to D25694: Set "preconnect" HTTP header when "security.alternate-file-domain" is set.

Would anyone be willing to give this another review? :)

Jul 21 2024, 20:19
aklapper added inline comments to D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Jul 21 2024, 18:15
aklapper updated the diff for D25736: Log Herald rules having disabled Herald rules as condition via phlog().

Use $caught, not $ex.

Jul 21 2024, 18:11
aklapper updated the diff for D25735: Log Herald rules with invalid keys via phlog().
  • Use $caught, not $ex.
  • Include Herald rule monogram in log message for easier finding.
Jul 21 2024, 18:09
valerio.bozzolan added inline comments to D25735: Log Herald rules with invalid keys via phlog().
Jul 21 2024, 18:05
aklapper added a comment to D25736: Log Herald rules having disabled Herald rules as condition via phlog().

(Hmm should I replace $ex->getMessage() with $caught->getMessage() or not?)

Yep thanks

Jul 21 2024, 17:50
valerio.bozzolan added a comment to D25736: Log Herald rules having disabled Herald rules as condition via phlog().

(Hmm should I replace $ex->getMessage() with $caught->getMessage() or not?)

Jul 21 2024, 17:36
aklapper added a comment to D25736: Log Herald rules having disabled Herald rules as condition via phlog().

(Hmm should I replace $ex->getMessage() with $caught->getMessage() or not?)

Jul 21 2024, 17:29
aklapper updated the test plan for D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Jul 21 2024, 17:27
aklapper added a comment to T15866: Aphront400Response when editing a task.

Correct, the end user will not realize without opening the network tab of their web browser's developer tools.
However, as a downstream admin, I look at statistics/dashboards of HTTP 4xx and HTTP 5xx errors. When the numbers are not very low I'd usually assume something goes wrong and should be investigated. But that is not the case when Phorge throws a "silent" HTTP 400 for no obvious reasons.

Jul 21 2024, 17:26 · Maniphest
aklapper requested review of D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Jul 21 2024, 17:21
aklapper added a revision to T15869: Herald rule referring to a disabled rule silently fails: D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Jul 21 2024, 17:21 · Bug Reports, Herald
aklapper added a comment to T15869: Herald rule referring to a disabled rule silently fails.

Ahh but Transcripts do render an exception when it fails at least. I get a HeraldInvalidConditionException printing Invalid Condition: Condition references a rule which does not exist!, triggered in HeraldAdapter::doesConditionMatch() (only if you reach that condition in the evaluation of course, because https://we.phorge.it/source/phorge/browse/master/src/applications/herald/engine/HeraldEngine.php$437-445 ).
That's called in HeraldEngine in the line $is_match = $adapter->doesConditionMatch (note that class also has a method with the very same name).

Jul 21 2024, 17:17 · Bug Reports, Herald
valerio.bozzolan added a comment to T15866: Aphront400Response when editing a task.

So this is "just" something visible from server logs or browser console, right? It is not an error ever visible to user interface.

Jul 21 2024, 09:41 · Maniphest
aklapper closed D25721: Remove call to non-existing AphrontTypeaheadTemplateView::renderToken().
Jul 21 2024, 09:36
aklapper committed rP0873b36569bf: Remove call to non-existing AphrontTypeaheadTemplateView::renderToken().
Remove call to non-existing AphrontTypeaheadTemplateView::renderToken()
Jul 21 2024, 09:36
valerio.bozzolan renamed T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers from Diffusion repository commits: avoid to be a black hoile for webcrawlers to Diffusion repository commits: avoid to be a black hole for webcrawlers.
Jul 21 2024, 08:39 · Diffusion, Discussion Needed
valerio.bozzolan renamed T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers from Disallow webcrawlers to index Diffusion repository commits to Diffusion repository commits: avoid to be a black hoile for webcrawlers.
Jul 21 2024, 08:39 · Diffusion, Discussion Needed
valerio.bozzolan added a comment to T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers.

(Trying to make this task a bit more about the root problem, and less about the proposed solution)

Jul 21 2024, 08:39 · Diffusion, Discussion Needed
valerio.bozzolan added a subtask for T15886: Archived Projects: make them "more Archived" : T15882: When archiving a project, reset its default menu item to Profile.
Jul 21 2024, 08:33 · Projects
valerio.bozzolan added a parent task for T15882: When archiving a project, reset its default menu item to Profile: T15886: Archived Projects: make them "more Archived" .
Jul 21 2024, 08:33 · Discussion Needed, Feature Requests, Projects
valerio.bozzolan removed a subtask for T15882: When archiving a project, reset its default menu item to Profile: T15886: Archived Projects: make them "more Archived" .
Jul 21 2024, 08:33 · Discussion Needed, Feature Requests, Projects
valerio.bozzolan removed a parent task for T15886: Archived Projects: make them "more Archived" : T15882: When archiving a project, reset its default menu item to Profile.
Jul 21 2024, 08:33 · Projects
valerio.bozzolan added a parent task for T15886: Archived Projects: make them "more Archived" : T15882: When archiving a project, reset its default menu item to Profile.
Jul 21 2024, 08:33 · Projects
valerio.bozzolan added a subtask for T15882: When archiving a project, reset its default menu item to Profile: T15886: Archived Projects: make them "more Archived" .
Jul 21 2024, 08:33 · Discussion Needed, Feature Requests, Projects
valerio.bozzolan created T15886: Archived Projects: make them "more Archived" .
Jul 21 2024, 08:33 · Projects
valerio.bozzolan added a comment to T15882: When archiving a project, reset its default menu item to Profile.

I mean. See this archived Project (archived Milestone), that is linked from our changelogs:

Jul 21 2024, 08:24 · Discussion Needed, Feature Requests, Projects

Jul 20 2024

aklapper closed T15878: Update embedded phpqrcode from version 1.1.4 to 1.9.9 as Resolved by committing rP2aecae4ede9d: Update phpqrcode from version 1.1.4 to 1.9.9.
Jul 20 2024, 10:11
aklapper closed D25725: Update phpqrcode from version 1.1.4 to 1.9.9.
Jul 20 2024, 10:11
aklapper committed rP2aecae4ede9d: Update phpqrcode from version 1.1.4 to 1.9.9.
Update phpqrcode from version 1.1.4 to 1.9.9
Jul 20 2024, 10:11
aklapper added inline comments to D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Jul 20 2024, 09:59
aklapper closed D25717: Removed unused renderStatus() from PhabricatorProjectSubprojectsController.
Jul 20 2024, 09:55
aklapper committed rPc3aa581f8440: Removed unused renderStatus() from PhabricatorProjectSubprojectsController.
Removed unused renderStatus() from PhabricatorProjectSubprojectsController
Jul 20 2024, 09:55
aklapper added a comment to T15882: When archiving a project, reset its default menu item to Profile.

For example, some people then may ask "why my default view was changed?" and they will start manually "rollbacking" this to their desired view (e.g. showing closed tasks, from the Workboard, with a filter "Show all tasks").

Jul 20 2024, 09:27 · Discussion Needed, Feature Requests, Projects
valerio.bozzolan added a project to T15882: When archiving a project, reset its default menu item to Profile: Discussion Needed.

Premising that I like the implementation but I think it's not the desired solution.

Jul 20 2024, 08:50 · Discussion Needed, Feature Requests, Projects
valerio.bozzolan updated the summary of D25721: Remove call to non-existing AphrontTypeaheadTemplateView::renderToken().
Jul 20 2024, 08:40
valerio.bozzolan accepted D25721: Remove call to non-existing AphrontTypeaheadTemplateView::renderToken().

Additional consideration under control: an external class may have extended AphrontTypeaheadTemplateView and defining a renderToken() there, and making this snippet operative (I'm not saying that it's a good practice, I'm saying that it would work). But this extreme corner case is not the case.

Jul 20 2024, 08:40
valerio.bozzolan accepted D25717: Removed unused renderStatus() from PhabricatorProjectSubprojectsController.

lgtm

Jul 20 2024, 08:27
valerio.bozzolan accepted D25735: Log Herald rules with invalid keys via phlog().

sgtm

Jul 20 2024, 08:22

Jul 19 2024

aklapper added a comment to D25735: Log Herald rules with invalid keys via phlog().

I personally don't see value in sharing a stacktrace in this case. YMMV :)

Jul 19 2024, 16:36
valerio.bozzolan awarded D25735: Log Herald rules with invalid keys via phlog() a Yellow Medal token.
Jul 19 2024, 16:19
valerio.bozzolan added a comment to D25735: Log Herald rules with invalid keys via phlog().

Seems super nice. Minor comment. If we do this, the stack trace is NOT shared:

Jul 19 2024, 16:18
valerio.bozzolan resigned from D25735: Log Herald rules with invalid keys via phlog().

Strip block

Jul 19 2024, 16:15
aklapper added a comment to T15869: Herald rule referring to a disabled rule silently fails.

Uhmm, transcripts at http://phorge.localhost/herald/transcript/33065/ never ever render a Herald rule condition (disabled or not) within another rule, it seems

Jul 19 2024, 16:05 · Bug Reports, Herald
aklapper added a comment to T15110: File reference not removed when file is deleted.

I'd be worried about DB performance running such a query as our DB has dozens of millions of files... (This is basically SELECT COUNT(*) FROM file_attachment fa WHERE fa.filePHID NOT IN (SELECT f.phid FROM file); in my understanding?)

Jul 19 2024, 15:30 · Files, Bug Reports
aklapper added a comment to D25735: Log Herald rules with invalid keys via phlog().

Hmm I guess now my patch title is too narrow as it logs any Herald exceptions? :D

Jul 19 2024, 14:58
aklapper updated the diff for D25735: Log Herald rules with invalid keys via phlog().

Per Valerio's previous comments

Jul 19 2024, 14:54
valerio.bozzolan awarded T15866: Aphront400Response when editing a task a Yellow Medal token.
Jul 19 2024, 14:15 · Maniphest
valerio.bozzolan requested changes to D25735: Log Herald rules with invalid keys via phlog().

Marking as "probably something different should be done"

Jul 19 2024, 13:49
valerio.bozzolan added a comment to D25735: Log Herald rules with invalid keys via phlog().

In short, requireFieldImplementation seems correct in their legacy version, and something is not ideal in the consumer, that has a try catch. That try-catch should be edited.

Jul 19 2024, 13:32
valerio.bozzolan added a comment to D25735: Log Herald rules with invalid keys via phlog().

Note that every unmanaged exception is logged. So if you don't see a log, something is already managing this.

Jul 19 2024, 13:31
aklapper requested review of D25735: Log Herald rules with invalid keys via phlog().
Jul 19 2024, 13:29
aklapper added a revision to T15885: Herald rule referring to an invalid key silently fails: D25735: Log Herald rules with invalid keys via phlog().
Jul 19 2024, 13:29 · Bug Reports, Herald
aklapper created T15885: Herald rule referring to an invalid key silently fails.
Jul 19 2024, 13:23 · Bug Reports, Herald
valerio.bozzolan added a comment to T15110: File reference not removed when file is deleted.

Unrelated but @aklapper I'm curious about the situation in WMF. If you can maybe report something like this:

Jul 19 2024, 13:18 · Files, Bug Reports
valerio.bozzolan added inline comments to D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Jul 19 2024, 13:14
aklapper updated the summary of D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Jul 19 2024, 11:44
aklapper requested review of D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Jul 19 2024, 11:43

Jul 18 2024

pppery added a comment to D25618: Avoid search exception for calendar events when using localized time formats.

I think the behavior of not setting the timezone is probably correct, actually. GetFormattedDateFromParts below already constructs a date object again with the timezone set. So I think the timezone offset is being applied twice here.

Jul 18 2024, 18:28 · Calendar
valerio.bozzolan edited the content of Next Up.
Jul 18 2024, 07:35

Jul 17 2024

valerio.bozzolan edited the content of Next Up.
Jul 17 2024, 16:52
aklapper edited the content of Next Up.
Jul 17 2024, 13:48
aklapper edited the content of Next Up.
Jul 17 2024, 13:48
aklapper closed T15843: Allow collapse and expand of workboard columns in mobile view as Resolved by committing rPfec00256be1f: Allow collapsing/expanding workboard column content by clicking its header.
Jul 17 2024, 13:44 · Workboard
aklapper closed D25672: Allow collapsing/expanding workboard column content by clicking its header.
Jul 17 2024, 13:44
aklapper committed rPfec00256be1f: Allow collapsing/expanding workboard column content by clicking its header.
Allow collapsing/expanding workboard column content by clicking its header
Jul 17 2024, 13:44
aklapper added a comment to T15884: "Uncaught TypeError: spec is undefined" and no hovercard over task link in Aphlict notification.

Still happens after backing out rP2295bcda14e71948516752f8fbada6601b9f0bde thus not a recent regression.

Jul 17 2024, 07:58
aklapper updated the task description for T15884: "Uncaught TypeError: spec is undefined" and no hovercard over task link in Aphlict notification.
Jul 17 2024, 06:52

Jul 16 2024

aklapper created T15884: "Uncaught TypeError: spec is undefined" and no hovercard over task link in Aphlict notification.
Jul 16 2024, 19:10

Jul 15 2024

aklapper added a comment to D25733: Do not throw Aphront400Response when editing a task.

I guess I just do not enjoy a good number of HTTP 400 errors in our error logs when literally nothing went wrong at all.

Jul 15 2024, 16:17 · Maniphest
aklapper requested review of D25733: Do not throw Aphront400Response when editing a task.
Jul 15 2024, 16:13 · Maniphest
aklapper added a revision to T15866: Aphront400Response when editing a task: D25733: Do not throw Aphront400Response when editing a task.
Jul 15 2024, 16:13 · Maniphest
aklapper added a comment to T15866: Aphront400Response when editing a task.

The other option would be including "__form__":"1" in that call to avoid the 400.

Jul 15 2024, 16:12 · Maniphest
aklapper updated the summary of D25672: Allow collapsing/expanding workboard column content by clicking its header.
Jul 15 2024, 15:41
avivey accepted D25672: Allow collapsing/expanding workboard column content by clicking its header.

👍👍

Jul 15 2024, 09:06
aklapper closed D25718: Removed unused loadGitLocalRefs() from PhabricatorRepositoryPullEngine.
Jul 15 2024, 06:28
aklapper committed rP03092ca42202: Removed unused loadGitLocalRefs() from PhabricatorRepositoryPullEngine.
Removed unused loadGitLocalRefs() from PhabricatorRepositoryPullEngine
Jul 15 2024, 06:28
valerio.bozzolan added inline comments to D25569: Avoid separate per-line URIs in line number column.
Jul 15 2024, 06:10
valerio.bozzolan requested changes to D25569: Avoid separate per-line URIs in line number column.
Jul 15 2024, 06:00
valerio.bozzolan accepted D25718: Removed unused loadGitLocalRefs() from PhabricatorRepositoryPullEngine.

sgtm

Jul 15 2024, 05:05

Jul 14 2024

aklapper closed T15865: [Regression] Incorrect mail subject header [Updated] instead of [Created] as Resolved by committing rP5a454cef8a98: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Jul 14 2024, 22:45
aklapper closed D25732: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Jul 14 2024, 22:45
aklapper committed rP5a454cef8a98: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE
Jul 14 2024, 22:45
aklapper added a comment to D25732: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Jul 14 2024, 22:44
valerio.bozzolan accepted D25732: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
  • was this improving the situation? rPf4d9d6920bcd: The feed "created this task" should be the first one seems yes, accordingly to your comments
  • was PhabricatorTransactions::TYPE_CREATE needing a nice action name? yes
  • Am I confused about newActionStrengthSortVector? Yes. I don't know why it works, but it works. But this deserves further discussion.
Jul 14 2024, 21:33
TylerMS887 updated TylerMS887.
Jul 14 2024, 17:44

Jul 13 2024

aklapper requested review of D25732: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Jul 13 2024, 15:47