Fossil SCM
Add "Forum Posts" as an option to "Activity Reports"
Commit
6ada7e37686eb3cd8cc014cf525ebd4e8726216ce182e9c45722dd2c48458a7d
Parent
b8fac03594f7eb9…
1 file changed
+10
-2
+10
-2
| --- src/statrep.c | ||
| +++ src/statrep.c | ||
| @@ -50,11 +50,11 @@ | ||
| 50 | 50 | ** the event list. Note that a filter of "*" or "all" is equivalent to |
| 51 | 51 | ** querying against the full event table. The view, however, adds an |
| 52 | 52 | ** abstraction level to simplify the implementation code for the |
| 53 | 53 | ** various /reports pages. |
| 54 | 54 | ** |
| 55 | -** Returns one of: 'c', 'w', 'g', 't', 'e', representing the type of | |
| 55 | +** Returns one of: 'c', 'f', 'w', 'g', 't', 'e', representing the type of | |
| 56 | 56 | ** filter it applies, or '*' if no filter is applied (i.e. if "all" is |
| 57 | 57 | ** used). |
| 58 | 58 | */ |
| 59 | 59 | static int stats_report_init_view(){ |
| 60 | 60 | const char *zType = PD("type","*"); /* analog to /timeline?y=... */ |
| @@ -71,10 +71,15 @@ | ||
| 71 | 71 | case 'e': |
| 72 | 72 | case 'E': |
| 73 | 73 | zRealType = "e"; |
| 74 | 74 | rc = *zRealType; |
| 75 | 75 | break; |
| 76 | + case 'f': | |
| 77 | + case 'F': | |
| 78 | + zRealType = "f"; | |
| 79 | + rc = *zRealType; | |
| 80 | + break; | |
| 76 | 81 | case 'g': |
| 77 | 82 | case 'G': |
| 78 | 83 | zRealType = "g"; |
| 79 | 84 | rc = *zRealType; |
| 80 | 85 | break; |
| @@ -124,10 +129,12 @@ | ||
| 124 | 129 | switch( statsReportType ){ |
| 125 | 130 | case 'c': |
| 126 | 131 | return "check-ins"; |
| 127 | 132 | case 'e': |
| 128 | 133 | return "technotes"; |
| 134 | + case 'f': | |
| 135 | + return "forum posts"; | |
| 129 | 136 | case 'w': |
| 130 | 137 | return "wiki changes"; |
| 131 | 138 | case 't': |
| 132 | 139 | return "ticket changes"; |
| 133 | 140 | case 'g': |
| @@ -718,11 +725,11 @@ | ||
| 718 | 725 | ** Query Parameters: |
| 719 | 726 | ** |
| 720 | 727 | ** view=REPORT_NAME Valid values: bymonth, byyear, byuser |
| 721 | 728 | ** user=NAME Restricts statistics to the given user |
| 722 | 729 | ** type=TYPE Restricts the report to a specific event type: |
| 723 | -** ci (check-in), w (wiki), t (ticket), g (tag) | |
| 730 | +** ci (check-in), f (forum), w (wiki), t (ticket), g (tag) | |
| 724 | 731 | ** Defaulting to all event types. |
| 725 | 732 | ** |
| 726 | 733 | ** The view-specific query parameters include: |
| 727 | 734 | ** |
| 728 | 735 | ** view=byweek: |
| @@ -750,10 +757,11 @@ | ||
| 750 | 757 | { "By Year", "byyear", RPT_BYYEAR }, |
| 751 | 758 | }; |
| 752 | 759 | static const char *const azType[] = { |
| 753 | 760 | "a", "All Changes", |
| 754 | 761 | "ci", "Check-ins", |
| 762 | + "f", "Forum Posts", | |
| 755 | 763 | "g", "Tags", |
| 756 | 764 | "e", "Tech Notes", |
| 757 | 765 | "t", "Tickets", |
| 758 | 766 | "w", "Wiki" |
| 759 | 767 | }; |
| 760 | 768 |
| --- src/statrep.c | |
| +++ src/statrep.c | |
| @@ -50,11 +50,11 @@ | |
| 50 | ** the event list. Note that a filter of "*" or "all" is equivalent to |
| 51 | ** querying against the full event table. The view, however, adds an |
| 52 | ** abstraction level to simplify the implementation code for the |
| 53 | ** various /reports pages. |
| 54 | ** |
| 55 | ** Returns one of: 'c', 'w', 'g', 't', 'e', representing the type of |
| 56 | ** filter it applies, or '*' if no filter is applied (i.e. if "all" is |
| 57 | ** used). |
| 58 | */ |
| 59 | static int stats_report_init_view(){ |
| 60 | const char *zType = PD("type","*"); /* analog to /timeline?y=... */ |
| @@ -71,10 +71,15 @@ | |
| 71 | case 'e': |
| 72 | case 'E': |
| 73 | zRealType = "e"; |
| 74 | rc = *zRealType; |
| 75 | break; |
| 76 | case 'g': |
| 77 | case 'G': |
| 78 | zRealType = "g"; |
| 79 | rc = *zRealType; |
| 80 | break; |
| @@ -124,10 +129,12 @@ | |
| 124 | switch( statsReportType ){ |
| 125 | case 'c': |
| 126 | return "check-ins"; |
| 127 | case 'e': |
| 128 | return "technotes"; |
| 129 | case 'w': |
| 130 | return "wiki changes"; |
| 131 | case 't': |
| 132 | return "ticket changes"; |
| 133 | case 'g': |
| @@ -718,11 +725,11 @@ | |
| 718 | ** Query Parameters: |
| 719 | ** |
| 720 | ** view=REPORT_NAME Valid values: bymonth, byyear, byuser |
| 721 | ** user=NAME Restricts statistics to the given user |
| 722 | ** type=TYPE Restricts the report to a specific event type: |
| 723 | ** ci (check-in), w (wiki), t (ticket), g (tag) |
| 724 | ** Defaulting to all event types. |
| 725 | ** |
| 726 | ** The view-specific query parameters include: |
| 727 | ** |
| 728 | ** view=byweek: |
| @@ -750,10 +757,11 @@ | |
| 750 | { "By Year", "byyear", RPT_BYYEAR }, |
| 751 | }; |
| 752 | static const char *const azType[] = { |
| 753 | "a", "All Changes", |
| 754 | "ci", "Check-ins", |
| 755 | "g", "Tags", |
| 756 | "e", "Tech Notes", |
| 757 | "t", "Tickets", |
| 758 | "w", "Wiki" |
| 759 | }; |
| 760 |
| --- src/statrep.c | |
| +++ src/statrep.c | |
| @@ -50,11 +50,11 @@ | |
| 50 | ** the event list. Note that a filter of "*" or "all" is equivalent to |
| 51 | ** querying against the full event table. The view, however, adds an |
| 52 | ** abstraction level to simplify the implementation code for the |
| 53 | ** various /reports pages. |
| 54 | ** |
| 55 | ** Returns one of: 'c', 'f', 'w', 'g', 't', 'e', representing the type of |
| 56 | ** filter it applies, or '*' if no filter is applied (i.e. if "all" is |
| 57 | ** used). |
| 58 | */ |
| 59 | static int stats_report_init_view(){ |
| 60 | const char *zType = PD("type","*"); /* analog to /timeline?y=... */ |
| @@ -71,10 +71,15 @@ | |
| 71 | case 'e': |
| 72 | case 'E': |
| 73 | zRealType = "e"; |
| 74 | rc = *zRealType; |
| 75 | break; |
| 76 | case 'f': |
| 77 | case 'F': |
| 78 | zRealType = "f"; |
| 79 | rc = *zRealType; |
| 80 | break; |
| 81 | case 'g': |
| 82 | case 'G': |
| 83 | zRealType = "g"; |
| 84 | rc = *zRealType; |
| 85 | break; |
| @@ -124,10 +129,12 @@ | |
| 129 | switch( statsReportType ){ |
| 130 | case 'c': |
| 131 | return "check-ins"; |
| 132 | case 'e': |
| 133 | return "technotes"; |
| 134 | case 'f': |
| 135 | return "forum posts"; |
| 136 | case 'w': |
| 137 | return "wiki changes"; |
| 138 | case 't': |
| 139 | return "ticket changes"; |
| 140 | case 'g': |
| @@ -718,11 +725,11 @@ | |
| 725 | ** Query Parameters: |
| 726 | ** |
| 727 | ** view=REPORT_NAME Valid values: bymonth, byyear, byuser |
| 728 | ** user=NAME Restricts statistics to the given user |
| 729 | ** type=TYPE Restricts the report to a specific event type: |
| 730 | ** ci (check-in), f (forum), w (wiki), t (ticket), g (tag) |
| 731 | ** Defaulting to all event types. |
| 732 | ** |
| 733 | ** The view-specific query parameters include: |
| 734 | ** |
| 735 | ** view=byweek: |
| @@ -750,10 +757,11 @@ | |
| 757 | { "By Year", "byyear", RPT_BYYEAR }, |
| 758 | }; |
| 759 | static const char *const azType[] = { |
| 760 | "a", "All Changes", |
| 761 | "ci", "Check-ins", |
| 762 | "f", "Forum Posts", |
| 763 | "g", "Tags", |
| 764 | "e", "Tech Notes", |
| 765 | "t", "Tickets", |
| 766 | "w", "Wiki" |
| 767 | }; |
| 768 |