gdpelican
(James Kiesel)
2018 年9 月 15 日 16:41
21
Cool, it seems to be working alright on that instance with a cursory test; yes I’ve pushed the changes to the plugin repo.
If you encounter an issue with the text disappearing again, would you mind PMing me the output of the following command in the rails console?
Topic.find(<topic_id>).posts.first.collusions
1 个赞
I rebuilt the container and now all instances in the Multisite setup have a working Collude!
Kudos @gdpelican .
2 个赞
Somehow something is wrong. I started to edit, then another person came to see the topic, and the machine load started to run through the roof: all editing was lost. I cannot debug now, probably better next month as I’m rushing towards a hard deadline, but I’d appreciate other reports (of success or failure) with this plugin since I really like the principle. Otherwise I will have to consider running an external CodiMD instance which is also great.
1 个赞
I get the below errors when using collude:
Recent
Message
Uncaught TypeError: Cannot read property 'get' of undefined
Url: http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b98542795b2cfffccd977a712385207df13c9.js
Line: 11
Column: 24050
Window Location: http://mercury/t/integralas-a-masterre-rfc/149/6
Backtrace
TypeError: Cannot read property 'get' of undefined
at i.disabledFor (http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b98542795b2cfffccd977a712385207df13c9.js:11:24050)
at http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b98542795b2cfffccd977a712385207df13c9.js:11:24958
at http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:74:1148
at Array.map (<anonymous>)
at c (http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:74:1125)
at t.html (http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:72:14939)
at t.m [as draw] (http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:74:2198)
at t.value (http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:74:5263)
at i (http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:16906)
at r (http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:16819)
Env
hostname mercury-discourse
process_id 9576
application_version 6fec4982d903cbb088f95b5dcae7b67f52a90e99
HTTP_HOST mercury
REQUEST_URI /logs/report_js_error
REQUEST_METHOD POST
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
HTTP_ACCEPT */*
HTTP_REFERER http://mercury/t/integralas-a-masterre-rfc/149/6
HTTP_X_FORWARDED_FOR 192.168.2.234
HTTP_X_REAL_IP 192.168.2.234
params
message Uncaught TypeError: Cannot read property 'get' of undefined Url: http://mercury/assets/plugin-third-p
url http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b98542795b2cfffccd977a712385207df
line 11
column 24050
window_location http://mercury/t/integralas-a-masterre-rfc/149/6
stacktrace TypeError: Cannot read property 'get' of undefined at i.disabledFor (http://mercury/assets/plugin
and
Recent
Message
TypeError: t is undefined
Url: http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b98542795b2cfffccd977a712385207df13c9.js
Line: 11
Column: 24021
Window Location: http://mercury/t/egyseges-lehetoleg-cegesen-egyseges-gitlab-workflow/177
Backtrace
disabledFor@http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b98542795b2cfffccd977a712385207df13c9.js:11:24021
s/<@http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b98542795b2cfffccd977a712385207df13c9.js:11:24958
c/<@http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:74:1148
c@http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:74:1125
html@http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:72:14939
m@http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:74:2198
value@http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:74:5263
i@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:16906
r@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:16836
r@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:10297
r@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:10595
r@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:10595
r@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:10595
r@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:10595
o@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:11969
r@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:11637
o@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:13452
i@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:13316
r@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:11837
o@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:13452
i@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:13316
r@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:5:13139
rerenderWidget@http://mercury/assets/application-854cd242b33a3d81896cdc71e1e8b74d7af66cb0eb20c47894a900f5854ad957.js:33:8368
g</t.invoke@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:6927
g</t.flush@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:5930
y</t.flush@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:7980
z</r._end@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:12654
z</r.end@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:9317
z</r._run@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:13143
z</r.run@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:16:9925
l@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:12:447
bootbox</c.dialog/<@http://mercury/assets/vendor-25f91d66eba869fbd399d751711e74544b6d60bf034a5350b61c6c12caad0e2a.js:2:515
dispatch@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:2:19650
add/v.handle@http://mercury/assets/ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:2:17641
Env
hostname mercury-discourse
process_id 9547
application_version 6fec4982d903cbb088f95b5dcae7b67f52a90e99
HTTP_HOST mercury
REQUEST_URI /logs/report_js_error
REQUEST_METHOD POST
HTTP_USER_AGENT Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
HTTP_ACCEPT */*
HTTP_REFERER http://mercury/t/egyseges-lehetoleg-cegesen-egyseges-gitlab-workflow/177
HTTP_X_FORWARDED_FOR 192.168.2.206
HTTP_X_REAL_IP 192.168.2.206
params
message TypeError: t is undefined Url: http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b9
url http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b98542795b2cfffccd977a712385207df
line 11
column 24021
window_location http://mercury/t/egyseges-lehetoleg-cegesen-egyseges-gitlab-workflow/177
stacktrace disabledFor@http://mercury/assets/plugin-third-party-5d2db6ac05f499c3b3bf48f1732b98542795b2cfffccd977
Any advice?
Thanks
sam
(Sam Saffron)
2019 年11 月 26 日 00:35
26
@gdpelican this is broken at the moment, is it a plugin you are interested in supporting long term or are you looking to hand it over?
Also noticed there is no license file, is this intended to be MIT?
8 个赞
fabien
(Fabien Quatravaux)
2020 年3 月 25 日 21:46
27
那个协作编辑插件看起来非常酷。它非常适合我使用的 Discourse 实例。
有什么最新消息吗?有人打算修复它让它重新工作吗?
谢谢。
4 个赞
sunjam
(james.network)
2020 年4 月 11 日 16:40
28
@sam 这是 Collude 的 GitHub 插件 项目中的 MIT 许可证 。感谢分享 @fabien 。看起来这是一个非常有用的插件!结合 Babble Chat - #334 by jrgong Discourse 中基于信任级别完全复制 Etherpad 的体验。非常酷。
2 个赞
本来很想试试这个,但既然它被标记为“broken-plugin”(损坏的插件),现在尝试似乎也没什么意义了……
JQ331
2020 年5 月 20 日 22:15
30
关于这个插件的问题是否有最新进展?看起来它尚未准备好投入生产使用,但了解插件的状态会有所帮助。
去年编辑过程中出现了一些不稳定的情况,导致一位编辑者会丢失其他编辑者的修改,且当时无人能够调试该问题。此后,Discourse 插件 API 有所更新,该插件因此被搁置。也许@gdpelican 能提供更多信息,甚至有意愿重新实现这个很棒的想法。拥有一个支持实时多人协作、类似维基的嵌入式编辑区仍然非常有价值。
nathank
(Nathan Kershaw)
2020 年5 月 25 日 07:48
33
这对我们的医学论坛来说无疑非常出色,我们需要在这些论坛上共同制定国家指南等文件——而许多医疗机构屏蔽了 Google Docs,因此我们无法使用它。
如果能在 COVID-19 混乱之初就部署并投入使用,那将非常棒;这确实会成为一个真正的亮点。
3 个赞
sam
(Sam Saffron)
2020 年5 月 25 日 07:57
34
我们有一个由 @tshenry 测试、@mbcahyono 开发的分支版本。
我们非常接近将其作为新的 Collude 版本,并可能 在企业版中提供官方支持。这是一个相当复杂的问题,需要大量测试才能对该插件充满信心。
10 个赞
riking
(Kane York)
2020 年5 月 25 日 17:21
35
另一个你可以用来应急的选项,我自己也在用,就是 https://hackmd.io —— 它最终还能生成 Markdown,这样你就可以直接复制到 Discourse 上
2 个赞
nathank
(Nathan Kershaw)
2020 年5 月 26 日 01:23
36
看起来真的很酷——谢谢。不过我觉得这对不太懂 IT 的团队成员来说有点过于极客了;我会满怀期待地等待这个插件。如果能直接在 Discourse 中原生实现,那就太棒了。
3 个赞
实际上,Librehosters 分叉了 GitHub - fuerst/embed-etherpad-lite: Embed Etherpad Lite pads into Discourse posts using Onebox. · GitHub 以支持 CodiMD(HackMD 的“社区分叉版”)——该项目正在再次更名……
使用非常简单,你可以分叉 librehosters / embed-codimd · GitLab 来搭建自己的环境。如果能提供一个设置项用于指定 Pad 主机将会更实用,但这需要更多工作量。Librehosters 在 CodiMD 和 Discourse 之间使用了 SAML SSO,因此只有成员才能编辑 Pad。
4 个赞
riking
(Kane York)
2020 年5 月 26 日 15:16
38
阅读 plugin.rb 后,感觉这非常简单——难道你不能通过在 allowed iframes 中添加一项,配合某个生成器或 oEmbed 标签来实现吗?
3 个赞
老实说,我不清楚,也没试过。如果你能找到无需插件就能实现此功能的方法,请分享出来!
1 个赞
话虽如此,@riking ,你让我开始思考了。你打算如何“在某个地方创建一个生成器”?
我认为为此专门重新安装一个特定的 onebox 插件有些大材小用。相反,应该可以通过使用无需重新构建容器的主题组件来实现。是否有人已经开发过(通用的)onebox 主题组件?
当然,最佳方案是上游以兼容的方式修复他们的 oEmbed 标签,这样我们只需粘贴链接即可。
1 个赞