Fossil SCM

Add "Forum Posts" as an option to "Activity Reports"

drh 2019-08-13 14:40 trunk merge
Commit 6ada7e37686eb3cd8cc014cf525ebd4e8726216ce182e9c45722dd2c48458a7d
1 file changed +10 -2
+10 -2
--- src/statrep.c
+++ src/statrep.c
@@ -50,11 +50,11 @@
5050
** the event list. Note that a filter of "*" or "all" is equivalent to
5151
** querying against the full event table. The view, however, adds an
5252
** abstraction level to simplify the implementation code for the
5353
** various /reports pages.
5454
**
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
5656
** filter it applies, or '*' if no filter is applied (i.e. if "all" is
5757
** used).
5858
*/
5959
static int stats_report_init_view(){
6060
const char *zType = PD("type","*"); /* analog to /timeline?y=... */
@@ -71,10 +71,15 @@
7171
case 'e':
7272
case 'E':
7373
zRealType = "e";
7474
rc = *zRealType;
7575
break;
76
+ case 'f':
77
+ case 'F':
78
+ zRealType = "f";
79
+ rc = *zRealType;
80
+ break;
7681
case 'g':
7782
case 'G':
7883
zRealType = "g";
7984
rc = *zRealType;
8085
break;
@@ -124,10 +129,12 @@
124129
switch( statsReportType ){
125130
case 'c':
126131
return "check-ins";
127132
case 'e':
128133
return "technotes";
134
+ case 'f':
135
+ return "forum posts";
129136
case 'w':
130137
return "wiki changes";
131138
case 't':
132139
return "ticket changes";
133140
case 'g':
@@ -718,11 +725,11 @@
718725
** Query Parameters:
719726
**
720727
** view=REPORT_NAME Valid values: bymonth, byyear, byuser
721728
** user=NAME Restricts statistics to the given user
722729
** 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)
724731
** Defaulting to all event types.
725732
**
726733
** The view-specific query parameters include:
727734
**
728735
** view=byweek:
@@ -750,10 +757,11 @@
750757
{ "By Year", "byyear", RPT_BYYEAR },
751758
};
752759
static const char *const azType[] = {
753760
"a", "All Changes",
754761
"ci", "Check-ins",
762
+ "f", "Forum Posts",
755763
"g", "Tags",
756764
"e", "Tech Notes",
757765
"t", "Tickets",
758766
"w", "Wiki"
759767
};
760768
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button