Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix spatial index column issue#2622

Draft
Copilot wants to merge 1 commit intofix-spatial-index-column-issue from
copilot/sub-pr-2621
Draft

Fix spatial index column issue #2622
Copilot wants to merge 1 commit intofix-spatial-index-column-issue from
copilot/sub-pr-2621

Conversation

Copy link
Contributor

Copilot AI commented Nov 20, 2025
edited
Loading

Based on the PR branch history, this appears to be an initial repository setup commit rather than a specific spatial index fix. The commit titled "fix spatial index column issue" includes the entire console codebase initialization.

The createIndex.svelte component includes spatial index handling logic that:

  • Filters columns to show only spatial types (Point, Line, Polygon) when IndexType.Spatial is selected
  • Enforces single-column constraint for spatial indexes
  • Sets order to null for spatial indexes (spatial indexes don't use ordering)
  • Resets column selection when switching between spatial and non-spatial index types
// Spatial indexes require exactly one spatial column with null order
if (selectedType === IndexType.Spatial) {
 const currentColumn = columnList.at(0)?.value;
 const currentColumnObj = $table.columns.find(col => col.key === currentColumn);
 
 if (!currentColumn || !currentColumnObj || !isSpatialType(currentColumnObj)) {
 columnList = [{ value: '', order: null, length: null }];
 }
}

Note: Unable to identify the specific spatial index bug that was fixed without access to the original issue or a proper diff against the base branch.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link

appwrite bot commented Nov 20, 2025
edited
Loading

Console (appwrite/console)

Project ID: 688b7bf400350cbd60e9

Sites (1)
Site Status Logs Preview QR
console-stage
688b7cf6003b1842c9dc
Ready Ready View Logs Preview URL QR Code

Tip

Storage files get ClamAV malware scanning and encryption by default

Copy link
Contributor

coderabbitai bot commented Nov 20, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title (削除) [WIP] Fix spatial index column issue (削除ここまで) (追記) Fix spatial index column issue (追記ここまで) Nov 20, 2025
Copilot AI requested a review from Divyansha23 November 20, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Divyansha23 Divyansha23 Awaiting requested review from Divyansha23

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /