Repository navigation
refactor(project): remove space fields from Project and schema - #748
Merged
Merged
Conversation
- Eliminate spaceId and spaceName from Project data class to simplify the domain model. - Drop related database columns via new migration 62 to keep the schema in sync. - Update repository logic and UI imports to match the revised Project structure. - Add a dev‑mode guard in Analytics to skip tracking for developers. - Adjust NetworkSettingsSection package and styling to reflect the new layout. BREAKING CHANGE: Project no longer exposes spaceId and spaceName; consumers must remove references and adjust any persisted data accordingly.
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Migration failures are suppressed while the database version still advances, potentially leaving a permanently incomplete schema migration.
Review effort: Balanced
Findings: 1
What changed in this PR
Removes obsolete Project space metadata while aligning persistence, analytics, and settings UI code.
Changes:
- Removes space fields from Project and database operations.
- Adds schema migration 62.
- Updates analytics developer guard and network settings styling/package.
| File | Description |
|---|---|
shared/src/main/sqldelight/migrations/62.sqm |
Registers migration 62. |
shared/src/main/sqldelight/io/askimo/core/db/sqldelight/Projects.sq |
Removes space columns and query parameters. |
shared/src/main/kotlin/io/askimo/core/db/SqlDelightSchemaMigrations.kt |
Drops obsolete columns. |
shared/src/main/kotlin/io/askimo/core/config/AppConfig.kt |
Removes obsolete timeout-update logic. |
shared/src/main/kotlin/io/askimo/core/chat/repository/ProjectRepository.kt |
Adapts persistence mappings. |
shared/src/main/kotlin/io/askimo/core/chat/domain/Project.kt |
Removes space properties. |
shared/src/main/kotlin/io/askimo/core/analytics/Analytics.kt |
Skips install pings in developer mode. |
desktop/src/main/kotlin/io/askimo/desktop/settings/SettingsView.kt |
Imports relocated network settings UI. |
desktop-shared/src/main/kotlin/io/askimo/ui/settings/NetworkSettingsSection.kt |
Relocates package and updates styling. |
cli/src/test/kotlin/io/askimo/core/config/AppConfigTest.kt |
Cleans test formatting. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+94
to
+95
| dropColumnIfExists(d, "projects", "space_id") | ||
| dropColumnIfExists(d, "projects", "space_name") |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
Related Issue(s)
Type of Change
What Changed & Why
How to Test
./gradlew testScreenshots / Recordings (if applicable)
Checklist
main./gradlew spotlessApplyand./gradlew detektlocally./gradlew testand all tests passgit commit -sAdditional Notes