News Digest - 18 February 2022

Today’s highlights are:

  • Blue-green Indexing for Elasticsearch
  • Index partial update
  • XAPI support for server culture and time zone
  • Resolving all backlinks from Virtual Catalogs

Blue-green Indexing for Elasticsearch

Reindexing Elasticsearch could be so easy. Starting version 3.201.0, Virto Commerce Elasticsearch provider supports blue-green indexing.

This means after running full index Rebuild+Delete you will get the following:

  1. A new backup index will be created for the selected document type.
  2. The indexing process will be run against this backup index.
  3. During the full indexation process, the current index will remain intact and you will be able to perform all search operations against it.
  4. After reindexing is complete, the index will get swapped: the backup index will now become active, while the current one’s role will switch to the backup.
  5. To roll back to using the previous index, use the Swap Index feature: click Show Backup Indices, right-click the row for the selected document type you want to switch to, and click Swap Indices; this will cause the backup and active indices to swap their roles again.

image

  1. If you start the reindexing process again, the previous backup index will be lost and all indexing jobs will run against the new backup index instead.

You can find more details here.

Index Partial Update

We implemented a new index algorithm that resolves and uses the required document builders only. This update improves the performance of the catalog indexing process.

image

XAPI Support for Server Culture and Time Zone

In XAPI release 3.202, we improved culture and time zone. Date and time are now both saved and loaded in the server timezone. GraphQL formats the query string with server culture (for example: “2/20/2022 2:40:00 PM”) and accept a string in the same format in the GraphQL mutations.

The screen capture below shows an example of data transformation:

Resolving All Backlinks from Virtual Catalogs

Virto Commerce Catalog has a flexible structure with Physical and Virtual Catalogs. You can create a virtual catalog based on one or more physical ones. For example, a virtual catalog may be used to display seasonal goods that, in technical terms, would be various products picked from multiple physical catalogs. You can find more information on this topic here

Now, we improved Product and Category Admin interface with Links widget, which allows you to view and resolve the list of all links from various Virtual Catalogs.

Also, the widget enables managing links: by adding them or deleting the existing ones.

Disable Cache from the Code

As a developer, you can now temporarily disable cache. It may come in handy for import, export, batch operations, etc.

This feature is implemented in the VirtoCommerce.Platform.Core.Caching.CacheDisabler class.

The example below shows a construction that will not write anything to the Virto Commerce cache:

using (CacheDisabler.DisableCache())
{
/// TODO: The cache doesn't work here.
}

Disabling Change Password Functionality

You can now disable the change password feature in the admin interface. It may be helpful in case you use Active Directory only or for some security reasons.

To disable password reset set application property ‘PasswordLogin.Enable’ to false. For example, in appsettings.json file.

Working with New Vue B2B Theme (Preview)

We are working on a new Vue B2B Theme. B2B Mercury theme will give your ecommerce solutions a fresh look. We actually combined the most common B2B and B2C scenarios with the most cutting edge technologies to deliver blazing fast and fully functional solutions. We implemented typical business use cases applicable to a vast majority of projects we build.

You can read more on our Github

Now, we implemented wish lists pages and scenarios.