Plots2: 在 /contributors/____ 页面上显示贡献者

创建于 2018-03-07  ·  3评论  ·  资料来源: publiclab/plots2

https://publiclab.org/contributors/microplastics说有 8 个贡献者,但在该页面下方没有列出任何人。

代码在这里: https :

但它是由这个控制器代码驱动的:

https://github.com/publiclab/plots2/blob/5ac99163ee3a3ce47a52b3a9ccff0e0bf89aa6a2/app/controllers/tag_controller.rb#L394 -L400

任何帮助解决这个问题将不胜感激!!!

我们还应该努力添加一个测试来确保这个页面被正确填充。 我们可以在这个文件中做一个功能测试:

https://github.com/publiclab/plots2/blob/5ac99163ee3a3ce47a52b3a9ccff0e0bf89aa6a2/test/functional/tag_controller_test.rb#L286 -L293

在那里,我们并没有真正计算贡献者。 我们应该!

使用assert_equal assigns(:users), 99 (其中 99 是预期的用户数)

Ruby bug fto-candidate help wanted

最有用的评论

我认为 #2180 中可能发生了回复,这影响了 #2062 中@Gauravano的代码:

https://github.com/publiclab/plots2/blob/ca820a87e083ed7aff95e6c903732d2d4fca7949/app/views/tag/_contributors.html.erb

看起来@noteCount已更改为@note_count并且我已经在 #2479 中恢复了它。 我想添加一个功能测试以确保显示这些。

所有3条评论

我认为 #2180 中可能发生了回复,这影响了 #2062 中@Gauravano的代码:

https://github.com/publiclab/plots2/blob/ca820a87e083ed7aff95e6c903732d2d4fca7949/app/views/tag/_contributors.html.erb

看起来@noteCount已更改为@note_count并且我已经在 #2479 中恢复了它。 我想添加一个功能测试以确保显示这些。

尝试修复 #2479

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

keshavsethi picture keshavsethi  ·  3评论

bronwen9 picture bronwen9  ·  3评论

grvsachdeva picture grvsachdeva  ·  3评论

grvsachdeva picture grvsachdeva  ·  3评论

keshavsethi picture keshavsethi  ·  3评论