Plots2: Wiki editing seems to be broken

Created on 7 Mar 2019  Â·  17Comments  Â·  Source: publiclab/plots2

Hi all -- we seem to have a new bug with the wiki editing system; perhaps related to some recent changes to https://github.com/publiclab/plots2/blob/master/app/controllers/wiki_controller.rb ?

bug has-pull-request help wanted high-priority

Most helpful comment

Yeah I missed that. Thanks for catching it. My main concern though is why didn't the test catch it though.

All 17 comments

Can you please get this for us? https://github.com/publiclab/plots2/issues/4903 ? That way we don't have to wait for someone to report, it show up automatically what exactly is happening and how it happened then we can all look together and fix it. It's helpful I think.

Hey @jywarren, raising PR for this one. Thanks!

Reason for my post is I can't reproduce locally. Editing works fine locally.

I tried editing the wiki locally and got error.

As which user? normal or admin? @gauravano

As moderator. Actually, here- https://github.com/publiclab/plots2/commit/40b6624af14b10027196b049e3a1ed8e11dd287e#diff-528416b5954756daa0b141666006dbcb during clean up there was a slight change in order of statements, due to which node.vid was getting null but as per schema it can't be null so 500 was thrown

Yeah I missed that. Thanks for catching it. My main concern though is why didn't the test catch it though.

Yes, it's really shocking that Travis wasn't able to catch this

On Fri 8 Mar, 2019, 2:39 AM Emmanuel Hayford, notifications@github.com
wrote:

Yeah I missed that. Thanks for catching it. My main concern though is why
didn't the test catch it though.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/4941#issuecomment-470695301,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AT6S9hX_jJHRXZYip1t_UrCeO951mihYks5vUYAigaJpZM4bj-Ql
.

@siaw23 re: #4903 i think it's a great idea. I am scrambling today to keep up so let me do my best to look at it. Thanks!

@gauravano would you mind looking through the logs to see how this somehow mightn't have been caught? Are we really catching the success in the test? Are we doing it to an existing wiki page, anything maybe about the context or parameters or db state that could conceivably be different? Could we run the update twice in the test?

@jywarren will go through the logs and try to find the reasons.

It failed as the branch - https://github.com/publiclab/plots2/pull/4902 is deleted

@jywarren I can't see any way we can see detailed build logs for https://github.com/publiclab/plots2/pull/4902 via Travis. Any idea?

All i can think of is going through the builds on the master branch from more than 12 days ago.... https://travis-ci.org/publiclab/plots2/builds

I went through each commit of #4902 and found that the travis build didn't run when the bug introducing commit is made mistakenly :point_down:

travis_build_skipped

As seen in the above Gif the small refactor commit doesn't show any Travis build. But, I think subsequent builds should've found the bug but don't know why no test was able to find it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grvsachdeva picture grvsachdeva  Â·  3Comments

shapironick picture shapironick  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments

milaaraujo picture milaaraujo  Â·  3Comments

jywarren picture jywarren  Â·  3Comments