Bergrebell / CyberCoach

1 stars 1 forks source link

Deploy on Heroku and Testing #103

Closed wanze closed 9 years ago

wanze commented 9 years ago

Deploy the app on Heroku and create several Test-Accounts. Test the functionalities of the app and if there are still bugs, open them here as issue...

@lexruee Do you think we can deploy this evening or tomorrow morning so that we have enough time for testing? I'm available till 17.00 tomorrow...

lexruee commented 9 years ago

@wanze I will deploy a first version this evening.

lexruee commented 9 years ago

https://radiant-depths-9885.herokuapp.com/

lexruee commented 9 years ago

Some heroku realted bugs are fixed.

Bergrebell commented 9 years ago

there might be a bug with the achievements on the heroku deployment! i can see them in the profile but neither the timeline nor the achievements page

lexruee commented 9 years ago

@Bergrebell Can you retest it?

lexruee commented 9 years ago

zut. still does not work. i hate postgres

wanze commented 9 years ago

I can see them??

bildschirmfoto 2014-12-14 um 12 28 26

bildschirmfoto 2014-12-14 um 12 28 35

Bergrebell commented 9 years ago

so strange! it's still only working on the profile page for me!

Bergrebell commented 9 years ago

bildschirmfoto 2014-12-14 um 12 32 14 bildschirmfoto 2014-12-14 um 12 31 58

lexruee commented 9 years ago

@wanze @Bergrebell The bug is there. I can confirm that!

wanze commented 9 years ago

Yep I can confirm also wtf... can anyone accept my friend requests? :D

wanze commented 9 years ago

Suggestion

UserAchievementsController::index

@user_achievements = current_user.achievements.all #Add .all to the call
lexruee commented 9 years ago

@wanze I'll try that

lexruee commented 9 years ago

@wanze Damn this fluent api! That's the problem and this explains why the method latest_achievements works :-).

lexruee commented 9 years ago

@Bergrebell Can you test it again?

Bergrebell commented 9 years ago

@lexruee awesome! works fine now!

lexruee commented 9 years ago

@Bergrebell @wanze http://guides.rubyonrails.org/getting_started.html#adding-a-route-for-comments

Have a look at the comments. So this is basically just a placeholder (CollectionProxy) for calling functions like all, create etc...

class CommentsController < ApplicationController
  def create
    @article = Article.find(params[:article_id])
    @comment = @article.comments.create(comment_params)
    redirect_to article_path(@article)
  end

  private
    def comment_params
      params.require(:comment).permit(:commenter, :body)
    end
end
Bergrebell commented 9 years ago

@lexruee can you have a look at the friends section on the welcome/index view - it doesn't show me new friends

lexruee commented 9 years ago

@Bergrebell Should be fixed. The @friends variable was not initialized :-).

Bergrebell commented 9 years ago

@lexruee perfect! thanks!

lexruee commented 9 years ago

@wanze @Bergrebell @svetakrasikova I guess now it's stable on heroku?

Bergrebell commented 9 years ago

@lexruee haven't found a bug so far! :)

lexruee commented 9 years ago

@Bergrebell @wanze I have just found this one: https://github.com/Bergrebell/CyberCoach/issues/109

An exception is raised because a user which is invited to a passed sport session cannnot edit the results. Which makes sense, but the exception should be catched ^^.

lexruee commented 9 years ago

Last bug is solved! I really hope that everything works :-).