-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
LoggerSettings creation fails as part of a wire function call #205
Comments
Thanks for reporting this! I'll plan to fix this in my open PR #191 (which will be release v4.6.8). Let me know if you run into any other issues! |
@arbokrad I was able to fix this as part of PR #191 by making 2 (fairly small) changes
With these 2 changes, if an org does not have |
* Created new lwc logEntryEventStream for streaming LogEntryEvent__e * Added new tab to perm sets * Added stream section to README * Created new package version 4.6.8 * Fixed #204 - Improved approach for querying for an Apex class in `LogEntryHandler_Tests` to handle orgs that have 2 `Logger` classes (one with namespace and another without namespace) * Fixed #205 - Eliminated DML on LoggerSettings__c, improved in-memory creation of defaults * Fixed some issues reported by lint * Add husky pre-commit setup, fixed some tests * Added package-lock.json to repo * Added npm caching in deploy.yml * Added step to auto-delete unvalidated package version ID * Added husky pre-commit hook, using lint-staged * Removed install step for sfdx-scanner and using npm version instead * Cleaned up ordering of sections in package.json * Added GitHub issue templates to the repo * Updated npm scripts "lint" and "prettier" to "lint:fix" and "prettier:fix" for clarity * Changed a few lint rules to 'warn' instead of 'off'
When we installed the unlocked version of Nebula, we ran into an error with the following logs:
This trace of this error is happening as part of a
@wire
function call:It appears that this is related to certain contexts not being able to do DML (e.g. create the initial LoggerSettings, if none exists)
https://www.levelupsalesforce.com/lwc-too-many-dml-statements-1
Creating the LoggerSettings__c entry (org defaults in our case) immediately stops this failure.
The text was updated successfully, but these errors were encountered: