mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: rename effort to estimate (#1053)
This commit is contained in:
parent
c6d78b5e6a
commit
84a0f6f77e
@ -28,7 +28,7 @@ row_mapping = {
|
|||||||
"created_at": "Created At",
|
"created_at": "Created At",
|
||||||
"issue_count": "Issue Count",
|
"issue_count": "Issue Count",
|
||||||
"priority": "Priority",
|
"priority": "Priority",
|
||||||
"effort": "Effort",
|
"estimate": "Estimate",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ def analytic_export_task(email, data, slug):
|
|||||||
queryset=queryset, x_axis=x_axis, y_axis=y_axis, segment=segment
|
queryset=queryset, x_axis=x_axis, y_axis=y_axis, segment=segment
|
||||||
)
|
)
|
||||||
|
|
||||||
key = "count" if y_axis == "issue_count" else "effort"
|
key = "count" if y_axis == "issue_count" else "estimate"
|
||||||
|
|
||||||
if segment:
|
if segment:
|
||||||
segment_zero = []
|
segment_zero = []
|
||||||
@ -114,7 +114,7 @@ def analytic_export_task(email, data, slug):
|
|||||||
item,
|
item,
|
||||||
distribution.get(item)[0].get("count")
|
distribution.get(item)[0].get("count")
|
||||||
if y_axis == "issue_count"
|
if y_axis == "issue_count"
|
||||||
else distribution.get(item)[0].get("effort"),
|
else distribution.get(item)[0].get("estimate"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -50,14 +50,14 @@ def build_graph_plot(queryset, x_axis, y_axis, segment=None):
|
|||||||
|
|
||||||
queryset = queryset.annotate(count=Count("*")).order_by("dimension")
|
queryset = queryset.annotate(count=Count("*")).order_by("dimension")
|
||||||
|
|
||||||
if y_axis == "effort":
|
if y_axis == "estimate":
|
||||||
queryset = queryset.annotate(effort=Sum("estimate_point")).order_by(x_axis)
|
queryset = queryset.annotate(estimate=Sum("estimate_point")).order_by(x_axis)
|
||||||
if segment:
|
if segment:
|
||||||
queryset = queryset.annotate(segment=F(segment)).values(
|
queryset = queryset.annotate(segment=F(segment)).values(
|
||||||
"dimension", "segment", "effort"
|
"dimension", "segment", "estimate"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
queryset = queryset.values("dimension", "effort")
|
queryset = queryset.values("dimension", "estimate")
|
||||||
|
|
||||||
result_values = list(queryset)
|
result_values = list(queryset)
|
||||||
grouped_data = {}
|
grouped_data = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user