-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New travis config and rails4 #635
New travis config and rails4 #635
Conversation
right_aws is no longer maintained, was throwing an error
render :text will be deprecated and poses a security risk
else | ||
flash[:error] = 'You must be logged in to add tags' | ||
redirect_to '/login?back_to=/maps/' + @map.slug | ||
redirect_to "/login?back_to=/maps/#{@map.slug}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible unprotected redirect
if logged_in? | ||
save_tags(@map) | ||
redirect_to '/maps/' + @map.slug | ||
redirect_to "/maps/#{@map.slug}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible unprotected redirect
@@ -48,6 +45,12 @@ def destroy | |||
else | |||
flash[:error] = 'You do not have permission to delete that comment.' | |||
end | |||
redirect_to "/maps/#{params[:map_id]}" | |||
redirect_to "/maps/#{@comment.map.slug}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible unprotected redirect
@comment.update_attribute(:body, params[:comment][:body]) | ||
redirect_to '/maps/' + params[:map_id] | ||
@comment.update_attributes(comment_params) | ||
redirect_to "/maps/#{@comment.map.slug}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible unprotected redirect
map_id: @map.slug, | ||
comment: { | ||
post(:create, comment: { | ||
map_id: @map.id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.
Code Climate has analyzed commit be3adbc and detected 51 issues on this pull request. Here's the issue category breakdown:
Note: there are 6 critical issues. View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #635 +/- ##
===========================================
- Coverage 71.27% 31.35% -39.92%
===========================================
Files 32 32
Lines 1288 1502 +214
===========================================
- Hits 918 471 -447
- Misses 370 1031 +661
|
Hi @alaxalves pulled your branch onto mine and travis ran to completion 🎉 🎉 ❤️ ❤️ |
Hey Cess, you can view the logs by clicking on the failing jobs right? |
That's great news @cesswairimu. I think that a good next move would be merging #605 into #578. After this we could start working on the problematic controller test. Meanwhile @kaustubh-nair will keep his good work by increasing our test coverage. I'll keep working in our DevOps infra(it's almost done) and I'll start getting more in touch with you @cesswairimu to get #578 fully merged. What do you think, is that a good workplan for those next days? @jywarren @sashadev-sky @icarito tell us what you think too. PS @cesswairimu : I have split the build logs on purpose, since it makes easier to debug which test is failing, makes our build faster..... and so on. Basically I took the |
@alaxalves yeah sounds like a plan. I think the new travis config should be merged to main though so that others can take advantage of it in the meantime. As for the failing test did you test it on your main to see if it fails for you too? I ran the tests on code envy and it was failing there too. I have been trying to fix it but I cannot find the reason why the file is not being created during export. |
I will soon be done with the test coverage. After that @cesswairimu I can give your upgrade some help if you'd like. We should push the upgrade to |
Totally agree, Bower is something that needs quick replacement |
Sounds like a plan thanks @alaxalves and @kaustubh-nair |
Hey @cesswairimu, I have just finished #605 maybe you could merge it into this to test it out. 😄 |
Closing this... the travis changes were merged to main. |
Test if new travis config will finish if added to rails 4 upgrade branch