Details

    • Type: Testing
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Search Infrastructure
    • Labels:
      None

      Description

      "Element Editor" (LPS-125315)

      1. New Element > Enter Element Definition JSON > Define configurable values > Save Element > Use Element in Blueprints
      2. Create a Web Article "Content"
      3. Create a Web Article "Test Content" and add tag "test"
      4. Create a Web Article "Experimental Content" and add tag "experimental"
      5. Search for "Content"
      6. See 3 web articles: "Content", "Test Content", "Experimental Content"
      7. Add new element
        1. Name: "Hide Multiple Tagged Contents"
        2. Enter JSON for Element template
          {
              "category": "hide",
              "clauses": [
                  {
                      "context": "query",
                      "occur": "filter",
                      "query": {
                          "query": {
                              "bool": {
                                  "must_not": [
                                      {
                                          "term": {
                                              "assetTagNames.raw": {
                                                  "value": "${configuration.tag1}"
                                              }
                                          }
                                      },
                                      {
                                          "term": {
                                              "assetTagNames.raw": {
                                                  "value": "${configuration.tag2}"
                                              }
                                          }
                                      }
                                  ]
                              }
                          }
                      },
                      "type": "wrapper"
                  }
              ],
              "conditions": [],
              "description": {
                  "en_US": "Hide contents tagged with"
              },
              "enabled": true,
              "icon": "hidden",
              "title": {
                  "en_US": "Hide Multiple Tagged Contents"
              }
          }
          
        3. Enter JSON for the UI Configuration
          {
             "fieldSets":[
                {
                   "fields":[
                      {
                         "defaultValue":"",
                         "name":"tag1",
                         "label":"Tag",
                         "type":"text"
                      },
                      {
                         "defaultValue":"",
                         "name":"tag2",
                         "label":"Tag",
                         "type":"text"
                      }
                   ]
                }
             ]
          }
          
      8. Create a new Blueprint with name: “Hide Test and Experimental Content”
        1. Configure with custom element:
          1. “Hide Multiple Tagged Contents”
          2. Test
          3. Experimental
      9. Navigate to search page and add blueprint options widget
      10. Configure with “Hide Test and Experimental Content” blueprint
      11. Search for “Content”
      12. Assert only 1 web article is shown: “Content”

        Attachments

        1. index.html
          1.69 MB
        2. index.html
          1.51 MB

          Issue Links

            Activity

              People

              Assignee:
              brian.lee Brian Lee
              Reporter:
              brooke.dalton Brooke Dalton
              Recent user:
              Brooke Dalton
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package