Commit 9d81d8d
fix: resolve E2E failures, CodeQL warnings, and debug cleanup (#216)
* fix: resolve CodeQL quality warnings
- Remove useless comparison (i > 0 always true in loop body)
- Remove unused editorNode variable in SlashCommand onUpdate
- Add type import for ExtendedIntegration
- Fix bare string expressions in test stubs (missing return)
- Remove redundant open={var !== null} in 39 admin modal guards
- Remove redundant null check after early return in health score calc
- Remove redundant open checks in AddTestRunModal useEffect
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: apply consistent formatting and improve readability in various worker scripts
- Standardized console log messages for tenant configuration loading and error handling across multiple worker files.
- Enhanced readability by restructuring long lines and ensuring consistent indentation.
- Updated error messages to provide clearer context for failures in tenant configuration loading and Elasticsearch operations.
This refactor aims to improve code maintainability and clarity without altering functionality.
* refactor: improve loading state handling in Select components
- Fix session cache not invalidated after user profile update
- Fix folder duplicate name error detection for ZenStack error format
- Disable submit buttons until async data loads (sessions, milestones,
test cases) to prevent race condition with undefined template/workflow
- Scope combobox pagination "Next" button selector to avoid wizard
button ambiguity in E2E test
- Apply prettier formatting to files from main merge
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: streamline parent and connection handling in milestone and session modals
- Simplified the connection logic for parent milestones in AddMilestoneModal.
- Enhanced the AddSessionModal by using spread operators for conditional connections, improving readability and maintainability.
- Added logging for error responses in the API route handler to aid debugging during create/upsert operations.
These changes improve code clarity and error tracking without altering existing functionality.
* refactor: apply consistent formatting and improve readability in various worker scripts
- Remove debug console.log statements from automationImports,
magic-select-cases, test-results import, aiExportActions,
testmoImportWorker, and syncWorker
- Remove temporary MODEL API ERROR logging from model handler
- Fix pagination E2E tests: navigate directly via URL params
(?node=ID&pageSize=10) instead of flaky folder-tree clicks
- Fix search-filter pagination tests with same URL param approach
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update E2E tests for prompt config features and step creation
- Add missing generate_from_url and generate_from_url_app features to
prompt config test data (form validation requires all features to have
non-empty systemPrompt)
- Switch ACL-06 step creation test from scalar FK to relation connect
syntax for ZenStack policy evaluation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: remove unnecessary console.log statements from syncWorker and testmoImportWorker
- Eliminated debug logging related to issue creation and update in syncWorker.
- Removed verbose logging for multiple Testmo cases mapping in testmoImportWorker to streamline output and improve code clarity.
These changes enhance the maintainability of the worker scripts by reducing clutter in the logs.
* fix: resolve session form reset race and step creation policy
- Consolidate AddSessionModal form init into single guarded useEffect
with formInitRef to prevent async data loading from wiping user input
(fixes "Name must be at least 2 characters" on session create with
config+milestone)
- Add steps to fast-path create models with indirect project resolution
via testCase lookup (bypasses ZenStack policy evaluation bug for
deep relation chains during create operations)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6257332 commit 9d81d8d
50 files changed
Lines changed: 278 additions & 338 deletions
File tree
- testplanit
- app
- [locale]
- admin
- app-config
- configurations
- fields
- groups
- integrations
- issues
- llm
- milestones
- projects
- prompts
- quickscripts
- roles
- statuses
- tags
- users
- workflows
- projects
- milestones/[projectId]
- repository/[projectId]
- runs/[projectId]
- sessions/[projectId]
- actions
- api
- llm/magic-select-cases
- test-results/import
- users/[userId]
- extensions
- SlashCommand
- Table
- components/tables
- dist/workers
- e2e/tests
- admin/prompt-configurations
- api
- repository/Test Repository Management
- test-runs
- lib
- prisma
- utils
- workers
- testmoImport
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
| 560 | + | |
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
| 569 | + | |
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
| 472 | + | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| |||
0 commit comments