Skip to content

tdfs4ds.utils.review_note

tdfs4ds.utils.review_note

The review note: ONE wording for every place the sanity check (Health check) and the impact study show findings. Pure, no heavy import.

Rule: every rendering of findings carries this note (HTML report, Markdown report, console text, app panels, migration report). The checks help experts; they do not replace them. English only, like the other fixed texts of the app.

REVIEW_NOTE_SHORT module-attribute

REVIEW_NOTE_SHORT = 'These checks are not exhaustive and can report false positives: have an expert review the findings. They support experts, they do not replace them.'

_LONG_SANITY module-attribute

_LONG_SANITY = 'A finding is a lead to investigate, not a verdict. The absence of a finding is not proof that everything is well.'

_LONG_IMPACT module-attribute

_LONG_IMPACT = 'A finding is a lead to investigate, not a verdict. The study is read from the SQL and the catalogs: estimates are not measurements, and readers outside the store are not seen. The absence of a finding is not proof that nothing is affected.'

REVIEW_NOTE_LONG module-attribute

REVIEW_NOTE_LONG = REVIEW_NOTE_SHORT + ' ' + _LONG_SANITY

KINDS module-attribute

KINDS = ('sanity', 'impact')

long_note

long_note(kind: str = 'sanity') -> str

The long wording for kind ('sanity' | 'impact').

html_note

html_note(kind: str = 'sanity') -> str

The long note as an escaped, self-styled HTML block (works in light and dark pages).

md_note

md_note(kind: str = 'sanity') -> str

The long note as a Markdown quote.