Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-300

Centralize hardcoded constants

    XMLWordPrintable

Details

    • Story
    • Status: Won't Fix
    • Resolution: Done
    • None
    • Qserv
    • None
    • 6
    • Data Access and Database

    Description

      Some values in qserv need to become constant(e.g. chunkId column names, dirs, filenames). Some of these are configurable, others are hardcoded in non-obvious places in the code. When multiple places need this value, they really need to agree, and unfortunately, qserv doesn't have a well-known place for these constants yet.

      Any (constant) value that is needed by different parts of the code needs to be managed in a way that is reasonably obvious to unfamiliar programmers.

      List of values:

      • chunkId, subChunkId column names (master...indexing.py, app.py)
      • environment variable names
      • + others.
        This should actually be fairly simple to implement, once the right design is conceived and worked-out.

      (transferred from trac ticket #2405)

      Attachments

        Issue Links

          Activity

            most of the work has been done through other tickets. There is module called global etc.

            jbecla Jacek Becla (Inactive) added a comment - most of the work has been done through other tickets. There is module called global etc.

            what has not already been addressed here is beyond current scope

            fritzm Fritz Mueller added a comment - what has not already been addressed here is beyond current scope

            People

              Unassigned Unassigned
              fritzm Fritz Mueller
              Fritz Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Jenkins

                  No builds found.