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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.0
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment