recently-updated macro shows "No updates yet" when space=@all or label exclusion is configured

XMLWordPrintable

    • 1
    • Severity 2 - Major
    • 4

      Issue Summary

      The new frontend renderer for the recently-updated macro incorrectly converts certain macro parameters into CQL query literals, causing the macro to return 0 results and display "No updates yet." even when matching content exists.

      Specifically:

      • The space parameter @all (intended to search across all spaces) is passed as a literal CQL value space = "@all", searching for a space with the key @all which does not exist.
      • The label exclusion parameter -ndum (intended to exclude content with label "ndum") is passed as a literal CQL value label in ("-ndum"), searching for a label literally named -ndum.

      This results in the GraphQL operation RecentlyUpdatedMacroQuery always returning an empty result set for macros using these parameter patterns.

      Steps to Reproduce

      1. Create or navigate to a page containing a recently-updated macro configured with spaces=@all and labels=-ndum
      1. Ensure the user is in the new renderer cohort (not using the legacy macro renderer)
      1. Load the page with Ctrl + Shift + R (hard refresh)
      1. Observe the macro output

      Expected Results

      The recently-updated macro displays a list of recently updated content across all spaces, excluding content with the label "ndum".

      Actual Results

      The macro displays "No updates yet." (「まだ最新情報はありません。」) with 0 results.

      The GraphQL response:

      {
        "data": {
          "search": {
            "nodes": [],
            "pageInfo": {
              "hasNextPage": false
            }
          }
        }
      } 

      The generated CQL query:

      type in (blogpost)
      AND space = "@all"
      AND label in ("-ndum")
      order by lastmodified desc 

      Workaround

      Override the affected user to use the legacy renderer. The legacy renderer correctly handles @all and label exclusion parameters, and the macro displays as expected.

              Assignee:
              Nick Bourlier
              Reporter:
              Kyungmin Kim
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: