Public
Authored by Michał "rysiek" Woźniak

`commit_count` error traceback

All migrations are marked as up, table project_statistics exists and has the right schema... and yet, this keeps happening. Each and every project details page gives a 500 error. Accessing any other part of a project (issues, etc), works AOK though. It's literally just the details page.

Perhaps relevant issues:

Edited
1.85 KB
  • Solved:

    projects = Project.all
    projects.map(&:repository).each(&:expire_all_method_caches)
    projects.each do |project|
        project.send(:update_project_statistics)
    end

    Afterwards project detail pages work, but stats are zero. These get regenerated after every push though.

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment