Projekt

Obecné

Profil

Stáhnout (5.2 KB) Statistiky
| Větev: | Tag: | Revize:
1
USE authspade;
2

    
3
CREATE TABLE IF NOT EXISTS configurations (
4
    id INT AUTO_INCREMENT PRIMARY KEY,
5
    configHash VARCHAR(255),
6
    config TEXT NOT NULL,
7
    isDefault CHAR(1) NOT NULL,
8
    defaultConfigName VARCHAR(255)
9
);
10

    
11
CREATE TABLE IF NOT EXISTS user_configurations (
12
    userId INT NOT NULL,
13
    configId INT NOT NULL,
14
    configurationName VARCHAR(255) NOT NULL,
15
    FOREIGN KEY (userId) REFERENCES users(id),
16
    FOREIGN KEY (configId) REFERENCES configurations(id),
17
    PRIMARY KEY (userId, configId)
18
);
19

    
20
INSERT INTO configurations (config, isDefault, defaultConfigName) VALUES (
21
    '{
22
    "configuration": [
23
        {
24
            "antiPattern": "TooLongSprint",
25
            "thresholds": [
26
                {
27
                    "thresholdName": "maxIterationLength",
28
                    "value": "21"
29
                },
30
                {
31
                    "thresholdName": "maxNumberOfTooLongIterations",
32
                    "value": "0"
33
                }
34
            ]
35
        },
36
        {
37
            "antiPattern": "VaryingSprintLength",
38
            "thresholds": [
39
                {
40
                    "thresholdName": "maxDaysDifference",
41
                    "value": "7"
42
                },
43
                {
44
                    "thresholdName": "maxIterationChanged",
45
                    "value": "1"
46
                }
47
            ]
48
        },
49
        {
50
            "antiPattern": "BusinessAsUsual",
51
            "thresholds": [
52
                {
53
                    "thresholdName": "divisionOfIterationsWithRetrospective",
54
                    "value": "66.66f"
55
                },
56
                {
57
                    "thresholdName": "searchSubstringsWithRetrospective",
58
                    "value": "%retr%||%revi%||%week%scrum%"
59
                }
60
            ]
61
        },
62
        {
63
            "antiPattern": "SpecifyNothing",
64
            "thresholds": [
65
                {
66
                    "thresholdName": "minNumberOfWikiPagesWithSpecification",
67
                    "value": "1"
68
                },
69
                {
70
                    "thresholdName": "minNumberOfActivitiesWithSpecification",
71
                    "value": "1"
72
                },
73
                {
74
                    "thresholdName": "minAvgLengthOfActivityDescription",
75
                    "value": "150"
76
                },
77
                {
78
                    "thresholdName": "searchSubstringsWithProjectSpecification",
79
                    "value": "%dsp%||%specifikace%||%specification%||%vize%proj%||%vize%produ%"
80
                }
81
            ]
82
        },
83
        {
84
            "antiPattern": "RoadToNowhere",
85
            "thresholds": [
86
                {
87
                    "thresholdName": "minNumberOfWikiPagesWithProjectPlan",
88
                    "value": "1"
89
                },
90
                {
91
                    "thresholdName": "minNumberOfActivitiesWithProjectPlan",
92
                    "value": "1"
93
                },
94
                {
95
                    "thresholdName": "searchSubstringsWithProjectPlan",
96
                    "value": "%pl n projektu%||%project plan%||%plan project%||%projektov  pl n%"
97
                }
98
            ]
99
        },
100
        {
101
            "antiPattern": "LongOrNonExistentFeedbackLoops",
102
            "thresholds": [
103
                {
104
                    "thresholdName": "divisionOfIterationsWithFeedbackLoop",
105
                    "value": "50.00f"
106
                },
107
                {
108
                    "thresholdName": "maxGapBetweenFeedbackLoopRate",
109
                    "value": "2f"
110
                },
111
                {
112
                    "thresholdName": "searchSubstringsWithFeedbackLoop",
113
                    "value": "%sch z%z kazn k%||%p edveden %z kazn k%||%z kazn%demo%||%sch z%zadavat%||%inform%sch z%||%z kazn%||%zadavatel%"
114
                }
115
            ]
116
        },
117
        {
118
            "antiPattern": "NinetyNinetyRule",
119
            "thresholds": [
120
                {
121
                    "thresholdName": "maxDivisionRange",
122
                    "value": "1.25f"
123
                },
124
                {
125
                    "thresholdName": "maxBadDivisionLimit",
126
                    "value": "2"
127
                }
128
            ]
129
        },
130
        {
131
            "antiPattern": "UnknownPoster",
132
            "thresholds": [
133
                {
134
                    "thresholdName": "searchSubstringsInvalidNames",
135
                    "value": "%unknown%||%anonym%"
136
                }
137
            ]
138
        },
139
        {
140
            "antiPattern": "BystanderApathy",
141
            "thresholds": [
142
                {
143
                    "thresholdName": "searchSubstringsInvalidContributors",
144
                    "value": "%dependabot%"
145
                },
146
                {
147
                    "thresholdName": "maximumPercentageOfTasksWithoutTeamwork",
148
                    "value": "30f"
149
                }
150
            ]
151
        },
152
        {
153
            "antiPattern": "YetAnotherProgrammer",
154
            "thresholds": [
155
                {
156
                    "thresholdName": "maxNumberOfNewContributors",
157
                    "value": "5"
158
                },
159
                {
160
                    "thresholdName": "numberOfFirstMonthsWithoutDetection",
161
                    "value": "2"
162
                }
163
            ]
164
        }
165
    ]
166
}',
167
    'Y', 'default configuration'
168
);
(2-2/3)