-
Notifications
You must be signed in to change notification settings - Fork 11
Endpoints + EndpointPermissions #777
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
Endpoints + EndpointPermissions #777
Conversation
Codecov Report
@@ Coverage Diff @@
## master #777 +/- ##
=========================================
Coverage 99.49% 99.50%
- Complexity 897 906 +9
=========================================
Files 70 71 +1
Lines 2964 3005 +41
=========================================
+ Hits 2949 2990 +41
Misses 15 15
Continue to review full report at Codecov.
|
| $this->set('readonly', $this->readonly); | ||
| $this->set('deleteonly', $this->deleteonly); | ||
|
|
||
| if ($this->resourceType === 'endpoint_permissions') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add these lines in EndpointPermissionsController::index() ?
| $this->set('metaColumns', $this->meta); | ||
| $this->set('filter', []); | ||
| $this->set('schema', (array)$this->Schema->getSchema($this->resourceType)); | ||
| $this->set('schema', []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we sure it's never used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
admin endpoints lack schema (they are not objects). am I right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also resources have a schema => look in config/schema_properties.php - schema is fixed on resources and dynamic on objects
This fixes #629