Skip to content

Fix/fix relationship set and view #1877

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ernstmul
Copy link
Contributor

What does this PR do?

Fix the pre select of the option in the relation overview of the document

Have you read the Contributing Guidelines on issues?

@ernstmul ernstmul requested a review from ItzNotABug May 22, 2025 14:11
@coolify-appwrite-org
Copy link

coolify-appwrite-org bot commented May 22, 2025

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-05-22 14:14:44 CET

@coolify-appwrite-org
Copy link

coolify-appwrite-org bot commented May 22, 2025

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-05-22 14:14:45 CET

@@ -110,7 +109,7 @@
});

// Reactive statements
$: getCollections(search).then((res) => (collectionList = res));
$: getCollections().then((res) => (collectionList = res));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember as to why was this reactive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably because of the search, but with that being going its not needed anymore...

return sdk
.forProject(page.params.region, page.params.project)
.databases.listCollections(databaseId, queries, search);
.databases.listCollections(databaseId, queries);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So search is being removed because the component is a basic dropdown rather than a combo box where you can type to search? This will make it difficult for people to find the option they need.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is getting the collections from the API. The combobox is filtering on the client based on what the API returned. ATM search is defaulting as null which results in 0 results coming from the API. So ATM it's entirely broken, and this fixes that.
Updating this to the ComboBox is still something we need to do, but there is a bug that the dropdown of the combobox falls behind the modal, so you cannot use it.

TLDR: this change is going from 100% broken to usable. We need to do more work to make it good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants