-
Notifications
You must be signed in to change notification settings - Fork 3
feat(backend): project relationship #118
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
refactor: update import paths for FileReader to use hyphenated naming convention
…ships in resolvers
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
backend/src/project/project.model.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-prettier". (The package "eslint-plugin-prettier" was not found when loaded as a Node module from the directory "/backend".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-prettier" was referenced from the config file in "backend/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. backend/src/build-system/context.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-prettier". (The package "eslint-plugin-prettier" was not found when loaded as a Node module from the directory "/backend".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-prettier" was referenced from the config file in "backend/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. backend/src/chat/chat.model.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-prettier". (The package "eslint-plugin-prettier" was not found when loaded as a Node module from the directory "/backend".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-prettier" was referenced from the config file in "backend/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
WalkthroughThis pull request introduces several formatting adjustments and enhancements across the backend and frontend codebases. On the backend, minor indentation fixes are applied, and the data models for chats, projects, and users are updated to use UUIDs and to enforce stricter relational constraints with cascading deletes. In addition, input validation and resolver methods are refined with renamed methods and new fields for retrieving related user and chat data. Meanwhile, the frontend sees dependency updates and removal of certain UI layout elements, notably in the main layout and code-saving notification component. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Resolver as ProjectsResolver
participant Service as ProjectService
participant DB as Database
Client->>Resolver: Query getProjects(userId)
Resolver->>Service: getProjectsByUser(userId)
Service->>DB: Fetch projects with relations (user, chats)
DB-->>Service: Return project data
Service-->>Resolver: Project list
Resolver->>Resolver: Resolve 'user' via getUser(@Parent())
Resolver->>Resolver: Resolve 'chats' via getChats(@Parent())
Resolver-->>Client: Return complete project details
Suggested labels
Suggested reviewers
Poem
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (11)
💤 Files with no reviewable changes (3)
✅ Files skipped from review due to trivial changes (1)
🧰 Additional context used🪛 Biome (1.9.4)frontend/package.json[error] 18-18: The key codefox-common was already declared. This where a duplicated key was declared again. If a key is defined multiple times, only the last definition takes effect. Previous definitions are ignored. (lint/suspicious/noDuplicateObjectKeys) 🪛 GitHub Actions: Run tests and upload coveragebackend/src/project/project.model.ts[error] 62-62: Cannot find name 'OneToMany'. [error] 62-62: Cannot find name 'OneToMany'. backend/src/project/project.service.ts[error] 119-119: Type 'number' is not assignable to type 'string'. [error] 235-235: This comparison appears to be unintentional because the types 'string' and 'number' have no overlap. 🔇 Additional comments (9)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Refactor
Chores