frontend icon indicating copy to clipboard operation
frontend copied to clipboard

feat: persisted storage

Open FoundTheWOUT opened this issue 2 years ago • 11 comments

持久化存储 在退出页面时存储,进入页面时消费

目前该 pr 对 website 不产生影响,只是增加了一些工具

FoundTheWOUT avatar Apr 02 '23 13:04 FoundTheWOUT

Codecov Report

Patch and project coverage have no change.

Comparison is base (6a905bd) 83.02% compared to head (23201df) 83.02%.

:exclamation: Current head 23201df differs from pull request most recent head 366d31d. Consider uploading reports for the commit 366d31d to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #531   +/-   ##
=======================================
  Coverage   83.02%   83.02%           
=======================================
  Files          96       96           
  Lines        5832     5832           
  Branches      458      459    +1     
=======================================
  Hits         4842     4842           
  Misses        984      984           
  Partials        6        6           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Apr 02 '23 13:04 codecov[bot]

这个用在维基编辑页面会不会导致用户因为版本冲突而不消息覆盖掉其他维基人的编辑版本?

比如在 A -- B -- C 的纪录上用户之前保存了基于A的编辑纪录,然后另外的维基人创建了版本 B 和 C,然后用户再次进入页面的时候本应该是基于C做修改的,但是显示的是之前存的基于A修改的纪录?🤔

现在的 key 用的是 wiki-edit-detail/${subjectId} ,我感觉好像会发生这样的情况啊?

这个功能加在日志/发帖功能保存写一半的内容还可以,加在维基编辑页面感觉没太有必要

trim21 avatar Apr 03 '23 13:04 trim21

是会有这个问题,感觉这个功能加在维基确实没必要。

FoundTheWOUT avatar Apr 03 '23 14:04 FoundTheWOUT

是会有这个问题,感觉这个功能加在维基确实没必要。

那为啥还加()

trim21 avatar Apr 03 '23 14:04 trim21

是会有这个问题,感觉这个功能加在维基确实没必要。

那为啥还加()

没考虑到这个冲突问题(

FoundTheWOUT avatar Apr 03 '23 14:04 FoundTheWOUT

现在这个wiki页面是改了什么?没太看懂(

trim21 avatar Apr 03 '23 14:04 trim21

Wiki 页面现在基本没改,只是把一些数据的初始化拿出了 useEffect

FoundTheWOUT avatar Apr 03 '23 14:04 FoundTheWOUT

说到编辑冲突,那现在维基是怎么处理编辑冲突的,就 A B 一起编辑,然后 A 先提交,B再提交,B 覆盖了 A 的编辑。

FoundTheWOUT avatar Apr 04 '23 02:04 FoundTheWOUT

说到编辑冲突,那现在维基是怎么处理编辑冲突的,就 A B 一起编辑,然后 A 先提交,B再提交,B 覆盖了 A 的编辑。

编辑被覆盖掉。

这个等再解决一下

trim21 avatar Apr 04 '23 03:04 trim21