aplbrain / aplbrain/neuvue-app

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

未关闭
#321 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
neuroglancer feat
主要语言
JavaScript
星标
1
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。