Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8698

params.json should have a way to specify appends and invariants

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: None
    • Labels:
      None

      Description

      params.json only supports defaults today. It should be possible to add appends and invariants

      for example

      {
      "params":{
      
      "my_param_set" : {
      "a":"A",
      "b" :"B",
      "_appends_" : {
      "c": "C"
      },
      "_invariants_":{
      "d" : "D"
      }}
      }
      

      In this case variables a and b are defaults, c is appends and d is invariants

      The fact that we can have invariants and appends means that if a useParam is specified with the component, it should not be overridable from the request

      So, this introduces a back incompat change

        Attachments

          Activity

            People

            • Assignee:
              noble.paul Noble Paul
              Reporter:
              noble.paul Noble Paul
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: