Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed logEntryMetadataViewer 'View Full Source' button not showing for non-admins #671

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

jongpie
Copy link
Owner

@jongpie jongpie commented Apr 17, 2024

Worked with @jamessimone to troubleshoot & fix some additional issues in the logEntryMetadataViewer LWC that prevented the 'View Full Source' button from showing up for non-admins. This involved 3 related changes

  1. Added explicit access in perm sets for the Apex class LogEntryMetdataViewerController to fix some perm issues,
  2. Fixed some whitespace in the LWC caused by a present-but-not-visible spinner,
  3. Updated the LWC to imperatively call controller methods - using the @wire annotation caused weird, silent failures when calling the Apex methods

…revented the 'view full source' btn from showing up for non-admins

3 parts: Added explicted Apex class access in perm sets to fix some perm issues, fixed some whitespace in the LWC caused by a present-but-not-visible spinner, and updated LWC to imperatively call controller methods (using @wire annotation caused weird, silent failures when calling the Apex methods)
@jongpie jongpie added bug Something isn't working apex Items related to using Logger within Apex log management Items related to the custom objects & Logger Console app labels Apr 17, 2024
@jongpie jongpie temporarily deployed to Experience Cloud Scratch Org April 17, 2024 01:03 — with GitHub Actions Inactive
Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.31%. Comparing base (f4addfd) to head (f521def).

❗ Current head f521def differs from pull request most recent head f668605. Consider uploading reports for the commit f668605 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #671   +/-   ##
=======================================
  Coverage   95.31%   95.31%           
=======================================
  Files          50       50           
  Lines        5593     5593           
=======================================
  Hits         5331     5331           
  Misses        262      262           
Flag Coverage Δ
Apex 95.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jongpie jongpie removed the apex Items related to using Logger within Apex label Apr 17, 2024
@jongpie jongpie merged commit de8088d into main Apr 18, 2024
1 check passed
@jongpie jongpie deleted the bugfix/fixed-log-entry-metadata-viewer-permissions branch April 18, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working log management Items related to the custom objects & Logger Console app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants