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

Add updated metrics consent prompt #632

Merged
merged 18 commits into from
Jan 17, 2025
Merged

Add updated metrics consent prompt #632

merged 18 commits into from
Jan 17, 2025

Conversation

christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Jan 16, 2025

This PR adds a function which checks the status of the user's allowMetrics/SendStatistics setting. If the user previously opted-in, they will be prompted to confirm their choice given the new metrics policy, with the option to disable.

Any new user installing will have the flag updatedMetricsConsent set during install, bypassing this process.

The UI component is in this frontend PR: Comfy-Org/ComfyUI_frontend#2268

┆Issue is synchronized with this Notion page by Unito

@christian-byrne christian-byrne marked this pull request as ready for review January 16, 2025 22:32
@christian-byrne christian-byrne requested review from a team as code owners January 16, 2025 22:32
@@ -27,4 +27,6 @@ export type DesktopSettings = {
* - `default`: Impersonal, static, plain - default window title bar
*/
windowStyle?: 'custom' | 'default';
/** Whether the user has consented to updated metrics collection policy (1/16/24) */
updatedMetricsConsent?: boolean;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we just leave this as a version counter, so next time if we update our policy, we just needs to increment the counter. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's a good idea. However, there may be situations in which a user is behind multiple versions from previous policy update, which would require effort to handle.

Copy link
Member

Choose a reason for hiding this comment

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

I see. The frontend is now explaining the change in policy right now. Maybe we can design such a system to compare the diff of policy later when we actuall have more than 2 versions?

FYI: I think date might be more suitable here? Reduces some mental effort to map from integer to date & change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changing to Date

@@ -98,6 +98,7 @@ export class InstallationManager {

const installWizard = new InstallWizard(installOptions, this.telemetry);
useDesktopConfig().set('basePath', installWizard.basePath);
useDesktopConfig().set('metricsConsentDate', new Date());
Copy link
Member

@huchenlei huchenlei Jan 17, 2025

Choose a reason for hiding this comment

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

Sorry I didn't make the date argument clear enough. The date when the consent is made does no necessary indicate what they consent. A user can download an old version of the desktop app and get a current date consent date stored in the current setup.

If we want to track which version of the consent they signed, maybe desktop's version number is more nature to track than date?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I understand now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems I will need to add a new build variable

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 for desktop version number! Will make any troubleshooting much clearer.

@huchenlei huchenlei merged commit baf9071 into main Jan 17, 2025
6 checks passed
@huchenlei huchenlei deleted the metrics-consent branch January 17, 2025 16:57
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.

3 participants