Page MenuHomePhorge

Show Deprecation Warnings as Setup Warnings
ClosedPublic

Authored by avivey on Sep 22 2023, 19:41.
Tags
None
Referenced Files
F2174869: D25440.id1580.diff
Thu, May 2, 12:51
F2173473: D25440.id1580.diff
Wed, May 1, 19:15
F2173472: D25440.id1579.diff
Wed, May 1, 19:15
F2173471: D25440.id1544.diff
Wed, May 1, 19:15
F2173470: D25440.id1537.diff
Wed, May 1, 19:15
F2173469: D25440.id1394.diff
Wed, May 1, 19:15
F2173468: D25440.id.diff
Wed, May 1, 19:15
Unknown Object (File)
Wed, May 1, 08:53
Tokens
"Party Time" token, awarded by revi.

Details

Summary

Capture Deprecation Warnings, collect them into cache, and show them as a Setup Issue for admins to see and report back to us.

This only captures a sample of the traces, so not to overwhelm users (and RAM. and us) with reports.

Requires D25388. Refs T15554.

Test Plan

Run some flows that are known to bring up Deprecation Warnings. See them as a Setup Issue! Click little triangles to see details.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avivey requested review of this revision.Sep 22 2023, 19:41

1 comment...

src/applications/system/events/PhorgeSystemDeprecationWarningListener.php
52

Rather than commenting code, we should probably remove it...

This revision is now accepted and ready to land.Nov 26 2023, 06:53
src/applications/system/events/PhorgeSystemDeprecationWarningListener.php
41

Note: I think we are sometime doing null++, that is elevated to 0++. It works but probably better to manually assign zero when undefined before accessing it.

  • rm commented out code
src/applications/system/events/PhorgeSystemDeprecationWarningListener.php
41

In theory, if $trace_entry isn't null, it should have a counter value, because the only way to add values intro $cache_entry is in line 42, where we do initialize counter.

52

oops, yeah, shouldn't be here.

avivey planned changes to this revision.Dec 3 2023, 07:31

add PHP version information to the view.

  • add PHP version
  • rebase
This revision is now accepted and ready to land.Dec 8 2023, 15:40