Skip to content
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

🐛 Bug: nested filtering doesn't work properly #5365

Closed
1 task done
pashkatrick opened this issue Mar 25, 2023 · 5 comments
Closed
1 task done

🐛 Bug: nested filtering doesn't work properly #5365

pashkatrick opened this issue Mar 25, 2023 · 5 comments
Assignees
Labels
🐛 Type: Bug Something is broken or incorrect unexpectedly.

Comments

@pashkatrick
Copy link

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

  1. Create two tables.
  2. Add the "Has Many" relation between two tables (Link To Another Record column)
  3. Add some records to both tables. At least two records in the child table - one related to parent and one with null in the foreign key column.
  4. Use API to get records from parent table which contains concrete id from child records like:
    nested[child][where]=(field1,eq,value)
    but getting all records instead

Expected Behavior
User should be able to filter out records

Desired Behavior

just fix current logic pls

Project Details

nocodb is in docker
nocodb db is sqlite
OS - MacOS
test on built in swagger

Attachments

No response

@davidpfahler
Copy link

davidpfahler commented Mar 27, 2023

EDIT: I actually didn't test for this bug using the API, but I have the same bug using the UI selecting "is blank" filter on a Link to another record field.

This seems to be a renewed occurrence of #5218. I can confirm that I have the same bug with the following project details:

Node: **v16.19.1**
Arch: **x64**
Platform: **linux**
Docker: **true**
RootDB: **pg**
PackageVersion: **0.105.3**

@wingkwong
Copy link
Member

@davidpfahler The issue you linked has marked the milestone "Next Release: 0.106.0", which means the fix will be available in 0.106.0. The next release will take place on Wed.

@davidpfahler
Copy link

@wingkwong Thanks, so it may be the same issue.

@wingkwong wingkwong added the 🐛 Type: Bug Something is broken or incorrect unexpectedly. label May 4, 2023
@namnhfreelancer
Copy link

I have same issue in 0.109.6

@dstala dstala added this to the v0.203.0 milestone Nov 16, 2023
@pranavxc
Copy link
Member

The nested[child][where] is for nested LTAR data, the filter applied for the child list and not on the root list.

@dstala dstala removed this from the vFeature milestone Dec 19, 2023
@dstala dstala closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something is broken or incorrect unexpectedly.
Projects
Status: ✅ Closed
Development

No branches or pull requests

7 participants