Skip to content

As a new user, the heatmap does not render until you have submitted the first commit. #5151

@tonysgi

Description

@tonysgi
  • Gitea version (or commit ref): 2ce72d4
  • Git version: 2.15.2
  • Operating system: Linux
  • Database (use [x]):
      • PostgreSQL
      • [x ] MySQL
      • MSSQL
      • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes - Create a new user to see bug
      No
      Not relevant
  • Log gist:

Description

As a new user, the heatmap does not render until you have submitted the first commit. Until that happens, it is perpetually displaying the "heatmap.loading" icon.

Screenshots

image

Originally posted by @tonysgi in #5131 (comment)

Activity

kolaente

kolaente commented on Oct 23, 2018

@kolaente
Member

Normally it shouldn't show "heatmap.loading", there should be a text.

I think it doesn't load because the API returns null if the user has no actions yet, which the js library then fails to parse. I'll submit a patch tomorrow

sapk

sapk commented on Oct 23, 2018

@sapk
Member

@kolaente I already proposed a fix. You are right, it is because the array is not init (in the api reply) and the json representation is null not [].

added this to the 1.7.0 milestone on Oct 24, 2018
kolaente

kolaente commented on Oct 24, 2018

@kolaente
Member

@sapk Great! Thanks!

locked and limited conversation to collaborators on Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @lunny@tonysgi@sapk@kolaente

      Issue actions

        As a new user, the heatmap does not render until you have submitted the first commit. · Issue #5151 · go-gitea/gitea