Page MenuHomePhorge

Show Deprecation Warnings as Setup Warnings
ClosedPublic

Authored by avivey on Sep 22 2023, 19:41.

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
Branch
no-deprect-death
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 950
Build 950: arc lint + arc unit

Event Timeline

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

1 comment...

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

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
40

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
40

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.

51

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