Skip to content

Conversation

@NumBit
Copy link
Contributor

@NumBit NumBit commented Aug 4, 2025

Motivation

Which issue does this fix? Fixes #issue number

If no issue exists, what is the fix or new feature? Were there any reasons to fix/implement things that are not obvious?

Checklist

  • Code follows coding conventions held in this repo
  • Automated tests have been added
  • Tests are passing
  • Docs have been updated (if applicable)
  • Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test

If manual testing is required, what are the steps?

Copilot AI review requested due to automatic review settings August 4, 2025 08:43
@NumBit NumBit requested a review from a team as a code owner August 4, 2025 08:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR bumps the version of the Kentico Xperience Algolia Search package from 5.0.0 to 5.1.0, updating both the package version and User-Agent header strings to maintain consistency across the codebase.

  • Updated package version in project file from 5.0.0 to 5.1.0
  • Updated User-Agent header strings in two configuration locations to reflect the new version

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/Kentico.Xperience.AlgoliaSearch.csproj Updated the package Version property to 5.1.0
src/Extensions/AlgoliaStartupExtensions.cs Updated User-Agent header string to include version 5.1.0
src/AlgoliaSearchModule.cs Updated User-Agent header string to include version 5.1.0

var options = s.GetRequiredService<IOptions<AlgoliaOptions>>();
var configuration = new SearchConfig(options.Value.ApplicationId, options.Value.ApiKey);
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (5.0.0)";
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (5.1.0)";
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

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

The version number is hardcoded in the User-Agent string. Consider extracting this to a constant or reading it from the assembly version to avoid manual updates in multiple locations during version bumps.

Suggested change
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (5.1.0)";
configuration.DefaultHeaders["User-Agent"] = $"Kentico Xperience for Algolia ({GetAssemblyVersion()})";

Copilot uses AI. Check for mistakes.
var apiKey = ValidationHelper.GetString(ConfigurationManager.AppSettings["AlgoliaApiKey"], "NO_KEY");
var configuration = new SearchConfig(applicationId, apiKey);
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (5.0.0)";
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (5.1.0)";
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

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

The version number is hardcoded in the User-Agent string. Consider extracting this to a constant or reading it from the assembly version to avoid manual updates in multiple locations during version bumps.

Suggested change
configuration.DefaultHeaders["User-Agent"] = "Kentico Xperience for Algolia (5.1.0)";
configuration.DefaultHeaders["User-Agent"] = $"Kentico Xperience for Algolia ({GetModuleVersion()})";

Copilot uses AI. Check for mistakes.
@NumBit NumBit merged commit 1d3cb3c into master Aug 4, 2025
2 checks passed
@kentico-jaroslavn kentico-jaroslavn deleted the bump_version_to_5.1.0 branch September 24, 2025 11:18
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