-
-
Notifications
You must be signed in to change notification settings - Fork 9
MAJOR REFACTOR adding support for multiple orgs #69
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
Conversation
…se component styles
… implement confetti service
…ice usage in controllers
…or handling in GitHub connection, and improve loading component logic with reactive patterns
…sts, and adjust logging configuration
…ic, and update Copilot value component for cleaner data handling; add new dependency for monitoring node processes
… in metrics service queries, and improve error handling in query execution
…g, and improve change detection in components
…prove spacing in MetricsService, and enhance error handling in QueryService
…database logging in Database, and optimize metrics retrieval in MetricsService
…evels, and improve code formatting across various components
… and modify database synchronization strategy
…ance logging practices
…improve maintainability
…eation to enhance security and prevent SQL injection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 70 out of 85 changed files in this pull request and generated 2 suggestions.
Files not reviewed (15)
- backend/package-lock.json: Language not supported
- backend/package.json: Language not supported
- backend/tests/survey.test.ts: Evaluated as low risk
- backend/src/models/metrics.model.interfaces.ts: Evaluated as low risk
- backend/src/models/copilot.seats.model.ts: Evaluated as low risk
- backend/src/controllers/usage.controller.ts: Evaluated as low risk
- backend/src/database.ts: Evaluated as low risk
- backend/src/controllers/webhook.controller.ts: Evaluated as low risk
- backend/src/controllers/teams.controller.ts: Evaluated as low risk
- backend/src/controllers/settings.controller.ts: Evaluated as low risk
- backend/src/controllers/metrics.controller.ts: Evaluated as low risk
- backend/src/controllers/seats.controller.ts: Evaluated as low risk
- backend/src/controllers/setup.controller.ts: Evaluated as low risk
- backend/src/models/target-values.model.ts: Evaluated as low risk
- backend/src/models/survey.model.ts: Evaluated as low risk
Comments skipped due to low confidence (6)
backend/src/github.ts:113
- Overwriting
hook_attributes.urlwiththis.smee.options.urlmight not be intended. Ensure this is the correct behavior.
manifest.hook_attributes.url = this.smee.options.url;
backend/src/controllers/survey.controller.ts:35
- The
app_slugproperty may not exist oninstallation. This should be validated or handled appropriately.
const comment = comments.data.find(comment => comment.user?.login.startsWith(installation.app_slug));
backend/src/models/settings.model.ts:12
- [nitpick] The
initModelmethod should be moved to the top of the class to follow the convention of defining static methods before instance methods.
static initModel(sequelize: Sequelize) {
backend/src/models/settings.model.ts:30
- [nitpick] Consider using
export default Settings;for consistency with other model exports.
export { Settings };
backend/src/models/teams.model.ts:5
- [nitpick] Consider renaming
TeamTypetoITeamto follow TypeScript naming conventions and improve code readability.
export type TeamType = Omit<components["schemas"]["team"], 'parent'> & {
backend/src/models/teams.model.ts:86
- [nitpick] The type alias
MemberTypeshould be renamed toIMemberto follow TypeScript naming conventions.
type MemberType = {
Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
…fety, and implement lifecycle hooks
…ent for IMember type in teams model
…dability, change Docker port mapping, and modify predictive modeling interface
This pull request includes significant changes to the backend codebase, focusing on refactoring the application structure, updating dependencies, and modifying controller methods to align with the new structure. The most important changes include the creation of an
Appclass to manage the application's lifecycle, updates to the controller methods to use the newAppclass, and the addition of a new dependency for debugging purposes.