Skip to content
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

Admin accountability #208

Merged
merged 11 commits into from
Feb 21, 2023
Merged

Admin accountability #208

merged 11 commits into from
Feb 21, 2023

Conversation

microstudi
Copy link
Contributor

New feature: Admin (both participatory spaces & global admins) history searcher & exporter.

admin_accountability

microstudi and others added 11 commits October 7, 2022 11:14
* Add configuration options

* erb lint

* set validations

* fix summary test

* fixes specs

* fix config merger

* bump version. add docs
* add new section, add new controller, add view index

* add permissions to index action

* add rspec tests

* add var to config and rspec

* fix initializer

* fix lint

* fix permissions

* refactor permissions handling

* fix test

Co-authored-by: Ivan Vergés <[email protected]>
* improve the controller and add a table to the view

* logs list

* add PaperTrail instead ActionLog

* add removal date to table

* change datetime format

* move remove instance var from helper

* add styles to table, add role

* add pagination

* fix pagination

* add rspec

* change controller

* change controller

* fix lint

* add rspec

* add participatory_space_type to table

* fix lint

* refactoring

* change method's name

* improve the controller and add a table to the view

* logs list

* add PaperTrail instead ActionLog

* add removal date to table

* change datetime format

* move remove instance var from helper

* add styles to table, add role

* add pagination

* fix pagination

* add rspec

* change controller

* change controller

* fix lint

* add rspec

* add participatory_space_type to table

* fix lint

* refactoring

* change method's name

* add config for types_user_roles

* change view and helper, move building html to view from helper

* fix lint

* fix lint

* add presenter, remove helper

* fix pagination

* add link to participatory space, add presenter spec

* extract the i18n version of the role

* add rspec PaperTrailVersion

* rspec PaperTrailRolePresenter

* Fix presenter

* fix tests

* fix presenter

* handle deleted users

* fix checksums

---------

Co-authored-by: Ivan Vergés <[email protected]>
# Conflicts:
#	Gemfile.lock
* add Filterable

* fix searching and filtering

* add filter by date

* add rspec

* change ransacker method name

* change locale

* fix test

* fix filter by date examples

---------

Co-authored-by: Ivan Vergés <[email protected]>
* add export of admin_actions

* restore Gemfile.lock

* update gemfile

* add reference decidim admin for locales

* commit used Decidim styles

* restore envs

* remove default

* add tests

---------

Co-authored-by: Ivan Vergés <[email protected]>
* translate values

* make roles configurable

* fix tests
* refactor initializer & presenter clasess

* complete space role test

* differentiate admins from space admins

* add user presenter specs

* fix filters

* add tests for super admins

* fix tests

* fix permissions

* Add readme instructions

* update version

* fix readme
@codecov
Copy link

codecov bot commented Feb 20, 2023

Codecov Report

Base: 95.55% // Head: 95.99% // Increases project coverage by +0.43% 🎉

Coverage data is based on head (f3bc6af) compared to base (3496e11).
Patch coverage: 99.61% of modified lines in pull request are covered.

❗ Current head f3bc6af differs from pull request most recent head 10958f9. Consider uploading reports for the commit 10958f9 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #208      +/-   ##
==========================================
+ Coverage   95.55%   95.99%   +0.43%     
==========================================
  Files          87       97      +10     
  Lines        2158     2419     +261     
==========================================
+ Hits         2062     2322     +260     
- Misses         96       97       +1     
Impacted Files Coverage Δ
...els/decidim/decidim_awesome/paper_trail_version.rb 97.67% <97.67%> (ø)
...m_awesome/admin_accountability/admin/filterable.rb 100.00% <100.00%> (ø)
...me/admin_accountability/admin/filterable_helper.rb 100.00% <100.00%> (ø)
...m_awesome/admin/admin_accountability_controller.rb 100.00% <100.00%> (ø)
...ecidim/decidim_awesome/export_admin_actions_job.rb 100.00% <100.00%> (ø)
...sions/decidim/decidim_awesome/admin/permissions.rb 100.00% <100.00%> (ø)
...idim/decidim_awesome/paper_trail_base_presenter.rb 100.00% <100.00%> (ø)
...idim_awesome/participatory_space_role_presenter.rb 100.00% <100.00%> (ø)
...ers/decidim/decidim_awesome/role_base_presenter.rb 100.00% <100.00%> (ø)
...s/decidim/decidim_awesome/user_entity_presenter.rb 100.00% <100.00%> (ø)
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants