parse-dashboard icon indicating copy to clipboard operation
parse-dashboard copied to clipboard

Add relational filter conditions

Open mtrezza opened this issue 2 years ago • 3 comments

New Feature / Enhancement Checklist

Current Limitation

The filter dialog in the data browser currently only allows to filter for fields in the current class. It's not possible to add a filter condition that relates to another class.

Feature / Enhancement Description

Add filter conditions that relate to other classes. Since Parse Dashboard knows the entire schema, it also knows which other classes have a pointer to the currently displayed class; it can use that information to allow for filtering by fields of these related classes.

The filter dialog could be extended with a drop-down for related classes and its fields.

Example Use Case

A user in the _User class may have

  • purchases in a Purchase class with a _User pointer field
  • transactions in a Transaction class with a _User pointer field

To filter all users who

  • made purchases of shoes (in Purchase class)
  • with a transaction using a credit card (in Transaction class)

The filter dialog could look like this:

image

Alternatives / Workarounds

n/a

mtrezza avatar Jul 19 '23 12:07 mtrezza

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza, is bounty still available for this issue?

vardhan0604 avatar Jun 10 '24 06:06 vardhan0604

@vardhan0604 sure, please feel free to go ahead and submit a PR

mtrezza avatar Jun 10 '24 12:06 mtrezza

🎉 This change has been released in version 6.0.0-alpha.9

parseplatformorg avatar Jul 06 '24 14:07 parseplatformorg