Skip to content

Conversation

@didoda
Copy link
Member

@didoda didoda commented May 16, 2022

This fixes #629

@didoda didoda added feature New feature or request Priority - Normal labels May 16, 2022
@didoda didoda added this to the 3.x milestone May 16, 2022
@codecov
Copy link

codecov bot commented May 16, 2022

Codecov Report

Merging #777 (fcbaea0) into master (8cc1e9d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            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           
Impacted Files Coverage Δ
src/Controller/Admin/ConfigController.php 100.00% <ø> (ø)
src/View/Helper/LayoutHelper.php 100.00% <ø> (ø)
...Controller/Admin/EndpointPermissionsController.php 100.00% <100.00%> (ø)
src/View/Helper/AdminHelper.php 100.00% <100.00%> (ø)
src/Controller/ExportController.php 100.00% <0.00%> (ø)
src/Controller/Component/ModulesComponent.php 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c5f7df...fcbaea0. Read the comment docs.

$this->set('readonly', $this->readonly);
$this->set('deleteonly', $this->deleteonly);

if ($this->resourceType === 'endpoint_permissions') {
Copy link
Member

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', []);
Copy link
Member

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?

Copy link
Member Author

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?

Copy link
Member

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

@stefanorosanelli stefanorosanelli merged commit 8d6a0a7 into bedita:master Jun 1, 2022
@didoda didoda deleted the feat/admin-endpoints+permissions branch June 1, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request Priority - Normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin endpoints + endpoint permissions

2 participants