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

Closed
opened 2025-11-02 04:36:00 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @tonysgi on GitHub (Oct 23, 2018).

  • 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 https://github.com/go-gitea/gitea/pull/5131#issuecomment-432329383

Originally created by @tonysgi on GitHub (Oct 23, 2018). - 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: - [x] 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](https://user-images.githubusercontent.com/1932681/47377120-703f5b80-d6c2-11e8-9470-96ca1c6a16d1.png) _Originally posted by @tonysgi in https://github.com/go-gitea/gitea/pull/5131#issuecomment-432329383_
GiteaMirror added the type/bug label 2025-11-02 04:36:00 -06:00
Author
Owner

@kolaente commented on GitHub (Oct 23, 2018):

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

@kolaente commented on GitHub (Oct 23, 2018): 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
Author
Owner

@sapk commented on GitHub (Oct 23, 2018):

@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 [].

@sapk commented on GitHub (Oct 23, 2018): @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 `[]`.
Author
Owner

@kolaente commented on GitHub (Oct 24, 2018):

@sapk Great! Thanks!

@kolaente commented on GitHub (Oct 24, 2018): @sapk Great! Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2434