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

(8.5.4) GH-2153: Future-proof metrics uninstall URL #615

Merged
merged 7 commits into from Oct 26, 2020

Conversation

leuryr
Copy link
Contributor

@leuryr leuryr commented Oct 1, 2020

Shortens the query string for the uninstall URL by including only the ping params we've deemed as crucial.

I've also added a helper method for constructing the query string key value pairs, which hopefully makes it a little easier to read/identify the queries and values getting added to metrics_url, and helps prevent potential errors when adding new params.


  • Have you followed the guidelines in CONTRIBUTING.md?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you added an explanation of what your changes do?
  • Does your submission pass tests?
  • Did you lint your code prior to submission?

@leuryr leuryr requested a review from wlycdgr as a code owner October 1, 2020 20:04
@christophertino christophertino added this to the 8.5.4 milestone Oct 2, 2020
@wlycdgr wlycdgr changed the title GH-2153: Future-proof metrics uninstall URL (DNM UNTIL 8.5.3 IS OUT) GH-2153: Future-proof metrics uninstall URL Oct 2, 2020
Copy link
Contributor

@wlycdgr wlycdgr left a comment

Choose a reason for hiding this comment

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

Quick version bump on the helper JSDoc
Also, while we're here, might be nice to move the definition of METRICS_URL_SET out of setUninstallUrl. No reason to re-initialize that constant every time.

*
* @private
*
* @since 8.5.3
Copy link
Contributor

Choose a reason for hiding this comment

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

My bad, let's bump this to 8.5.4

@wlycdgr wlycdgr changed the title (DNM UNTIL 8.5.3 IS OUT) GH-2153: Future-proof metrics uninstall URL (8.5.4) GH-2153: Future-proof metrics uninstall URL Oct 7, 2020
Copy link
Contributor

@wlycdgr wlycdgr left a comment

Choose a reason for hiding this comment

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

Latest changes looks good

@christophertino christophertino merged commit 86b4f20 into develop Oct 26, 2020
@christophertino christophertino deleted the GH-2153/metrics-url branch October 26, 2020 16:54
chrmod pushed a commit that referenced this pull request Jul 28, 2022
* Use only crucial params for uninstall type

* Move some query string construction to helper

* Group METRICS_URL_SET with other consts

* Syntax fix

Co-authored-by: Ilya Zarembsky <ilya.zarembsky@gmail.com>
Co-authored-by: Christopher Tino <4699516+christophertino@users.noreply.github.com>
chrmod pushed a commit that referenced this pull request Jul 29, 2022
* Use only crucial params for uninstall type

* Move some query string construction to helper

* Group METRICS_URL_SET with other consts

* Syntax fix

Co-authored-by: Ilya Zarembsky <ilya.zarembsky@gmail.com>
Co-authored-by: Christopher Tino <4699516+christophertino@users.noreply.github.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.

None yet

3 participants