This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Allow tracking puppeted users for MAU #11561
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9e90cc1
Allow tracking puppeted users for MAU
jaywink 6f1a4e3
Apply suggestions from code review
jaywink fd5eedd
Merge branch 'develop' into jaywink/allow-tracking-puppets-mau
jaywink 9e6a74b
Use `track_puppeted_user_ips` instead
jaywink c8c3236
Remove whitespace causing linting issue
jaywink 0950d56
Add note about MAU tracking for puppeted users
jaywink File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add config flag `mau_track_puppeted_users` to allow tracking puppeted users in terms of monthly active users. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -439,6 +439,11 @@ manhole_settings: | |
| # - medium: 'email' | ||
| # address: '[email protected]' | ||
|
|
||
| # If enabled, puppeted users can also be tracked. By default when | ||
| # puppeting another user, the user who has created the access token | ||
| # for puppeting is tracked. If this is enabled, both requests are tracked. | ||
| #mau_track_puppeted_users: false | ||
jaywink marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Used by phonehome stats to group together related servers. | ||
| #server_context: context | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -418,6 +418,7 @@ def read_config(self, config, **kwargs): | |
|
|
||
| self.mau_trial_days = config.get("mau_trial_days", 0) | ||
| self.mau_limit_alerting = config.get("mau_limit_alerting", True) | ||
| self.mau_track_puppeted_users = config.get("mau_track_puppeted_users", False) | ||
|
|
||
| # How long to keep redacted events in the database in unredacted form | ||
| # before redacting them. | ||
|
|
@@ -1128,6 +1129,11 @@ def generate_config_section( | |
| # - medium: 'email' | ||
| # address: '[email protected]' | ||
|
|
||
| # If enabled, puppeted users can also be tracked. By default when | ||
| # puppeting another user, the user who has created the access token | ||
| # for puppeting is tracked. If this is enabled, both requests are tracked. | ||
| #mau_track_puppeted_users: false | ||
|
|
||
| # Used by phonehome stats to group together related servers. | ||
| #server_context: context | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.