[PR #5154] [MERGED] Fix JSON result of empty array in heatmap data array #17671

Closed
opened 2025-11-02 14:55:01 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5154
Author: @sapk
Created: 10/23/2018
Status: Merged
Merged: 10/24/2018
Merged by: @lunny

Base: masterHead: fix-5151


📝 Commits (3)

  • 83512ba Fix JSON result of empty array
  • 4847fe9 Merge branch 'master' into fix-5151
  • 118470a Merge branch 'master' into fix-5151

📊 Changes

2 files changed (+41 additions, -21 deletions)

View changed files

📝 models/user_heatmap.go (+4 -3)
📝 models/user_heatmap_test.go (+37 -18)

📄 Description

Fix #5151 by init the array so that the JSON translation is not null but [].

  • some test

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5154 **Author:** [@sapk](https://github.com/sapk) **Created:** 10/23/2018 **Status:** ✅ Merged **Merged:** 10/24/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix-5151` --- ### 📝 Commits (3) - [`83512ba`](https://github.com/go-gitea/gitea/commit/83512baa92554ae32206778096cb2a555b942953) Fix JSON result of empty array - [`4847fe9`](https://github.com/go-gitea/gitea/commit/4847fe94010a02e3d7e2e57518865dafafe2fa9f) Merge branch 'master' into fix-5151 - [`118470a`](https://github.com/go-gitea/gitea/commit/118470aca7d38cd37cadabcfaf5f2e6aa9ce3cb4) Merge branch 'master' into fix-5151 ### 📊 Changes **2 files changed** (+41 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `models/user_heatmap.go` (+4 -3) 📝 `models/user_heatmap_test.go` (+37 -18) </details> ### 📄 Description Fix #5151 by init the array so that the JSON translation is not null but []. + some test --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:55:01 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17671