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

feat(telemetry): replace unique ids for resources with a slug #21158

Merged
merged 3 commits into from
Apr 8, 2021

Conversation

williamhbaker
Copy link
Contributor

@williamhbaker williamhbaker commented Apr 7, 2021

Closes #20920

#20920 mentions paths in the form of /api/v2/backup/99/file/000000000007376-000000001.tsm. The current backup and restore process does not generate calls to this kind of path, so no change was needed for those.

UI asset files names are replaced with a slug in the form of :file_name.ext, where ext is the file extension (.js, .svg, etc.).

Shard IDs used in requests related to backups & restores are replaced with :shard_id, rather than a unique numerical ID.

@williamhbaker williamhbaker force-pushed the wb-telemetry-improvements-20920 branch from 53b4e52 to a2237db Compare April 7, 2021 17:59
@williamhbaker williamhbaker marked this pull request as ready for review April 7, 2021 20:18
@danxmoran danxmoran self-requested a review April 7, 2021 20:20
Copy link
Contributor

@danxmoran danxmoran left a comment

Choose a reason for hiding this comment

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

LGTM. The issue also shows normalizing all IDs to be some form of :id, but it looks like that's already been implemented?

@williamhbaker
Copy link
Contributor Author

LGTM. The issue also shows normalizing all IDs to be some form of :id, but it looks like that's already been implemented?

Yep the existing normalizePath function already did that and continues to with this change. Any part of the path that is an ID (as defined in platform) gets converted to the :id slug.

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.

Telemetry: replace unique ids for resources with a slug
2 participants