-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat: Add "count" to CLP initial value #5841
feat: Add "count" to CLP initial value #5841
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5841 +/- ##
==========================================
- Coverage 93.72% 93.71% -0.01%
==========================================
Files 148 148
Lines 10304 10304
==========================================
- Hits 9657 9656 -1
- Misses 647 648 +1
Continue to review full report at Codecov.
|
Nice work! Can't wait to see it in the dashboard. |
I'm using the latest version and I'm getting an error saying "Permission denied.." on |
can you share your schema CLP qnd the query that you are using to count? |
I already found it. the reason is that migrating from old version to new version of parse server causes that permission to be denied. I had to update the parse dashboard and manually applying count permission to classes. I don't really get the idea of putting count into permission. |
It already exists for a long time but there was a bug causing it to not work properly. |
also |
// You need find access to:
await (new Parse.Query('SomeClass')).find();
// You need get access to:
await (new Parse.Query('SomeClass')).get(someObjectId);
// or
await someParseObject.fetch();
You need count access to:
await (new Parse.Query('SomeClass')).count(); |
* feat: count CLP default values * fix tests
In order to #1165 work properly, it is needed to include "count" to the initial CLP when a class is created.