Some fixes#596
Merged
Merged
Conversation
…inference (#593) * feat(import): универсальный Generic JSON формат с гибкими типами и авто-выводом kind - Убрано требование project_id из CanParse: он может приходить из query-параметра - Добавлены flexSeverity/flexConfidence/flexStatus с UnmarshalJSON, принимающими как числа (0-N с клампингом), так и строки (critical/high/medium/low/open/fixed/…) - Добавлен flexCWEIDs: принимает []int и []string ("CWE-79", "89") в любом сочетании - Добавлено поле Status в genericFinding (ранее всегда хардкодился StatusOpen) - Добавлен per-finding source_type для переопределения конвертного значения - Добавлена функция inferGenericKind: выводит kind по набору полей когда не задан явно (порядок: secrets → iac → dast → sca → sast → other) - Добавлены smoke-тесты: string/int severity, string status/confidence, cwe_ids mixed, per-finding source_type, CanParse без project_id, регрессия на SARIF/Trivy, все правила inferGenericKind включая "явный kind побеждает эвристику" - Обновлён openapi.yaml: расширены описания /api/v1/import, добавлены схемы GenericImport и GenericFinding с документацией всех полей и допустимых значений Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdATyy4Y4nma1qwGADedFY * docs(import): документация универсального Generic JSON формата импорта Новый файл docs/import-formats.md содержит: - Обзор всех поддерживаемых форматов с признаками автодетекта - Описание endpoint, авторизации и передачи project_id - Таблицу полей Generic-конверта и finding с делением на обязательные/рекомендуемые/опциональные - Таблицы допустимых значений severity/confidence/status/kind (числовые и строковые синонимы) - Документацию эвристики авто-вывода kind (порядок проверок) - Эталонный JSON со всеми полями и минимальный валидный пример - Примеры для каждого kind (sca/sast/dast/iac/secrets) - Описание механизма дедупликации по fingerprint - Раздел частых проблем с причинами и решениями Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdATyy4Y4nma1qwGADedFY --------- Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Viktor Kalistratov <viktor.calistratov27@gmail.com>
Signed-off-by: Viktor Kalistratov <viktor.calistratov27@gmail.com>
Signed-off-by: Viktor Kalistratov <viktor.calistratov27@gmail.com>
Signed-off-by: Viktor Kalistratov <viktor.calistratov27@gmail.com>
Signed-off-by: Viktor Kalistratov <viktor.calistratov27@gmail.com>
Signed-off-by: Viktor Kalistratov <viktor.calistratov27@gmail.com>
Параметр `sources` приходил с фронтенда, но бэкенд его игнорировал: не было ни парсинга в findings handler, ни поля в FindingsFilter, ни условия в WHERE. Добавлен SourceTypes в фильтр, условие `f.source_type = ANY(...)` в buildBaseWhere и парсинг query-параметра. Фасет by_source теперь исключает собственную ось при подсчёте. Claude-Session: https://claude.ai/code/session_013UgZM7JCkw3n4v4yWUwBV6 Co-authored-by: Claude <noreply@anthropic.com>
Constrain the settings form to a centered max-width container, group each section into bordered panels, strengthen labels and visibility toggle, and tidy the save footer. Visual-only — form state, handlers and API unchanged. Claude-Session: https://claude.ai/code/session_01PvW3zCqsEw1rCgHSxp6o7m Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.