OpenConceptLab/ocl_issues#2494 | locale retired#865
OpenConceptLab/ocl_issues#2494 | locale retired#865snyaggarwal wants to merge 2 commits intomasterfrom
Conversation
paynejd
left a comment
There was a problem hiding this comment.
Review Notes
Overall: Solid approach — soft-delete via retired flag, consistent filtering with active_names/active_descriptions, good partial indexes, and nice test coverage.
A few things worth checking:
-
CodeQL flag on views.py:728 — the
or efallback in theexcept ValidationErrorblock passes the raw exception to the Response. Should beor str(e)oror e.messagesto avoid leaking stack trace info. -
GraphQL inconsistency —
serialize_names(queries.py:172) returns all names including retired, butresolve_description(queries.py:543) filters toactive_descriptionsonly. Is that intentional? -
all_namesproperty removed — was anything else referencing it (exports, OCL Module)? -
Migration 0081 drops and recreates the
preferred_localeindex on ConceptName. With 20M+ rows that index rebuild will take a lock — worth scheduling during a maintenance window.
|
|
I noticed that Some terminologies use a controlled set of coded reasons, while CIEL uses an open string field. These values exist in the CIEL/OpenMRS data model and could be lost if not implemented. That said, I’m not sure yet what the actual impact of that loss would be. @askanter |
Linked Issue
Ref OpenConceptLab/ocl_issues#2494
retiredflag onconcept.namesandconcept.descriptions