fix: использовать ID из метаданных для параметров при редактировании ячеек#332
Merged
fix: использовать ID из метаданных для параметров при редактировании ячеек#332
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #331
…t format
In object format (metadata structure), when editing cells, the parameter ID
should be taken from metadata, not from the column data type:
- For first column: use t{metadata.id} (root type ID)
- For requisite columns: use t{req.id} (ID from reqs array)
This ensures correct parameter names when saving cell edits via _m_save/_m_set.
Changes:
- Added paramId field to column objects in parseObjectFormat, parseJsonDataArray, and loadDataFromTable
- Updated cell rendering to use paramId instead of type for data-col-type attribute
- paramId contains the metadata ID for proper API parameter naming
Fixes #331
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This reverts commit 62bfcb8.
Collaborator
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
6 tasks
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.
📋 Описание
Исправлена работа редактирования ячеек в альтернативном (объектном) формате. Теперь при сохранении изменений используются правильные идентификаторы параметров из метаданных.
🐛 Проблема
При редактировании ячеек в объектном формате использовался неправильный идентификатор параметра - вместо ID из метаданных использовался тип данных колонки (например, "3" для SHORT вместо "332" для типа Клиент).
✨ Решение
В метаданных для типа 332 (Клиент):
{ "id": "332", "type": "3", "val": "Клиент", "reqs": [ { "num": 1, "id": "637", "orig": "492", "val": "ИНН", "type": "3" }, ... ] }Теперь параметры сохраняются как:
t332(используетсяmetadata.id)t637(используетсяreq.idиз массива reqs)🔧 Реализация
Добавлено новое поле
paramIdв объекты колонок при парсинге метаданных:paramId = metadata.idparamId = req.idОбновлен код рендеринга ячеек - теперь используется
paramIdвместоtypeдля атрибутаdata-col-typeИзменения внесены в три места создания колонок:
loadDataFromTable(строки 333-369)parseObjectFormat(строки 422-456)parseJsonDataArray(строки 537-578)При редактировании ячейки значение
colTypeберется изdata-col-type, которое теперь содержит ID из метаданных✅ Результат
t{metadata.id}t{req.id}paramIdотсутствует (для старых форматов), используетсяtypeFixes #331
Создано автоматически AI issue solver