Commit ad92741
authored
Fix top pages comparison tooltip missing date labels (#6221)
* Fix top pages comparison tooltip missing date labels
- The `/pages` endpoint was using `Map.merge` on a `Jason.OrderedObject`, which silently drops any merged keys during JSON encoding. Convert to a plain map first so date range labels are included in the response.
* Add changelog entry
* Add meta assertions to pages controller tests1 parent 966759c commit ad92741
3 files changed
Lines changed: 9 additions & 1 deletion
File tree
- lib/plausible_web/controllers/api
- test/plausible_web/controllers/api/stats_controller
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
| 726 | + | |
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| 660 | + | |
| 661 | + | |
660 | 662 | | |
661 | 663 | | |
662 | 664 | | |
| |||
2212 | 2214 | | |
2213 | 2215 | | |
2214 | 2216 | | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
2215 | 2222 | | |
2216 | 2223 | | |
2217 | 2224 | | |
| |||
0 commit comments