OpcTreeManager: IsHistorySupport не захватывается и не восстанавливается
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 58/100
Research direction
Start with NtoLib/OpcTreeManager/Entities/OpcScadaItemDto.cs:144-159 and inspect OpcUaScadaItem's nine-argument constructor and IsHistorySupport access. Then trace snapshot serialization and the planned URI namespace format change. Done means snapshots preserve the history-support flag, restored nodes archive correctly, and section 3.4 of Docs/opc-tree-manager.md is updated.
Written by the indexing model from the issue text.
Description
OpcUaScadaItem.IsHistorySupport имеет закрытый сеттер и заполняется только конструктором с девятью аргументами. Вендор вычисляет значение как (node.AccessLevel & PinType.HistoryRead) != 0.
OpcScadaItemDto строит объект через инициализатор и конструктор без параметров (NtoLib/OpcTreeManager/Entities/OpcScadaItemDto.cs:144-159), поэтому у всех восстановленных узлов значение ложное. Архивирование по ним не ведётся, сообщений об этом нет.
Из существующих снимков значение не восстанавливается: снимок хранит уже замаскированный PinValueType, а исходный признак выводится из AccessLevel.
Что сделать
- Добавить
isHistorySupportвOpcScadaItemDto, захватывать публичным геттером. - Восстанавливать через конструктор с девятью аргументами вместо инициализатора.
- Смена формата снимка. Делать одной версией вместе с переходом на хранение URI namespace, чтобы не было двух миграций подряд.
Раздел 3.4 в Docs/opc-tree-manager.md после правки обновить — ограничение оттуда снимается.
Проверка
Снять снимок с узла, у которого архивирование включено, восстановить, убедиться что признак сохранился и архив пишется.
Причина зафиксирована в Docs/known_issues/15-derived-properties-as-identity.md.
- Dominant language
- C#
- Stars
- 0
- Forks
- 0
- Avg merge
- 19m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Semiteq/NtoLib
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
feature
Difficulty 5/5 Over a week Newbie friendliness 42/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 58/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Similar issues
-
good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 88/100
erkamyaman/rust-anything#610 ·
Maintainers usually reply within 1 day
-
enhancement frontend good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
[Linux] The portal's color-scheme 0 (no preference) means light, not "not known"Possibly taken @ramlanrinos claimed this today. Openarea: linux bug ready
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ZaidX88/sluice#284 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Forrest-Technologies/drover#958 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day