Managed Runtime logs
To access the logs of the Managed Runtime, you had to request access to the AWS logging for everyone separately.
It will now be possible to tail or download the logs via the Runtime Admin UI! This update will make it easier for developers to debug, analyze, and address issues on a deployed version of their PWA Kit!
Note: Keep in mind that the Managed Runtime is on a different release cycle, so it will probably not match the “B2C core” release dates.
v2.0 Developer Preview
A new major release of PWA Kit is on the horizon! This release has a few new toys:
- First steps towards Typescript support
- The development server is updated to support hot-reloading of the server-side
- An all-new CLI tool called “mrt” that combines Webpack, Jest, and Babel to support zero-config projects
- Experimental support for non-React projects is added
You can find more information about this release on GitHub.
Deprecation of /login
When using the login endpoint, if an outage happens in the Account Manager, customers will be unable to log in to the storefront. It goes without saying that this is a very strange “dependency” for storefront customers.
To mitigate this dependency, the/login endpoint is deprecated and replaced by SLAS (Shopper Login and API Access Service).
Benefits of this change:
- Account Manager outages will no longer impact the ability to log in or checkout in the storefront applications
- SLAS is more secure
- SLAS supports more login mechanisms
GET Products Caching
With this update, eCDN caching is enabled for the GET Products API! The update will improve the scalability and performance of Salesforce B2C Commerce Cloud.
But it is not enabled by default! To take advantage of this update, you need to do the following:
- Set “cache-control” headers
- Ensure the client ID is included as a query parameter or in the “x-dw-client-id” and “cache-control” header.
- Do not include an “Authorization” header with the request. Adding it will disable caching.
If you still have questions about caching in the OCAPI, you can find more information in the Infocenter.
Over the years, some frustration with developers has been that some fields or functionalities were unavailable within the Open Commerce API.
Salesforce has heard our concerns and has slowly closed these holes over the years. However, there are still some big ones (e.g., Price Books).
With this update, the following changes have happened:
- Search and sort by creation and last modified date: Now, more data APIs allow you to utilize the create and last-modified dates.
This change will make it a lot easier to acquire delta information!
The following DATA APIs have been extended:
- Order Search
- Product Search
- Customer Search
- Custom Object Search
- Catalog Search
- Guest Flag: It is now easier to detect an order made by a guest checkout or a registered customer.
But once you enable this option, how does it translate in the storefront? Let’s have a look!
But why use this option? Could you assign the master product to the category to get the same result?
The answer is no. When you assign the master, you include all of your Variation Groups (this shows all the swatches without custom development). With this option enabled, you can control which swatches show by assigning only the applicable Variation Groups.
The above is not valid. I got lucky with the products I assigned during my test to match the swatches exactly, and it acts the same as you would assign the master.
Does that mean that there are no differences? Probably not. I feel there will be slight changes in how the SearchModel represents products, and a good place to start looking is the “Represented Products.”
Have you experimented with this feature already and found differences? Share your findings in the comments!
Is it necessary for everyone to turn the switch on? No, this depends on your situation and how you want to present your products to the customer.
But this option gives us more flexibility, which is never a bad thing!
Note: If you set the type to “merged” on the top level but “individual” on a sub-category, it will not work. The products do not display correctly anymore.
From now on, when you configure a “percentage discount promotion” on multiple items, this will be prorated automatically across all eligible items.
Before, you had to select the “Prorate Discount” option on the promotion.
Source Code Groups
Not much has changed here. A new limit is imposed on the ID field to 28 ASCII characters.
Before this change, you could enter an ID that was longer, but it would be truncated after saving.
Last but not least, we will have a look at if any of the bugs that customers and partners reported have been fixed in this release!