Commit 2de1f12
authored
fix: handle required Epic Name fields during creation (sooperset#568)
* fix: handle required Epic Name fields during creation
- Check field requirements before deciding placement
- Include required Epic fields in initial creation request
- Keep optional Epic fields for post-creation update
- Add project_key parameter to enable requirement lookup
Github-Issue: sooperset#457
* fix: update test_create_epic mock to match new method signature
The prepare_epic_fields method now accepts 5 parameters including project_key,
so the test mock's side_effect function needs to be updated accordingly.
Reported-by:Hyeonsoo Lee
Github-Issue:sooperset#568
* perf: implement caching for get_required_fields to improve Epic creation performance
- Add caching mechanism in FieldsMixin.get_required_fields to avoid repeated API calls
- Remove unnecessary hasattr check in EpicsMixin since get_required_fields is guaranteed
- Add get_required_fields to FieldsOperationsProto for proper type checking
- Performance improvement critical for bulk Epic creation operations
The caching uses a tuple of (project_key, issue_type) as the cache key to store
required field definitions per project/issue type combination. This prevents
redundant API calls when creating multiple Epics in the same project.
Github-Issue: sooperset#568
* refactor: simplify Jira protocol tests by removing redundant classes and methods
- Removed multiple test classes and methods related to protocol definitions and method signatures for Jira operations.
- Consolidated tests to focus on protocol compliance checking.
- This cleanup reduces code complexity and improves maintainability of the test suite.
No functional changes were made to the protocol implementations themselves.
* revert: uv.lock1 parent 865dee7 commit 2de1f12
File tree
7 files changed
+316
-200
lines changed- src/mcp_atlassian/jira
- tests/unit/jira
7 files changed
+316
-200
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
132 | 144 | | |
133 | | - | |
| 145 | + | |
134 | 146 | | |
135 | 147 | | |
136 | | - | |
| 148 | + | |
137 | 149 | | |
138 | 150 | | |
139 | 151 | | |
140 | 152 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
148 | 167 | | |
149 | | - | |
| 168 | + | |
150 | 169 | | |
151 | 170 | | |
152 | 171 | | |
| |||
156 | 175 | | |
157 | 176 | | |
158 | 177 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
165 | 192 | | |
166 | | - | |
| 193 | + | |
167 | 194 | | |
168 | 195 | | |
169 | 196 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
176 | 213 | | |
177 | 214 | | |
178 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
191 | 203 | | |
192 | 204 | | |
193 | 205 | | |
| |||
236 | 248 | | |
237 | 249 | | |
238 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
239 | 258 | | |
240 | 259 | | |
241 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
736 | 744 | | |
737 | 745 | | |
738 | 746 | | |
739 | | - | |
| 747 | + | |
740 | 748 | | |
741 | 749 | | |
742 | 750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
156 | 173 | | |
157 | 174 | | |
158 | 175 | | |
| |||
0 commit comments