Files
progcode/web/public/assets/editorial/2018/bitrix-slug-conflict-2018.svg
T
huncode 90692f0f16
Build and deploy / deploy (push) Successful in 15s
raise editorial quality gate and revise 2018 spring
2026-07-31 09:20:37 +03:00

55 lines
3.3 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 700" role="img" aria-labelledby="title desc">
<title id="title">Диагностика конфликта символьного кода Bitrix</title>
<desc id="desc">Дерево проверки для ситуации, когда адрес карточки открывает не тот элемент: путь, переменные, выборка и набор совпадений.</desc>
<defs>
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
<path d="M0,0 L12,6 L0,12 z" fill="#3d405b"/>
</marker>
<style>
.bg { fill: #fff8ed; }
.node { fill: #ffffff; stroke: #3d405b; stroke-width: 3; }
.focus { fill: #d8e7ff; stroke: #3d405b; stroke-width: 3; }
.ok { fill: #cce8d4; stroke: #3d405b; stroke-width: 3; }
.warn { fill: #f8d49c; stroke: #3d405b; stroke-width: 3; }
.bad { fill: #f6b3a8; stroke: #3d405b; stroke-width: 3; }
.line { fill: none; stroke: #3d405b; stroke-width: 3; marker-end: url(#arrow); }
.label { font: 700 25px Arial, sans-serif; fill: #3d405b; }
.text { font: 20px Arial, sans-serif; fill: #3d405b; }
.code { font: 700 18px "Courier New", monospace; fill: #3d405b; }
.small { font: 17px Arial, sans-serif; fill: #5c677d; }
</style>
</defs>
<rect class="bg" width="1200" height="700" rx="28"/>
<text x="56" y="67" class="label">Карточка открывает не тот товар: сначала считаем совпадения</text>
<rect x="462" y="108" width="278" height="112" rx="18" class="focus"/>
<text x="491" y="155" class="label">Ожидаемый URL</text>
<text x="491" y="190" class="code">.../classic-250-g/</text>
<path d="M601 220 V296" class="line"/>
<rect x="403" y="306" width="396" height="116" rx="18" class="node"/>
<text x="430" y="352" class="label">Что компонент получил?</text>
<text x="430" y="389" class="code">ELEMENT_CODE = classic-250-g</text>
<path d="M601 422 V495" class="line"/>
<rect x="360" y="425" width="480" height="92" rx="18" class="focus"/>
<text x="390" y="466" class="label">GetList по этому CODE</text>
<text x="390" y="495" class="small">в том же IBLOCK_ID и с теми же фильтрами</text>
<path d="M360 471 H288 V594 H294" class="line"/>
<rect x="56" y="544" width="228" height="98" rx="18" class="warn"/>
<text x="80" y="585" class="label">0 записей</text>
<text x="80" y="613" class="small">шаблон, фильтр, активность</text>
<path d="M840 471 H912 V594 H906" class="line"/>
<rect x="916" y="544" width="228" height="98" rx="18" class="bad"/>
<text x="940" y="585" class="label">2+ записи</text>
<text x="940" y="613" class="small">конфликт CODE или фильтр</text>
<path d="M600 517 V558" class="line"/>
<rect x="438" y="558" width="324" height="84" rx="18" class="ok"/>
<text x="469" y="610" style="font: 700 23px Arial, sans-serif; fill: #3d405b;">1 запись: сверяем ID</text>
<text x="56" y="676" class="small">Кеш проверяем после данных и маршрута. Иначе он становится удобным, но недоказанным объяснением.</text>
</svg>