-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Phase 1.5 Critical Path - Production Blockers & Core Test Coverage #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1ed5f89
feat: implement real getTableSchema() with INFORMATION_SCHEMA queries
nipunaudemy 1d27088
feat: add activation error recovery with user-friendly dialogs
nipunaudemy ae05f9a
test: add comprehensive connection-manager tests (66.2% coverage)
nipunaudemy 2417f60
test: expand sql-validator tests to 94.52% coverage
nipunaudemy 541f851
test: add comprehensive transaction-manager tests (83.21% coverage)
nipunaudemy 4815f31
fix: resolve ESLint unused variable in transaction-manager test
nipunaudemy 8b4265a
feat: add CI coverage gate with 25% minimum threshold
nipunaudemy c4a627b
fix: replace bc with awk for coverage threshold comparisons
nipunaudemy 7bd7a24
fix: prevent infinite recursion in retryActivation with retry limit
nipunaudemy 69af1d1
test: add comprehensive test coverage to meet 24.5% threshold
nipunaudemy 265f51e
fix: replace placeholder GitHub URLs with actual repository URL
nipunaudemy 7b19840
fix: use toBeCloseTo for floating-point comparison in rate limiter test
nipunaudemy 64271b2
feat(architecture): Complete Sprint 2 - Event Bus, Audit Logger & adaβ¦
nipunaudemy 5005004
fix: address medium-severity code review issues
nipunaudemy 7eb3b3c
test: implement Workstream 1 test coverage (27.5% β 50%)
nipunaudemy dadb00d
docs: update PRODUCT_ROADMAP with Sprint 3 completion
nipunaudemy 49724b7
feat(tests): add comprehensive test coverage for core architecture
nipunaudemy 36fb4f2
docs: restructure PRD and roadmap with Phase 3/4 planning
nipunaudemy 0d677da
chore: release v1.3.0 - Phase 1.5 complete
nipunaudemy 0436b4e
fix(ci): align coverage thresholds with jest.config.js
nipunaudemy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| # MyDBA Development Guidelines | ||
|
|
||
| ## Quality Gates | ||
|
|
||
| After completing each major milestone or set of related changes: | ||
|
|
||
| 1. Run `npm run lint` - must pass with 0 errors | ||
| 2. Run `npm run compile` - must pass with 0 TypeScript errors | ||
| 3. Run `npm test:unit` - all tests must pass | ||
| 4. For test coverage work: `npm test -- --coverage` to verify coverage targets | ||
|
|
||
| Do not proceed to the next milestone until all quality gates pass. | ||
|
|
||
| ## Testing Standards | ||
|
|
||
| - Maintain minimum 50% code coverage across the codebase | ||
| - Critical services (adapters, security, AI) should have 60%+ coverage | ||
| - All tests must pass on Ubuntu, Windows, and macOS | ||
| - No flaky tests - ensure deterministic test execution | ||
| - Use mocks for external dependencies (database connections, AI providers) | ||
|
|
||
| ## Code Quality | ||
|
|
||
| - Follow existing code patterns and architecture | ||
| - Use TypeScript strict mode - no `any` types without justification | ||
| - Prefer explicit types over type inference for public APIs | ||
| - Document complex logic with inline comments | ||
| - Keep functions focused and under 50 lines when possible | ||
|
|
||
| ## Architecture Principles | ||
|
|
||
| - Service Container for dependency injection | ||
| - Event Bus for decoupled communication between components | ||
| - Adapter pattern for database implementations | ||
| - Factory pattern for creating complex objects (AI providers, adapters) | ||
| - Repository pattern for data access | ||
|
|
||
| ## Security | ||
|
|
||
| - All SQL queries must use parameterized queries (no string concatenation) | ||
| - Validate and sanitize all user inputs | ||
| - Use SecretStorage API for credentials | ||
| - Follow principle of least privilege for database connections | ||
| - Audit log all destructive operations | ||
|
|
||
| ## Performance | ||
|
|
||
| - Cache frequently accessed data (schema, metadata) | ||
| - Use connection pooling for database connections | ||
| - Lazy-load heavy dependencies | ||
| - Monitor and log slow operations (>100ms for queries, >2s for AI) | ||
| - Implement proper cleanup in dispose() methods | ||
|
|
||
| ## Git Workflow | ||
|
|
||
| - Meaningful commit messages following conventional commits | ||
| - PR reviews required before merge | ||
| - CI must pass before merge | ||
| - Keep PRs focused and under 500 lines when possible | ||
|
|
||
| ## Documentation | ||
|
|
||
| - Update README.md for user-facing changes | ||
| - Update CHANGELOG.md for all changes | ||
| - Add inline comments for complex logic | ||
| - Document public APIs with JSDoc | ||
| - Keep architecture decision records (ADRs) updated | ||
|
|
||
| ## VS Code Extension Best Practices | ||
|
|
||
| - Follow VS Code extension guidelines | ||
| - Use proper disposal patterns for all resources | ||
| - Handle errors gracefully with user-friendly messages | ||
| - Respect user settings and configuration | ||
| - Test in multiple VS Code versions | ||
| - Support dark and light themes | ||
| - Provide keyboard shortcuts for common actions | ||
| - Show progress indicators for long-running operations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.