Skip to content

Conversation

@dehru
Copy link
Contributor

@dehru dehru commented Dec 23, 2020

What does this PR do?

This PR is a combination of JG's PR 103 and my PR 100. Those PRs have been closed and combined into this PR.

The effort to remove any GDPR protected data from telemetry, and then posting telemetry data about errors and unsupported syntax so we can better understand where we aren't meeting our customer's needs.

What issues does this PR fix or reference?

@W-8547957@, @W-8086238@

telemetry.errors = query.errors.map(
(err) => `${err.type}:${err.grammarRule}`
);
telemetry.unsupported = query.unsupported.map((unsup) => unsup.reason);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this uses jon's new reason attribute of unsupported array.

* This method collects all the unmodelled syntax it finds into a collection and returns it.
* @param model
* @param collector
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jgellin-sf - I used your self-referential function as a model for this. However, i'm keeping both since yours has a fast "return" while this one continues to gather all the nodes.

Copy link
Contributor

@jgellin-sf jgellin-sf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@jgellin-sf
Copy link
Contributor

QA complete.

@jgellin-sf jgellin-sf merged commit 046a76d into develop Jan 7, 2021
@jgellin-sf jgellin-sf deleted the dehru/jg/telemetry branch January 7, 2021 15:26
dehru added a commit that referenced this pull request Jan 15, 2021
* model WHERE clause (#68)
* Remote SOQL Errors - Language Server Part (#93)
* remove code builder (#92)
* Move from antlr4JS to antlr4TS (#96)
* SOQL code completion for SELECT fields (#99)
* publish language server 0.2.9 (#102)
* Fix LSP dependency (#104)
* Disabled 'Running...' button while query running (#106)
* Add basic code-completion for ORDER BY and other improvements (#107)
* Dehru and JG telemetry - Send GDPR clean data to telemetry when errors/unsupported syntax present (#110)
* Disable WHERE in model (#113)
* Bump versions for publishing (#114)
* Code-completion for WHERE clause expressions (#112)
Co-authored-by: Jonathan Gellin <jgellin@salesforce.com>
Co-authored-by: jgellin-sf <55159130+jgellin-sf@users.noreply.github.com>
Co-authored-by: Chase McCarthy <charles.mccarthy@heroku.com>
Co-authored-by: Jonny Hork <jhork@salesforce.com>
Co-authored-by: Fernando Dobladez <fernandodobladez@salesforce.com>
Co-authored-by: Jonathan Gellin <jgellin@salesforce.com>
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

Successfully merging this pull request may close these issues.

2 participants