You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-3
Original file line number
Diff line number
Diff line change
@@ -329,13 +329,39 @@ If you have classes with a lot of columns and you filter them often with the sam
329
329
{
330
330
"name": "email",
331
331
"filterSortToTop": true
332
-
}
332
+
}
333
333
]
334
334
}
335
335
}
336
336
]
337
337
```
338
338
339
+
### Persistent Filters
340
+
341
+
The filters you save in the data browser of Parse Dashboard are only available for the current dashboard user in the current browser session. To make filters permanently available for all dashboard users of an app, you can define filters in the `classPreference` setting.
342
+
343
+
For example:
344
+
345
+
```json
346
+
"apps": [{
347
+
"classPreference": {
348
+
"_Role": {
349
+
"filters": [{
350
+
"name": "Filter Name",
351
+
"filter": [
352
+
{
353
+
"field": "objectId",
354
+
"constraint": "exists"
355
+
}
356
+
]
357
+
}]
358
+
}
359
+
}
360
+
}]
361
+
```
362
+
363
+
You can conveniently create a filter definition without having to write it by hand by first saving a filter in the data browser, then exporting the filter definition under *App Settings > Export Class Preferences*.
364
+
339
365
# Running as Express Middleware
340
366
341
367
Instead of starting Parse Dashboard with the CLI, you can also run it as an [express](https://github.com/expressjs/express) middleware.
@@ -452,8 +478,7 @@ With MFA enabled, a user must provide a one-time password that is typically boun
452
478
453
479
The user requires an authenticator app to generate the one-time password. These apps are provided by many 3rd parties and mostly for free.
454
480
455
-
If you create a new user by running `parse-dashboard --createUser`, you will be asked whether you want to enable MFA for the new user. To enable MFA for an existing user,
456
-
run `parse-dashboard --createMFA` to generate a `mfa` secret that you then add to the existing user configuration, for example:
481
+
If you create a new user by running `parse-dashboard --createUser`, you will be asked whether you want to enable MFA for the new user. To enable MFA for an existing user, run `parse-dashboard --createMFA` to generate a `mfa` secret that you then add to the existing user configuration, for example:
0 commit comments