Cookiebot
Features

Drawing idea prompt

3,435 exported references; the caption's id is the index drawn, so the catalog's sort order is the contract. Scenarios authored locally - QA has none

DoneM3gatewayfun
Triggers/ideiadesenho/drawingidea/ideadibujo
v1 scenarios
—
Ported
3
Green
5
Failing
—

3,435 exported references; the caption's id is the index drawn, so the catalog's sort order is the contract. Scenarios authored locally - QA has none

behaviour contractv1 source: Miscellaneous.py:137-143

What it does

/ideiadesenho (also /drawingidea, /ideadibujo) replies with a random photo out of a 3,435-picture reference collection, captioned with the reference's id and a reminder not to trace it without credit.

Behaviour that must not change

The id in the caption is the picture's position in the collection, not a name it carries — there is no command to look one up, in v1 or here, and its only use is a person quoting the number. That only works while the collection keeps its order, so v2 stores the references in the same alphabetical order the old bucket listed them in, and a test fails if that order ever changes. It is the same guarantee v1 offered and no more: deleting one picture renumbers everything after it, then as now.

It answers to the utility switch, not the fun one — a group with utility turned off is told so rather than ignored.

How to verify it

qa/features/x_drawing_idea.feature — the three spellings, the utility gate and a collection that was never loaded; run with python scripts/cb.py test. By hand in the sandbox: /drawingidea in a group and check the caption's id against the picture you get for the same id twice.

On this page