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

[popup] Add "Enable debug logs" button on user tab #245

Closed
tprouvot opened this issue Dec 13, 2023 · 3 comments
Closed

[popup] Add "Enable debug logs" button on user tab #245

tprouvot opened this issue Dec 13, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@tprouvot
Copy link
Owner

Is your feature request related to a problem? Please describe.
It would be great if we could enable debug logs for a particular user directly from the User tab

Describe the solution you'd like
image

This would create a TraceFlag record with FINEST logs for all and for 30 min by default.
We would add localStorage options to customize duration and log levels

@tprouvot tprouvot added the enhancement New feature or request label Dec 13, 2023
@tprouvot tprouvot self-assigned this Dec 13, 2023
@tprouvot
Copy link
Owner Author

@AntoineLeleu-Salesforce The floor is yours 🚀

@KamilGadawski
Copy link
Contributor

@tprouvot would it be a good solution if, when the user clicks the Debug button, it takes them to the configured Delug Logs as in the screenshot below?

image

@tprouvot
Copy link
Owner Author

@KamilGadawski we could have dont this, but we choose to create a trace flag straight away.
@AntoineLeleu-Salesforce is currently implementing this 🚀

This was referenced Jan 4, 2024
tprouvot added a commit that referenced this issue Jan 10, 2024
## Describe your changes

**Add new "Enable Logs" button in the User tab :**
- Allow to enable a trace flag for the selected user.
- By default, trace flag time is 15 minutes and debug level is
_SFDC_DevConsole_.
- If an old trace flag is found (in the past, same user, same debug
level), this one is updated extending the expiration date of 15 minutes.
- Once the trace flag is enabled, the button is disabled and pass to
_Logs Enabled_. A page loading is required to enable the button again.

## Issue ticket number and link

[245](#245)

## Checklist before requesting a review
- [x] I have read and understand the [Contributions
section](https://github.com/tprouvot/Salesforce-Inspector-reloaded#contributions)
- [x] Target branch is releaseCandidate and not master
- [x] I have performed a self-review of my code
- [x] I ran the [unit
tests](https://github.com/tprouvot/Salesforce-Inspector-reloaded#unit-tests)
and my PR does not break any tests
- [x] I documented the changes I've made on the
[CHANGES.md](https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/master/CHANGES.md)
and followed actual conventions
- [ ] I added a new section on
[how-to.md](https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/master/docs/how-to.md)
(optional)

---------

Co-authored-by: Thomas Prouvot <prouvot.t@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants