Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-14584 Service provider interface for metadata store, index and search
  3. CDAP-14946

Find a better way to determine allowed combinations of search parameters

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: Metadata
    • Labels:
    • Rank:
      1|i00lcn:

      Description

      Now that we have multiple implementations of the metadata API, they may support different variations of parameters. For example, the dataset-based metadata storage does not support cursors in conjunction with relevance(default) sorting. The Elasticsearch implementation, however, can support that.

      Right now the getValidatedSearchRequest() method in the MetadataHttpHandler hard-wires the constraints for the dataset-based implementation, and we have unit tests that verify that.

      In the future, this validation should be delegated to the metadata SPI, and test cases should not expect a particular implementation's behavior. 

        Attachments

          Activity

            People

            • Assignee:
              andreas Andreas Neumann
              Reporter:
              andreas Andreas Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: