Problem/Motivation
Currently there is no dedicated user agent string used by Project Browser: https://git.drupalcode.org/project/project_browser/-/blob/2.0.x/src/Plug...
It would be useful to use a unique user agent string, so that (assuming other's don't copy that source) we would have a good heuristic to tell apart PB calls from other API calls on drupal.org and have some good metrics for actual usage of PB.
Steps to reproduce
Proposed resolution
Add a unique query string, for example: "Drupal Project Browser 2.0.0-beta1" (adding the version number would probably be really useful). Maybe even "Drupal Project Browser 2.0.0-beta1 (on Drupal 11.1.3)" or somesuch?
Issue fork project_browser-3522764
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
gábor hojtsyComment #5
omkar-pd commentedComment #6
fjgarlin commentedWe already use a "versionless" user agent in some parts, like here: https://git.drupalcode.org/project/project_browser/-/blob/2.0.x/scripts/...
curl_setopt($ch, CURLOPT_USERAGENT, 'Curl.ProjectBrowser');So I suggest to modify it slightly so we can do a regex that covers this and the new one with the version. I'll make a suggestion in the MR.
Comment #7
fjgarlin commentedActually, as they have different purposes. We can leave it like that.
Comment #8
fjgarlin commentedI made a suggestion in the MR and also added a @todo as PB will be part of core eventually.
Comment #9
tim.plunkett+1
Comment #12
chrisfromredfinCool! We can leave that todo... maybe some day we'll be there, or someday we'll just remove it. ;)