XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.8
    • cli

    Description

      The CLI currently uses tool-specific options for providing a solr-url. This requires the user to know for each tool (first argument) which option needs to be used to provide the url.

      The user experience can be improved by merging these options and by providing a single shared option for the Solr URL and additional options for specific tools if more information is necessary (like collection names).

      Migration Proposal

      base-url option
      The base-url (--base-url and -b) option can be migrated to solr-url (--solr-url and -s) by removing the deprecated flag -s for scrape-interval in 10.0.

      solr-update-url option
      The solr-update-url (--solr-update-url and -url) can be deprecated (9x) and replaced (10.0) with solr-url (new) and collection-name (already exists). In the current logic solr-update-url and collection-name are mutually exclusive and achieve the same result. If it is neccessary to provide a handler (like it is done with collection-name by extending /update to the URL}}, an additional option may be introduced called handler (--handler) that supports the customization of the URL path suffx that determines the chosen handler.

      solr-collection-url option
      The solr-collection-url is the concatenation of the options solr-url (--solr-url and -s) and collection-name (--name and -c), which are already used in various tools. For this reason, we should deprecate (9.8) and remove (10.0) solr-collection-url by replacing it with solr-url and collection-name. Note that solr-collection-url and the combination of solr-url with collection-name are required options.

      Attachments

        Issue Links

          Activity

            People

              epugh Eric Pugh
              malliaridis Christos Malliaridis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m