core icon indicating copy to clipboard operation
core copied to clipboard

SDK: `VariantName` is missing on GQL Base Page Query

Open zJaaal opened this issue 8 months ago • 2 comments

[!WARNING] Blocked by: https://github.com/dotCMS/core/issues/32173 https://github.com/dotCMS/core/issues/32384

Task

We need to add the VariantName to the Base Page Query in order to make use of experiments, inside and outside of UVE

Steps to Reproduce

  1. Create an Experiment for your page
  2. Try to access it when using one of the new Examples
  3. See how it fails

Acceptance Criteria

We should be able to fetch for Variants

dotCMS Version

trunk_latest

Proposed Objective

User Experience

Proposed Priority

Priority 2 - Important

zJaaal avatar May 23 '25 13:05 zJaaal

PRs:

  • https://github.com/dotCMS/core/pull/32425

github-actions[bot] avatar Jun 14 '25 06:06 github-actions[bot]

Note to QA

This ticket can trigger this issue: https://github.com/dotCMS/core/issues/32384 So for the test, you can:

  • Enable Analytics
  • Create a new Variants from a page
  • When add contentlets to this variants, only use contentlets that already exists (The issue is only with contentlets that only exists in variants)
  • Check the pageAsset response

You ca check this PR where i show both scenearios

KevinDavilaDotCMS avatar Jun 16 '25 22:06 KevinDavilaDotCMS

Passed QA

Video

https://github.com/user-attachments/assets/b8c17d22-329f-48b0-8007-78b47f45479a

rjvelazco avatar Jun 18 '25 11:06 rjvelazco