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

User filter when searching for logs prevents Automated Process logs from showing up #10

Open
robertoandrade opened this issue Mar 2, 2020 · 14 comments

Comments

@robertoandrade
Copy link

Even though I have Automated Process on the list of traced entities, since it doesn't have a hyperlink to the user it doesn't include it on the filtered logs.

I wonder if the user filter is really necessary since the default implementation from SF doesn't filter the listing of logs other than by the search criteria.

@motiko
Copy link
Owner

motiko commented Mar 2, 2020

As a developer or administrator on big orgs i would rather see my own logs by default.
Would be happy to approve a PR that makes this filter optional but would love to keep at as default.
Let me know if you need any help with building from source.

@robertoandrade
Copy link
Author

Makes sense, happy to submit a PR, any instructions on how to go about building the extension?

@motiko
Copy link
Owner

motiko commented Mar 2, 2020

from react folder

npm i
npm run build

then load chrome/app as an extension in chrome
not sure where you need to change to not filter by user, have to dig into SF API docs,
but my guess would be some where around
https://github.com/motiko/sfdc-debug-logs/blob/master/react/src/api/tooling.js

@robertoandrade
Copy link
Author

Ok, thanks. I noticed this also affects the improved Debug Logs view (not only the separate UI you provide). I assume the code that extends the SF classic UI with the extra buttons, rows, limit, etc. is somewhere else?

@robertoandrade
Copy link
Author

ie:
image

@robertoandrade
Copy link
Author

robertoandrade commented Mar 2, 2020

guessing here. But how does the code in /react/src relate to the ones in /chrome/app and /firefox/app? I thought all the code in there (or most of it) was generated from the /react/src but it looks like it's actually only the app.js that gets added in there. The code for the SF classic UI enhancements is duplicated between the two browser extension directories?

@robertoandrade robertoandrade changed the title User filter when searching or logs prevents Automated Process logs to show up User filter when searching or logs prevents Automated Process logs to show up Mar 2, 2020
@robertoandrade robertoandrade changed the title User filter when searching or logs prevents Automated Process logs to show up User filter when searching for logs prevents Automated Process logs from showing up Mar 2, 2020
@motiko
Copy link
Owner

motiko commented Mar 2, 2020

for the old view just this file need changing and no need for build step. so you can load chrome/app directly

@motiko
Copy link
Owner

motiko commented Mar 2, 2020

guessing here. But how does the code in /react/src relate to the ones in /chrome/app and /firefox/app? I thought all the code in there (or most of it) was generated from the /react/src but it looks like it's actually only the app.js that gets added in there. The code for the SF classic UI enhancements is duplicated between the two browser extension directories?

Yes it is mostly duplicated..

@motiko
Copy link
Owner

motiko commented Mar 2, 2020

ie:
image

thats the place you need imo

@robertoandrade
Copy link
Author

That's exactly where I was pointing earlier. My point is, it seems like that code is duplicated between the /chrome/app and /firefox/app directories, so I was wondering if the place you were pointing at earlier (/react/src) had anything to do with those copies, ie: the source resided there and after compiling it'd be placed in each browser's app folder, but couldn't find anything that ressembled that in the /react/src folder.

@motiko
Copy link
Owner

motiko commented Mar 3, 2020

The code for the SF classic UI view is duplicated.
Additional code for the tab is populated from react folder with npm build .
If your change is SF classic UI you only need to change code in chrome/app

@robertoandrade
Copy link
Author

robertoandrade commented Mar 5, 2020 via email

@motiko
Copy link
Owner

motiko commented Mar 6, 2020

It is not a must, but if you can do same changes for firefox too would be nice.
In that case make sure to test it works on FF as well. 🙏

@motiko
Copy link
Owner

motiko commented Jul 9, 2020

@robertoandrade you need any help with that?
you can actually leave firefox part out. just submit the code in the PR and i will take care of the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants