-
Notifications
You must be signed in to change notification settings - Fork 563
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
Fix/server api not started #8645
Conversation
WalkthroughThis pull request introduces a comprehensive update to the dependency management for the Gauzy desktop and server applications. The changes involve adding multiple local package dependencies from the Gauzy ecosystem, including configuration, authentication, core functionalities, and various plugins for integrations with services like GitHub, Hubstaff, Jira, and others. Additionally, modifications were made to the bootstrap process in the core package, adjusting logging and migration file handling based on the Electron environment. Changes
Sequence DiagramsequenceDiagram
participant App as Gauzy Application
participant Config as @gauzy/config
participant Auth as @gauzy/auth
participant Core as @gauzy/core
participant Plugins as Gauzy Plugins
App->>Config: Load configuration
App->>Auth: Initialize authentication
App->>Core: Bootstrap core functionality
App->>Plugins: Load integration plugins
Plugins->>App: Register integrations (GitHub, Hubstaff, Jira)
Possibly related PRs
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 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 (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/core/src/lib/bootstrap/index.ts (1)
75-75
: Consider simplifying the ternary expression.Currently, you use:
bufferLogs: env.isElectron ? false : trueYou can replace it with:
bufferLogs: !env.isElectronThis is shorter, clearer, and avoids an unnecessary ternary.
- bufferLogs: env.isElectron ? false : true + bufferLogs: !env.isElectron🧰 Tools
🪛 Biome (1.9.4)
[error] 75-75: Unnecessary use of boolean literals in conditional expression.
Simplify your code by directly assigning the result without using a ternary operator.
If your goal is negation, you may use the logical NOT (!) or double NOT (!!) operator for clearer and concise code.
Check for more details about NOT operator.
Unsafe fix: Remove the conditional expression with(lint/complexity/noUselessTernary)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
apps/desktop/src/package.json
(2 hunks)apps/server/src/package.json
(2 hunks)packages/core/src/lib/bootstrap/index.ts
(2 hunks)
🧰 Additional context used
🪛 Biome (1.9.4)
packages/core/src/lib/bootstrap/index.ts
[error] 75-75: Unnecessary use of boolean literals in conditional expression.
Simplify your code by directly assigning the result without using a ternary operator.
If your goal is negation, you may use the logical NOT (!) or double NOT (!!) operator for clearer and concise code.
Check for more details about NOT operator.
Unsafe fix: Remove the conditional expression with
(lint/complexity/noUselessTernary)
🔇 Additional comments (3)
packages/core/src/lib/bootstrap/index.ts (1)
504-505
: Logic check for Electron migrations handling looks good.
The conditional approach to only include .js
files when running in Electron while including both .ts
and .js
otherwise is a clean solution to separate compiled and source migration files.
apps/desktop/src/package.json (1)
127-143
: New Gauzy ecosystem plugins successfully added.
The file-based references to these local packages look correct. Ensure that the project's build or bundling process supports local file dependencies, which sometimes require additional steps to function properly in the Electron environment.
apps/server/src/package.json (1)
Line range hint 137-153
: Dependency reorganization is consistent with the newly introduced packages.
The changes re-add important Gauzy packages, aligning them with the desktop application's approach. Confirm that there are no version mismatches or conflicting references in the build pipeline after this restructuring.
View your CI Pipeline Execution ↗ for commit 94b9c26.
☁️ Nx Cloud last updated this comment at |
Fix/server api not started (#8645)
Fix/server api not started (#8645)
PR
Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.
Summary by CodeRabbit
Dependencies
Configuration