radio4000 / components

web-components to build the r4 interfaces, uses the sdk
https://components.radio4000.com/
1 stars 0 forks source link

filter out supabase query "filter properties", that are of no use to the user/model being filtered (and function/key) #123

Open 4www opened 1 year ago

oskarrough commented 1 year ago

When you currently land on, for example, /explore, you get this query

http://localhost:4000/examples/r4-app/explore?page=1&limit=10&orderBy=created_at

Do you mean that we hide these filters, until they are overwritten?

4www commented 1 year ago

No i meant for example on the table channels, no need to order_by channel.id or channel.fts

oskarrough commented 1 year ago

Ah ok. How about we in db-schemas.js add a new orderableColumns allowlist?

channels: {
  columns: [],
  selects: [],
  orderableColumns: [] // or "columnsToOrderBy" ?
}