Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18726

Simplify helptopics.py using associative array

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.1
    • CQL/Interpreter
    • None
    • Code Clarity
    • Low Hanging Fruit
    • All
    • None
    • Hide

      I ran the pytests so ensure the codebase was working properly and ran tests on each of the help commands before and after the changes.

      Show
      I ran the pytests so ensure the codebase was working properly and ran tests on each of the help commands before and after the changes.

    Description

      The ~200 lines of code in helptopics.py can be greatly simplified using an associative array to map topics to HTML anchors instead of class reflection. This will halve the lines of code and improve readability.

      Functionality will not be changed.

      Attachments

        Activity

          People

            vgali7 Vineet Gali
            vgali7 Vineet Gali
            Vineet Gali
            Brandon Williams, Stefan Miklosovic
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: