Dashboard issue heatmap in v9

Issue created: Heatmap not showing last month in Frappe 9.1 · Issue #4248 · frappe/frappe · GitHub

In my opinion, the v8-style calendar was much more appealing… Is there a benefit to the “new” one?

2 Likes

For all who are interested, to revert your own fork to the “old” layout:

frappe\desk\page\activity\activity.js (line 189):
			discrete_domains: 1,
frappe\public\js\frappe\form\dashboard.js (line 343):
			discrete_domains: 1,

will revert (until we have some global switch implemented in the system :wink: ). Do not forget to run bench build afterwards. I still vote for having this as a checkbox in the system settings…

Hello @lasalesi

discrete_domains: 0 is the current situation at the above two mentioned files. And the heatmap still is not working. I checked this for erpnext 9.2.2 and for erpnext 10.1.4

Regards
Bilal

Hi @bghayad

Once you have switched the files to discrete_domains: 1 you need to execute

$ bench build

Only this will update the actually loaded .js files and make the change effective. It works in both ERPNext v9 and 10:

Hello @lasalesi

It is already discrete_domains: 0 and not 1.

Regards
Bilal

Hi @bghayad,

thanks, yes, you are right, discrete_domains: 0 gives continuous, discrete_domains: 1 gives each month as a distinct block.

Hello @lasalesi
Yes, I succeed to see each month by placing discrete_domains 1 and bench build. But I am not able to see the activities on the calendar. Are you able? If yes, can I know your timezone and your location that are selected in the system settings please?

Regards
Bilal

Hi @bghayad,

you are absolutely right, it does not show the content… (same issue here)… might be an issue in this display form…?

The heatmap not working is this issue:

https://github.com/frappe/erpnext/issues/12722

Should have been resolved some hours ago:

https://github.com/frappe/frappe/pull/5173

1 Like

Hello @lasalesi
Did the heatmap worked with you?

Regards
Bilal

Hi @bghayad,
unfortunately no, the proposed fix in develop (see above) did not work in my test environment (see my comment in the git issue). Hopefully, a fix comes at some point as this affects both heatmaps…

We have recently updated to version:
ERPNext: v10.1.13 (master)
Frappe Framework: v10.1.6 (master)

but still heat maps are not showing any attendance for students or employees

Any help or any update?

Hi @mtajammul,

so far it is the same here, the heatmap is still not marking activities. It is tracked in Heatmap not showing last month in Frappe 9.1 · Issue #4248 · frappe/frappe · GitHub (altough that was orignially for a different issue, but contains the missing content of the heatmap).

Hello @lasalesi @mtajammul;

Can you please upgrade to the updated version as in the below link and advise if it is working?
From my side I tried and it is not working.
https://github.com/frappe/erpnext/issues/12387
https://github.com/frappe/frappe/pull/5318

Regards
Bilal

I have upgraded today to:

ERPNext: v10.1.18 (master)
Frappe Framework: v10.1.16 (master)

But heat chart is still not working.

Hello @mtajammul
Are you using master or develop branch?
Regards
Bilal

I have update Mater branch.
When master will be in the merge?

Hi @lasalesi
Did you try the last update at develop branch?
Regards
Bilal

Hi @bghayad @mtajammul @lasalesi

I was able to fix this issue and also
https://github.com/frappe/frappe/issues/5376

There were two causes:

  • The dict key was not an integer, it was a float
  • The timestamp was shifted 79200 into the future

The Pull Request #5377 is pending for merge into master branch…
https://github.com/frappe/frappe/pull/5377

Edit: This PR solves the problem that the marks on the heatmap are not displayed. The possibility to change the style of the heatmap is not fulfilled…

1 Like