Skip to content

CXXCBC-624: Fix user agent ID generation#692

Merged
avsej merged 1 commit intocouchbase:mainfrom
avsej:fix-user-agent
Nov 7, 2024
Merged

CXXCBC-624: Fix user agent ID generation#692
avsej merged 1 commit intocouchbase:mainfrom
avsej:fix-user-agent

Conversation

@avsej
Copy link
Copy Markdown
Member

@avsej avsej commented Oct 30, 2024

SDK-RFC-47 expects space after version and all extra information must be surrounded with parentheses.

Additionally this patch allows wrappers to override the ID during compile time, so that C++SDK version will be moved to the extras section of the identifier.

  • standalone C++SDK build ("cbc" is runtime extra part)

    "cxx/1.0.3+5.1.074ce40c (Darwin/arm64;ssl/0x30400000;cbc)"
    
  • cmake -DCOUCHBASE_CXX_CLIENT_WRAPPER_UNIFIED_ID=ruby/4.5.3

    "ruby/4.5.3 (cxx/1.0.3+5.1.074ce40c;Darwin/arm64;ssl/0x30400000;cbc)"
    

@avsej avsej requested a review from a team October 30, 2024 20:51
@avsej avsej force-pushed the fix-user-agent branch 2 times, most recently from 7beed27 to bf5254c Compare November 7, 2024 20:37
SDK-RFC couchbase#47 expects space after version and all extra information must
be surrounded with parentheses.

Additionally this patch allows wrappers to override the ID during
compile time, so that C++SDK version will be moved to the extras section
of the identifier.

* standalone C++SDK build ("cbc" is runtime extra part)

    "cxx/1.0.3+5.1.074ce40c (Darwin/arm64;ssl/0x30400000;cbc)"

* cmake -DCOUCHBASE_CXX_CLIENT_WRAPPER_UNIFIED_ID=ruby/4.5.3

    "ruby/4.5.3 (cxx/1.0.3+5.1.074ce40c;Darwin/arm64;ssl/0x30400000;cbc)"
Copy link
Copy Markdown
Contributor

@thejcfactor thejcfactor left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@avsej avsej merged commit c24912f into couchbase:main Nov 7, 2024
@avsej avsej deleted the fix-user-agent branch November 7, 2024 23:06
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.

2 participants