-
-
Notifications
You must be signed in to change notification settings - Fork 197
fix(GDPR): Do not track local project paths #3592
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
Conversation
23136f1
to
f536725
Compare
Do not track paths to projects when local template is used. Instead track `localTemplate_<name from template's package.json or dirname>`. Also fix the prompter for emails as we need to show information how to unsubscribe from the newsletter. Add tests for the behavior.
f536725
to
af8a5d8
Compare
@@ -46,5 +46,21 @@ export class ProjectTemplatesService implements IProjectTemplatesService { | |||
this.$logger.trace(`Using NativeScript verified template: ${templateName} with version ${version}.`); | |||
return this.$npmInstallationManager.install(templateName, projectDir, { version: version, dependencyType: "save" }); | |||
} | |||
|
|||
private getTemplateNameToBeTracked(templateName: string, realTemplatePath: string): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, but maybe the whole code should be in try { } catch { }
. In case something fails here we don't want to stop the command execution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea, I've added the try-catch and test for this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After green build and handling my comment
Do not track paths to projects when local template is used. Instead track
localTemplate_<name from template's package.json or dirname>
.Also fix the prompter for emails as we need to show information how to unsubscribe from the newsletter.
Add tests for the behavior.
PR Checklist
Fixes #3595