Skip to content

Dynamic sourceField, destField in ES query #32

@curran

Description

@curran

Currently, the custom middleware that queries ES when clicking on chord ribbons has hard-coded values for the source and destination fields.

          var options = {
            index: index,
            body: {
              query: {
                bool: {
                  must: [
                    {
                      "term": {
                        "nuage_metadata.sourcepolicygroups": d.source
                      }
                    },
                    {
                      "term": {
                        "nuage_metadata.destinationpolicygroups": d.destination
                      }
                    },
...

The keys in the above query should be made dynamic, according to what is selected in the client-side Kibana Schema configuration.

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