Skip to content

incorrect query.yaml setup #209

@jkf276

Description

@jkf276

currently the setup wizard doesn't correctly update the site's query.yaml to index published products.

For example:
https://admin.hlx.page/config/adobe-commerce/sites/prerender-test/content/query.yaml

the setup should have change the query.yaml to

version: 1
indices:
  index-published-products:
    target: s3://published-products-index.json
    include:
      - /products/**
    properties:
      sku:
        select: head > meta[name="sku"]
        value: attribute(el, "content")
      last-modified:
        select: none
        value: >-
          parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT")

but for some reason, the setup wizard changed the query.yaml to

version: 1
indices:
  index-published-products:
    target: s3://published-products-index.json
    include: []
    properties:
      sku:
        select: head > meta[name="sku"]
        value: attribute(el, "content")
      last-modified:
        select: none
        value: >-
          parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss
          GMT")

Note the "include:" field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions