Giter VIP home page Giter VIP logo

decidim-module-comparative_stats's Introduction

Decidim::ComparativeStats

Test Maintainability Codecov

Allows to compare different Decidim sites by accessing their GraphQL API and generate graphs.

NOTE: This module is in beta status, feel free to report issues or contribute in it!

Usage

This module works by connecting to several Decidim API's. Just go to your your-decidim-installation.org/admin/comparative_stats and add endpoints to compare. For instance, Decidim Barcelona endpoint is https://www.decidim.barcelona/api

Then, go to graphs and see some nice graphs!

Graphs can be embedded anywhere independently, just use the button embed <> and copy the code to any other place.

The generated code will look something like:

<iframe
  src="http://your_url/comparative_stats/widgets/global_stats.html"
  frameborder="0"
  width="100%"
  height="420"
  scrolling="vertical"></iframe>

You might want to customize the height parameter to match your particular case.

Barcelona/Helsinki comparison A real example comparing the participatory processes carried out by the cities of Barcelona and Helsinki in 2019

Installation

Add this line to your application's Gemfile:

gem "decidim-comparative_stats", git: "https://github.com/Platoniq/decidim-module-comparative_stats", branch: "master"

And then execute:

bundle
bundle exec rails decidim_comparative_stats:install:migrations
bundle exec rails decidim_comparative_stats:webpacker:install
bundle exec rails db:migrate

Depending on your Decidim version, choose the corresponding Awesome version to ensure compatibility:

Comparative stats version Compatible Decidim versions
1.0.x 0.21.x, 0.22.x
1.1.x 0.23.x, 0.24.x
1.2.x 0.25.x, 0.26.x
1.3.x 0.27.x

Configuration options

API queries are cached 1 hour by default. This can be tuned by creating an initializer in your Decidim installation. For instance, create the file config/initializers/comparative_stats.rb with this content:

# frozen_string_literal: true

Decidim::ComparativeStats.configure do |config|
  config.stats_cache_expiration_time = 2.hour
end

Contributing

See Decidim.

Developing

To start contributing to this project, first:

  • Install the basic dependencies (such as Ruby and PostgreSQL)
  • Clone this repository

Decidim's main repository also provides a Docker configuration file if you prefer to use Docker instead of installing the dependencies locally on your machine.

You can create the development app by running the following commands after cloning this project:

bundle
DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rake development_app

Note that the database user has to have rights to create and drop a database in order to create the dummy test app database.

Then to test how the module works in Decidim, start the development server:

cd development_app
DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rails s

In case you are using rbenv and have the rbenv-vars plugin installed for it, you can add the environment variables to the root directory of the project in a file named .rbenv-vars. If these are defined for the environment, you can omit defining these in the commands shown above.

Code Styling

Please follow the code styling defined by the different linters that ensure we are all talking with the same language collaborating on the same project. This project is set to follow the same rules that Decidim itself follows.

Rubocop linter is used for the Ruby language.

You can run the code styling checks by running the following commands from the console:

bundle exec rubocop

To ease up following the style guide, you should install the plugin to your favorite editor, such as:

Testing

To run the tests run the following in the gem development path:

bundle
DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rake test_app
DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rspec

Note that the database user has to have rights to create and drop a database in order to create the dummy test app database.

In case you are using rbenv and have the rbenv-vars plugin installed for it, you can add these environment variables to the root directory of the project in a file named .rbenv-vars. In this case, you can omit defining these in the commands shown above.

Test code coverage

If you want to generate the code coverage report for the tests, you can use the SIMPLECOV=1 environment variable in the rspec command as follows:

SIMPLECOV=1 bundle exec rspec

This will generate a folder named coverage in the project root which contains the code coverage report.

Localization

If you would like to see this module in your own language, you can help with its translation at Crowdin:

https://crowdin.com/translate/decidim-comparative-stats

License

This engine is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE.

Credits

This plugin has been developed by Platoniq

Amb el suport de l'Ajuntament de Barcelona - Direcció de Serveis d'Innovació Democràtica

Logo Barcelona

decidim-module-comparative_stats's People

Contributors

davidbeig avatar marinamuca avatar microstudi avatar platoniq-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

decidim-module-comparative_stats's Issues

Auto update of the decidim versions and error handling

When we have an endpoint to a decidim instance that has been upgraded, this module has no way to autoupdate the data as to how to relate to that instance.

For example, in OpenHeritage we are using the comparative stats module to compare all the tennants of this instance. When we first used this module, the Decidim version was the 0.21. After all the upgrades done the module just broke, as it was trying to reach to those instances using the queries for that version and not the current 0.24.

It was not easy to see where this error was coming from since it only showed a 404 page. It could also be interesting to handle this error and show the administrator that the decidim instance might have been moved to a new domain or that it has been upgraded.

Also we were not able to see the different graphics since the different endpoints were not working correctly.

As an admin i would like to have some information about the most common failure points when reaching a decidim instance or a way to autoupdate all the decidim versions saved about all the decidim instances.

Multiple version API handling

api_queries.rb is invariant from the version. It should return different queries depending on the endpoint version

HTTP 500 when adding a new endpoint

Hello.

I'm using Decidim 0.24.3. When I try to add a new endpoint to the module (in my case https://decidim.local/api) I get back an HTTP 500 error with the following logs.

I, [2022-08-31T16:44:16.158785 #12]  INFO -- : Completed 200 OK in 76ms (Views: 65.2ms | ActiveRecord: 4.8ms)
I, [2022-08-31T16:45:32.533146 #12]  INFO -- : Started POST "/admin/comparative_stats/endpoints" for 172.17.0.1 at 2022-08-31 16:45:32 +0000
I, [2022-08-31T16:45:32.583005 #12]  INFO -- : Processing by Decidim::ComparativeStats::Admin::EndpointsController#create as HTML
I, [2022-08-31T16:45:32.583113 #12]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"...", "endpoint"=>{"endpoint"=>"https://decidim.local/api", "active"=>"1"}}
I, [2022-08-31T16:45:32.634624 #12]  INFO -- : Completed 500 Internal Server Error in 51ms (ActiveRecord: 0.0ms)
F, [2022-08-31T16:45:32.636662 #12] FATAL -- :   
F, [2022-08-31T16:45:32.636847 #12] FATAL -- : NoMethodError (undefined method `data' for #<Array:0x00007fe9b25aaa20>):
F, [2022-08-31T16:45:32.636963 #12] FATAL -- :   
F, [2022-08-31T16:45:32.637024 #12] FATAL -- : decidim-comparative_stats (1.1.0) lib/decidim/comparative_stats/api_fetcher.rb:49:in `valid?'
decidim-comparative_stats (1.1.0forms) decidim/comparative_stats/admin/endpoint_form.rb:18:in `valid_api_version'
activesupport (5.2.6) lib/active_support/callbacks.rb:426:in `block in make_lambda'
activesupport (5.2.6) lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
activesupport (5.2.6) lib/active_support/callbacks.rb:606:in `block (2 levels) in default_terminator'
activesupport (5.2.6) lib/active_support/callbacks.rb:605:in `catch'
activesupport (5.2.6) lib/active_support/callbacks.rb:605:in `block in default_terminator'
activesupport (5.2.6) lib/active_support/callbacks.rb:199:in `block in halting'
activesupport (5.2.6) lib/active_support/callbacks.rb:513:in `block in invoke_before'
activesupport (5.2.6) lib/active_support/callbacks.rb:513:in `each'
activesupport (5.2.6) lib/active_support/callbacks.rb:513:in `invoke_before'
activesupport (5.2.6) lib/active_support/callbacks.rb:131:in `run_callbacks'
activesupport (5.2.6) lib/active_support/callbacks.rb:816:in `_run_validate_callbacks'
activemodel (5.2.6) lib/active_model/validations.rb:409:in `run_validations!'
activemodel (5.2.6) lib/active_model/validations.rb:339:in `valid?'
rectify (0.13.0) lib/rectify/form.rb:74:in `valid?'
rectify (0.13.0) lib/rectify/form.rb:83:in `invalid?'
decidim-comparative_stats (1.1.0commands) decidim/comparative_stats/admin/create_endpoint.rb:22:in `call'
rectify (0.13.0) lib/rectify/command.rb:30:in `call'
decidim-comparative_stats (1.1.0controllers) decidim/comparative_stats/admin/endpoints_controller.rb:27:in `create'
actionpack (5.2.6) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (5.2.6) lib/abstract_controller/base.rb:194:in `process_action'
actionpack (5.2.6) lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack (5.2.6) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
activesupport (5.2.6) lib/active_support/callbacks.rb:109:in `block in run_callbacks'
activesupport (5.2.6) lib/active_support/core_ext/time/zones.rb:66:in `use_zone'
/usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-corecontrollers/concerns/decidim/use_organization_time_zone.rb:21:in `use_organization_time_zone'
activesupport (5.2.6) lib/active_support/callbacks.rb:118:in `block in run_callbacks'
i18n (1.10.0) lib/i18n.rb:328:in `with_locale'
/usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-corecontrollers/concerns/decidim/locale_switcher.rb:24:in `switch_locale'
activesupport (5.2.6) lib/active_support/callbacks.rb:118:in `block in run_callbacks'
activesupport (5.2.6) lib/active_support/callbacks.rb:136:in `run_callbacks'
actionpack (5.2.6) lib/abstract_controller/callbacks.rb:41:in `process_action'
actionpack (5.2.6) lib/action_controller/metal/rescue.rb:22:in `process_action'
actionpack (5.2.6) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
activesupport (5.2.6) lib/active_support/notifications.rb:168:in `block in instrument'
activesupport (5.2.6) lib/active_support/notifications/instrumenter.rb:23:in `instrument'
activesupport (5.2.6) lib/active_support/notifications.rb:168:in `instrument'
actionpack (5.2.6) lib/action_controller/metal/instrumentation.rb:32:in `process_action'
actionpack (5.2.6) lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
activerecord (5.2.6) lib/active_record/railties/controller_runtime.rb:24:in `process_action'
actionpack (5.2.6) lib/abstract_controller/base.rb:134:in `process'
actionview (5.2.6) lib/action_view/rendering.rb:32:in `process'
actionpack (5.2.6) lib/action_controller/metal.rb:191:in `dispatch'
actionpack (5.2.6) lib/action_controller/metal.rb:252:in `dispatch'
actionpack (5.2.6) lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
actionpack (5.2.6) lib/action_dispatch/routing/route_set.rb:34:in `serve'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:52:in `block in serve'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:35:in `each'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:35:in `serve'
actionpack (5.2.6) lib/action_dispatch/routing/route_set.rb:840:in `call'
railties (5.2.6) lib/rails/engine.rb:524:in `call'
railties (5.2.6) lib/rails/railtie.rb:190:in `public_send'
railties (5.2.6) lib/rails/railtie.rb:190:in `method_missing'
actionpack (5.2.6) lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
actionpack (5.2.6) lib/action_dispatch/routing/mapper.rb:48:in `serve'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:52:in `block in serve'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:35:in `each'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:35:in `serve'
actionpack (5.2.6) lib/action_dispatch/routing/route_set.rb:840:in `call'
railties (5.2.6) lib/rails/engine.rb:524:in `call'
railties (5.2.6) lib/rails/railtie.rb:190:in `public_send'
railties (5.2.6) lib/rails/railtie.rb:190:in `method_missing'
actionpack (5.2.6) lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
actionpack (5.2.6) lib/action_dispatch/routing/mapper.rb:48:in `serve'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:52:in `block in serve'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:35:in `each'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:35:in `serve'
actionpack (5.2.6) lib/action_dispatch/routing/route_set.rb:840:in `call'
batch-loader (1.5.0) lib/batch_loader/middleware.rb:11:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
rack-attack (6.6.1) lib/rack/attack.rb:127:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/builder.rb:45:in `call'
warden (1.2.9) lib/warden/manager.rb:36:in `block in call'
warden (1.2.9) lib/warden/manager.rb:34:in `catch'
warden (1.2.9) lib/warden/manager.rb:34:in `call'
/usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coremiddleware/decidim/strip_x_forwarded_host.rb:11:in `call'
decidim-decidim_awesome (0.7.2middleware) decidim/decidim_awesome/current_config.rb:33:in `call'
/usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coremiddleware/decidim/current_organization.rb:21:in `call'
rack (2.2.3.1) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.3.1) lib/rack/etag.rb:27:in `call'
rack (2.2.3.1) lib/rack/conditional_get.rb:40:in `call'
rack (2.2.3.1) lib/rack/head.rb:12:in `call'
actionpack (5.2.6) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
spid (0.19.0) lib/spid/rack/slo.rb:17:in `call'
spid (0.19.0) lib/spid/rack/sso.rb:17:in `call'
spid (0.19.0) lib/spid/rack/logout.rb:17:in `call'
spid (0.19.0) lib/spid/rack/login.rb:19:in `call'
spid (0.19.0) lib/spid/rack/metadata.rb:17:in `call'
spid (0.19.0) lib/spid/rack/session.rb:15:in `call'
rack (2.2.3.1) lib/rack/builder.rb:244:in `call'
spid (0.19.0) lib/spid/rack.rb:28:in `call'
rack (2.2.3.1) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.3.1) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/cookies.rb:670:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (5.2.6) lib/active_support/callbacks.rb:98:in `run_callbacks'
actionpack (5.2.6) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (5.2.6) lib/rails/rack/logger.rb:38:in `call_app'
railties (5.2.6) lib/rails/rack/logger.rb:28:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
request_store (1.5.1) lib/request_store/middleware.rb:19:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.2.3.1) lib/rack/method_override.rb:24:in `call'
activesupport (5.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/static.rb:127:in `call'
rack (2.2.3.1) lib/rack/sendfile.rb:110:in `call'
rack-cors (1.1.1) lib/rack/cors.rb:100:in `call'
railties (5.2.6) lib/rails/engine.rb:524:in `call'
puma (5.6.4) lib/puma/configuration.rb:252:in `call'
puma (5.6.4) lib/puma/request.rb:77:in `block in handle_request'
puma (5.6.4) lib/puma/thread_pool.rb:340:in `with_force_shutdown'
puma (5.6.4) lib/puma/request.rb:76:in `handle_request'
puma (5.6.4) lib/puma/server.rb:441:in `process_client'
puma (5.6.4) lib/puma/thread_pool.rb:147:in `block in spawn_thread'
I, [2022-08-31T16:45:32.638743 #12]  INFO -- : Processing by Decidim::ErrorsController#internal_server_error as HTML
I, [2022-08-31T16:45:32.638894 #12]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"...", "endpoint"=>{"endpoint"=>"https://decidim.local/api", "active"=>"1"}}
I, [2022-08-31T16:45:32.656747 #12]  INFO -- :   Rendering /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/decidim/errors/internal_server_error.html.er
b within layouts/decidim/application
I, [2022-08-31T16:45:32.657521 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/decidim/errors/internal_server_error.html.erb
 within layouts/decidim/application (0.7ms)
I, [2022-08-31T16:45:32.665230 #12]  INFO -- :   Rendered /usr/local/bundle/gems/decidim-decidim_awesome-0.7.2views/layouts/decidim/decidim_awesome/_custom_styles.html.erb (0.1ms)
I, [2022-08-31T16:45:32.665772 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_organization_colors.html.erb (0.0ms)
I, [2022-08-31T16:45:32.666376 #12]  INFO -- :   Rendered layouts/decidim/_head_extra.html.erb (0.0ms)
I, [2022-08-31T16:45:32.668252 #12]  INFO -- :   Rendered /usr/local/bundle/gems/decidim-decidim_awesome-0.7.2views/layouts/decidim/decidim_awesome/_awesome_config.html.erb (1.7ms)
I, [2022-08-31T16:45:32.668455 #12]  INFO -- :   Rendered /usr/local/bundle/gems/decidim-decidim_awesome-0.7.2views/v0.24/layouts/decidim/_head.html.erb (5.1ms)
I, [2022-08-31T16:45:32.668527 #12]  INFO -- :   Rendered /usr/local/bundle/gems/decidim-decidim_awesome-0.7.2views/layouts/decidim/_head.html.erb (5.4ms)
I, [2022-08-31T16:45:32.670159 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_impersonation_warning.html.erb (1.2ms)
I, [2022-08-31T16:45:32.671846 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_cookie_warning.html.erb (1.3ms)
I, [2022-08-31T16:45:32.672299 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_omnipresent_banner.html.erb (0.1ms)
I, [2022-08-31T16:45:32.672865 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_timeout_modal.html.erb (0.2ms)
I, [2022-08-31T16:45:32.674717 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_logo.html.erb (0.6ms)
I, [2022-08-31T16:45:32.676097 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_topbar_search.html.erb (1.0ms)
I, [2022-08-31T16:45:32.676593 #12]  INFO -- :   Rendered layouts/decidim/_language_chooser.html.erb (0.1ms)
I, [2022-08-31T16:45:32.694651 #12]  INFO -- :   Rendered layouts/decidim/_user_menu.html.erb (1.8ms)
I, [2022-08-31T16:45:32.696094 #12]  INFO -- :   Rendered layouts/decidim/_user_menu.html.erb (1.2ms)
I, [2022-08-31T16:45:32.696972 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_admin_links.html.erb (0.1ms)
I, [2022-08-31T16:45:32.717161 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_social_media_links.html.erb (0.1ms)
I, [2022-08-31T16:45:32.717288 #12]  INFO -- :   Rendered layouts/decidim/_main_footer.html.erb (10.4ms)
I, [2022-08-31T16:45:32.717666 #12]  INFO -- :   Rendered layouts/decidim/_mini_footer.html.erb (0.2ms)
I, [2022-08-31T16:45:32.717739 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_wrapper.html.erb (44.6ms)
I, [2022-08-31T16:45:32.718571 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/decidim/shared/_confirm_modal.html.erb (0.5ms)
I, [2022-08-31T16:45:32.718927 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/decidim/shared/_authorization_modal.html.erb (0.0ms)
I, [2022-08-31T16:45:32.720288 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_js_configuration.html.erb (1.0ms)
I, [2022-08-31T16:45:32.720375 #12]  INFO -- :   Rendered /usr/local/bundle/bundler/gems/decidim-1c93317cb30e/decidim-coreviews/layouts/decidim/_application.html.erb (62.4ms)
I, [2022-08-31T16:45:32.720941 #12]  INFO -- : Completed 500 Internal Server Error in 82ms (Views: 52.2ms | ActiveRecord: 18.8ms)

Let me know if I can provide more information to help you track down this issue.

Thank you in advance.

Show absolute values in a table bellow pie chart graph

stats
If we could have the legends with all the colors at the top of the page to avoid repeating them in a the graphs it would be great. Like in a sticky div so you still see them when scrolling the page.
Bonus : when one hovers the color in the table one would get the name of the instance.

Embedding or viewing in full screen processes timeline with decidim 0.24-stable does not work

When you try to embed or view in full screen the processes timeline in another page (internal or external to Decidim 0.24-stable) the Graph does not show and a javascript error "Nan value during interpretation of attribute x" is raised on jsapi_compiled_ui_module.js:217:408 . The same Graph is regularly shown in Decidim's admin section, under the Comparative Stats tab. Any other graph is embedded and shown in full screen regularly. If I copy and paste the full HTML+Javascript code to build the Graph in an external html page it works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.