Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3616

ConceptValidator should require at least one description for a concept

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Must
    • Resolution: Won't Fix
    • None
    • None
    • Concept Dictionary
    • Low

    Description

      Each Concept is required to have at least one concept description with a non blank/null description.
      Note that this is not required for each locale.

      The assumption is that a not-null constraint would have been added to concept_description.description as part of TRUNK-3474

      Tasks:

      • Update the ConceptValidator to enforce the rule and the error message should clearly say that at least one ConceptDescription is required with a non blank/null description property
      • Update Concept.addDescription to ignore ConceptDescriptions with blank/null descriptions, the reason for this is to be able to remove a concept description when the description field is cleared in the UI.
      • Remember to include unit tests and fix any existing one that are failing

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                raff Rafal Korytkowski
                wyclif Wyclif Luyima
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - 2 hours
                    2h
                    Remaining:
                    Remaining Estimate - 2 hours
                    2h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified