Skip to content

feat: improve information in the user-agent param #427

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

Merged
merged 3 commits into from
Mar 6, 2025

Conversation

sgoral-splunk
Copy link
Contributor

Issue number: ADDON-76041

PR Type

What kind of change does this PR introduce?

  • Feature
  • Bug Fix
  • Refactoring (no functional or API changes)
  • Documentation Update
  • Maintenance (dependency updates, CI, etc.)

Summary

Changes

Changed "User-Agent" header parameter from Curl to solnlib/<version> rest-client <os platform>

User experience

The user will see more detailed "User-Agent" information in the logs regarding requests made using the rest client.

Checklist

If an item doesn't apply to your changes, leave it unchecked.

@sgoral-splunk sgoral-splunk requested a review from a team as a code owner March 4, 2025 13:22
kkedziak-splunk
kkedziak-splunk previously approved these changes Mar 4, 2025
@artemrys
Copy link
Member

artemrys commented Mar 4, 2025

I'd like to get this one released and it seems like a very small but feat, @sgoral-splunk what do you think? :)

search_results = search(session_key, test_url)
if len(search_results) > 0:
break
sleep(0.5)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we require this sleep as it is already present in "search" import?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right, this sleep here is not that relevant but since we break after result is found I think we can keep it.

@sgoral-splunk
Copy link
Contributor Author

I'd like to get this one released and it seems like a very small but feat, @sgoral-splunk what do you think? :)

sure, lets release it :)

@sgoral-splunk sgoral-splunk changed the title refactor: improve information in the user-agent param feat: improve information in the user-agent param Mar 5, 2025
@sgoral-splunk sgoral-splunk merged commit 70c23a2 into develop Mar 6, 2025
18 of 19 checks passed
@sgoral-splunk sgoral-splunk deleted the refactor/improve_user_agent branch March 6, 2025 13:02
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2025
@srv-rr-github-token
Copy link
Contributor

🎉 This PR is included in version 6.2.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@srv-rr-github-token
Copy link
Contributor

🎉 This PR is included in version 6.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants