Skip to content

Commit b20d049

Browse files
committed
New structure for spaces
1 parent 47b6f63 commit b20d049

File tree

1 file changed

+96
-20
lines changed

1 file changed

+96
-20
lines changed

R/spec-spaces.R

Lines changed: 96 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,108 @@ spec_spaces <- tspec_df(
1010
tib_chr("id"),
1111
tib_chr("status"),
1212
tib_chr("type"),
13-
tib_dbl("orderindex"),
13+
tib_int("orderindex"),
1414
tib_chr("color"),
1515
),
1616
tib_lgl("multiple_assignees"),
17-
tib_df(
17+
tib_row(
1818
"features",
19-
.names_to = ".names",
20-
tib_lgl("enabled", required = FALSE),
21-
tib_lgl("start_date", required = FALSE),
22-
tib_lgl("remap_due_dates", required = FALSE),
23-
tib_lgl("remap_closed_due_date", required = FALSE),
24-
tib_lgl("harvest", required = FALSE),
25-
tib_lgl("rollup", required = FALSE),
26-
tib_int("default_to_billable", required = FALSE),
27-
tib_df(
19+
tib_row(
20+
"due_dates",
21+
tib_lgl("enabled"),
22+
tib_lgl("start_date"),
23+
tib_lgl("remap_due_dates"),
24+
tib_lgl("remap_closed_due_date"),
25+
),
26+
tib_row(
27+
"sprints",
28+
tib_lgl("enabled"),
29+
),
30+
tib_row(
31+
"time_tracking",
32+
tib_lgl("enabled", required = FALSE),
33+
tib_lgl("harvest", required = FALSE),
34+
tib_lgl("rollup", required = FALSE),
35+
tib_int("default_to_billable"),
36+
),
37+
tib_row(
38+
"points",
39+
tib_lgl("enabled"),
40+
),
41+
tib_row(
42+
"custom_items",
43+
tib_lgl("enabled"),
44+
),
45+
tib_row(
2846
"priorities",
47+
tib_lgl("enabled"),
48+
tib_df(
49+
"priorities",
50+
tib_chr("color"),
51+
tib_chr("id"),
52+
tib_dbl("orderindex", transform = as.numeric, ptype_inner = character()),
53+
tib_chr("priority"),
54+
),
55+
),
56+
tib_row(
57+
"tags",
58+
tib_lgl("enabled"),
59+
),
60+
tib_row(
61+
"wip_limits",
2962
.required = FALSE,
30-
tib_chr("color"),
31-
tib_chr("id"),
32-
tib_dbl("orderindex", transform = as.numeric, ptype_inner = character()),
33-
tib_chr("priority"),
34-
),
35-
tib_lgl("per_assignee", required = FALSE),
36-
tib_lgl("subtasks", required = FALSE),
37-
# tib_unspecified("checklists", required = FALSE),
38-
# tib_unspecified("comments", required = FALSE),
63+
tib_lgl("enabled", required = FALSE),
64+
),
65+
tib_row(
66+
"time_estimates",
67+
.required = FALSE,
68+
tib_lgl("enabled", required = FALSE),
69+
tib_lgl("rollup", required = FALSE),
70+
tib_lgl("per_assignee", required = FALSE),
71+
),
72+
tib_row(
73+
"check_unresolved",
74+
tib_lgl("enabled"),
75+
tib_lgl("subtasks"),
76+
# tib_unspecified("checklists"),
77+
# tib_unspecified("comments"),
78+
),
79+
tib_row(
80+
"zoom",
81+
tib_lgl("enabled"),
82+
),
83+
tib_row(
84+
"milestones",
85+
tib_lgl("enabled"),
86+
),
87+
tib_row(
88+
"custom_fields",
89+
tib_lgl("enabled"),
90+
),
91+
tib_row(
92+
"remap_dependencies",
93+
.required = FALSE,
94+
tib_lgl("enabled", required = FALSE),
95+
),
96+
tib_row(
97+
"dependency_warning",
98+
tib_lgl("enabled"),
99+
),
100+
tib_row(
101+
"status_pies",
102+
tib_lgl("enabled"),
103+
),
104+
tib_row(
105+
"multiple_assignees",
106+
.required = FALSE,
107+
tib_lgl("enabled", required = FALSE),
108+
),
109+
tib_row(
110+
"emails",
111+
.required = FALSE,
112+
tib_lgl("enabled", required = FALSE),
113+
),
114+
tib_lgl("scheduler_enabled"),
39115
),
40116
tib_lgl("archived"),
41117
tib_df(

0 commit comments

Comments
 (0)