aplbrain / aplbrain/neuvue-app

Add extra patch to differ stack that tracks difference between base_state and Neuroglancer initial state

Đang mở
#321 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
neuroglancer feat
Ngôn ngữ chính
JavaScript
Star
1
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When Neuroglancer loads a base_state for a task, it rearranges the JSON attributes and explicitly adds attributes that were pre-defined implicitly. Example:

![image](https://user-images.githubusercontent.com/24723182/182233006-62241030-0756-42d0-b790-8ad03b2f851f.png)

This causes a discontinuity between the earliest state that the differ stacks track and the base_state which has been stored in the task metadata. Even though the two states are technically identical, the patch application fails.

The library that Neuroglancer uses to create patches is here -> https://github.com/google/diff-match-patch

For this task, resolve this discontinuity by generating an extra patch at the head of the differ stack which tracks the difference between the base_state and Neuroglancer's earliest recorded state.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.