Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:25
    ahukkanen opened #7855
  • 14:32
    ahukkanen synchronize #7810
  • 14:20
    ahukkanen synchronize #7810
  • 13:45
    ahukkanen synchronize #7810
  • 13:23
    ahukkanen synchronize #7810
  • 11:49
    ahukkanen edited #7853
  • 11:49
    ahukkanen edited #7853
  • 11:49
    ahukkanen edited #7853
  • 11:49
    ahukkanen opened #7854
  • Apr 17 19:43
    ahukkanen opened #7853
  • Apr 17 18:44
    ahukkanen edited #7852
  • Apr 17 18:44
    ahukkanen edited #7852
  • Apr 17 18:07
    ahukkanen synchronize #7852
  • Apr 17 16:25
    ahukkanen opened #7852
  • Apr 17 12:04
    roxanaopr opened #7851
  • Apr 17 11:50
    decidim-bot synchronize #7850
  • Apr 17 11:50

    decidim-bot on l10n

    New translations en.yml (Finnis… (compare)

  • Apr 17 10:50
    decidim-bot synchronize #7850
  • Apr 17 10:50

    decidim-bot on l10n

    New translations en.yml (Finnis… (compare)

  • Apr 17 10:50
    decidim-bot synchronize #7850
Carlo Beltrame
@carlobeltrame
In https://github.com/decidim/decidim/issues/2709#issuecomment-365563944 Isaac Massot said that there are differences between the two that caused areas to be implemented as separate models. Does anyone know what these differences are? This would help immensely with defining useful and consistent translations.
3 replies
@isaacmg410
@carolromero
camilolopezgarcia452
@camilolopezgarcia452
hello everyone, I need to change a text from the home of my decidim, I did what appears in this tutorial https://docs.decidim.org/en/customize/texts/, add in my en.yml file the lines of code that appear in the link. Does anyone know now what I should do to make the changes to my Decidim apply.
Thanks a lot
camilolopezgarcia452
@camilolopezgarcia452
hello everyone, I need to change a text from the home of my decidim, I did what appears in this tutorial https://docs.decidim.org/en/customize/texts/, add in my en.yml file the lines of code that appear in the link. Does anyone know now what I should do to make the changes to my Decidim apply.
Thanks a lot
andres camilo
@andreslopezg1_gitlab
hello everyone, I need to change a text from the home of my decidim, I did what appears in this tutorial https://docs.decidim.org/en/customize/texts/, add in my en.yml file the lines of code that appear in the link. Does anyone know now what I should do to make the changes to my Decidim apply.
Thanks a lot
10 replies
Pierre
@PierreMesure
Hi, does anyone have a working Decidim platform using etherpad for meeting notes? I’d love to be able to test it if possible.
andres camilo
@andreslopezg1_gitlab
This message was deleted
4 replies
Hector Colina
@e1th0r
Hi, anyone knows how to delete a created organization? I've created an organization for test and now I need delete it. Thanks
2 replies
Dan Blah
@danblah

heya all! big fan of what decidim is up to. i help maintain hypha, a project to manage applications seeking funding and a review/decision process for those applications. im also responsible for an implementation of hypha at reset.tech. im exploring the use of decidim to introduce even more collaborative/participatory processes for applications we receive at reset. i've dropped some quick thoughts into a doc here: https://www.notion.so/reset/Hypha-Decidim-integration-49e8b84e8500442dbb1370768d6db60b.

writing y'all here to get a gut check on if the way im thinking about how they could integrate is a good/bad or decidim'ish thing to do? thanks in advance for any feedback (good, bad, or ugly) <3

3 replies
andres camilo
@andreslopezg1_gitlab
Hi.
I did the process of installing modules "calendar" and "decidim-term_customizer", on the server and everything ran very well, but when I go to the administration panel and tried to enter one of the modules it says "There has been a problem with our server
Please try again later. "
I appreciate your help
1 reply
Altbzh
@Altbzh
Hi
Problem with "BundlerVersionFinder" but different that the one of Jean-Philippe Prost ... : I want to try decidim and try to install first on may imac (Big Sur 11.1). I have installed homebrew, rbenv 1.1.2, ruby 3.0.0, rails 6.1.1 (i have test it with his server), posgres 13.1, decidim 0.23.1 and bundler 2.2.7. when execute "decidim decidim_application" I have :"<NameError: uninitialized constant Gem::BundlerVersionFinder>" and the list of files which need it.
Thank you for any help
1 reply
Alain Lambert
@lambert_alain_twitter
Hi, it's better ! but it remains 2 errors :
1 -)decidim decidim_app.... needs Puma 4.3.5 instead 5.2.0 (An error occurred while installing puma (4.3.5), and Bundler cannot continue. Make sure that gem install puma -v '4.3.5' --source 'https://rubygems.org/' succeeds before bundling.)
2 -) it does not find decidim-dev ... (Could not find gem 'decidim-dev (= 0.23.1)' in any of the gem sources listed in your Gemfile.).
I try to fix these them but I get errors with the gem install.
Anyway thank you and it will be pleasant for others people to write Decim not compatible with ruby 3.0.0 !
Alain Lambert
@lambert_alain_twitter
[résolu ...] : Ruby 2.7.1 + "puma/puma#2342" to fix problème of installing puma 4.3.5"
thank you
Ivana
@iseimandi

Hola! seguimos nnuestro camino con decidim y estamos usando el Controlador de Autorizaciones.

Tome esto como ejemplo: https://github.com/AjuntamentdeBarcelona/decidim-barcelona/blob/master/app/services/census_authorization_handler.rb#L7

Y registré el controlador de autorización en el inicializador de la aplicación, así: https://github.com/AjuntamentdeBarcelona/decidim-barcelona/blob/master/config/initializers/decidim.rb#L7 . (Enlace externo)

Con la siguiente ayuda ->decidim/decidim#1817 (Enlace externo)

El problema es que al ingresar a autorizaciones no encuentro como traducir las claves name y explanation en las mismas dice -> "translation missing: es.decidim.authorization_handlers.census_authorization_handler.name"

Encontré que en 2018 se había reportado y solucionado este fix -> decidim/decidim@fb12c90 (Enlace externo)

Versión Decidim instalada: 0.22

Alguién ha tenido este problema? podrán darme algunas ideas sobre como poder resolverlo?

Desde ya muchas gracias

2 replies
hfroger
@froger

Hello, I need some help :)

I have big troubles configuring assemblies' visibilities. I do not understand what toggle does what exactly, and I can not find user doc about configuring permissions for assemblies, assemblies creations, proposal amendments etc.
So I've been digging in the spec cases: https://github.com/decidim/decidim/blob/develop/decidim-proposals/spec/system/private_space_proposal_spec.rb and it gets quite confusing.

What I do want, is configuring assemblies where :

  • no logged in user can not have any access
  • logged users can see assemblies, but can not create new ones.
  • logged users can see assembly's proposals and amendments, but can not amend them
  • logged users invited to the assembly can amend assembly's proposals.

From what I do understand, there are three toggles: transparent, private assemblies, and private user spaces. Is there any doc around this, or do you have any directions to help me?

Thanks a lot!

dzmocracy
@dzmocracy
Hi,
I need to put some right-to-left text in pages, the language is supported but text is rendered left to right. Any ideas on how to display the text right-to-left please ?
Thanks!
1 reply
Ivana
@iseimandi
Hola a Todos! seguimos intentando con el controlador de autorizaciones, alguién que haya implementado "Autorizaciones " podría ayudarme con una explicación de los pasos que se deberián realizar? Hasta el momento tenemos activada la autorización contra Padrón, al hacer click podemos completar el formulario con los datos de (Tipo_doc, numero_doc, gender, fecha_de_nacimiento) al hacer enviar obviamnete da un error . Y aquí el problema, no sé como podría seguir (testear) el código de "census_authorization_handler.rb". La validación de los datos ingresados tengo que chequearlos contra un Web services REST ...tampoco sabemos bien si estamos convocando de manera correcta al WS.
Si pudieran ayudarme con algunasideas, lo agradeceré! ya que estoy un poco perdida con las autorizaciones. Muchas Gracias!
Ali G
@ponentesincausa

hola @iseimandi en CDMX implementamos una que también usa un servicio REST. es prácticamente un copypaste del ejemplo que viene en la documentación https://github.com/ponentesincausa/PlazaPublicaCDMX/blob/master/app/services/sms_gateway_service.rb

tienes un ejemplo de tu código?

1 reply
Ivana
@iseimandi
Hola @ponentesincausa ! Muchas Gracias por la ayuda!! Aquí paso el código que tenemos "census_authorization_handler.rb". Instalamos el módulo -> "decidim-verifications" , queremos autenticar contra padrón (es un WS REST que tenemos). Mostramos un formulario para que se ingrese tipo_documento, numero_documento, sexo, fecha de nacimiento. Luego al enviar el formulario, poder validar usando el WS de personas si los datos existen. De existir autenticar a la persona guardando la información en la tabla "decidim_authorizations". Esa esla idea de lo que queremos lograr, pero estamos un poco complicados con el funcionamiento. Agradeceré cualquier ayuda que puedan darnos.
# frozen_string_literal: true
# verifica que la persona exista contra WS de personas
require "digest/md5"
require 'uri'
require 'net/http'

# This class performs a check against the official census database in order
# to verify the citizen's residence.
class CensusAuthorizationHandler < Decidim::AuthorizationHandler

  include ActionView::Helpers::SanitizeHelper
  include Virtus::Multiparams

  AVAILABLE_GENDERS = %w(man woman)

  attribute :document_number, Integer
  attribute :document_type, Symbol
  attribute :date_of_birth, Date
  attribute :gender, String

  validates :date_of_birth, presence: true
  validates :document_type, inclusion: { in: %i(dni lc le ci pas otr) }, presence: true
  validates :document_number, format: { with: /(\d{8})/ }, presence: true


  validate :document_type_valid
  validate :over_16

  # If you need to store any of the defined attributes in the authorization you
  # can do it here.
  # You must return a Hash that will be serialized to the authorization when
  # it's created, and available though authorization.metadata

  def metadata
    super.merge(
      date_of_birth: date_of_birth&.strftime("%Y-%m-%d"),
      #postal_code: postal_code,
      scope: scope.name["ca"],
      extras: {
        gender: gender
        document_number: document_number}
    )
  end

  def scope
    Decidim::Scope.find(scope_id)
  end

  def census_document_types
    %i(dni lc le ci pas otr).map do |type|
      [I18n.t(type, scope: "decidim.census_authorization_handler.document_types"), type]
    end
  end

  def unique_id
    Digest::MD5.hexdigest(
      "#{document_number&.upcase}-#{Rails.application.secrets.secret_key_base}"
    )
  end

  private

  def sanitized_document_type
    case document_type&.to_sym
    when :dni
      "1"
    when :lc
      "2"
    when :le
      "3"
    when :ci
      "4"
    when :pas
      "5"
    when :otr
      "6"
    end
  end

  def sanitized_date_of_birth
    @sanitized_date_of_birth ||= date_of_birth&.strftime("%Y%m%d")
  end

  def document_type_valid
    return nil if response.blank?

    errors.add(:document_number, I18n.t("census_authorization_handler.invalid_document")) unless response.xpath("//codiRetorn").text == "01"
  end

  def verification
    return nil if document_number.blank? ||
                  document_type.blank? ||
                  date_of_birth.blank?

    return @verification if defined?(@verification)

    verification ||= Faraday.post Rails.application.secrets.census_url do |request|
      request.headers["Content-Type"] = "text/x  request.body = request_ws
    end

    @verification ||= Nokogiri::XML(verification.body).remove_namespaces!
  end

  def request_ws
    @request_body || =
       url_form_data = URI.encode_www_form(
                       "docNumero" => document_number,
                       "sexo" => gender)
       url = URI.parse(ENV["WS_PERSONAS_URL"] + url_form_data)
       req = Net::HTTP::Get.new(url)
       req["Accept"] = "*/*"
       http = Net::HTTP.new(url.hostname, url.port)
       http.use_ssl = true
       res = http.request(req)
   end

  def over_16
    errors.add(:date_of_birth, I18n.t("census_authorization_handler.age_under", min_age: 16)) unless age && age >= 16
  end

  def age
    return nil if date_of_birth.blank?

    now = Date.current
    extra_year = (now.month > date_of_birth.month) || (
      now.month == date_of_birth.month && now.day
Masayoshi Takahashi
@takahashim
Hi! I've been reading and translating docs.decidim.org, but some pages don't seem to exist at GitHub https://github.com/decidim/documentation (e.g. https://docs.decidim.org/en/develop/guide_architecture/ ).
Where can I find the source files of the current site?
3 replies
iak92
@iak92

I got an internal erroro 500 with the following log

F, [2021-02-16T13:28:08.961417 #43625] FATAL -- : [d27f665f-8851-4270-97ca-d0c0c97c5afb]
F, [2021-02-16T13:28:08.961486 #43625] FATAL -- : [d27f665f-8851-4270-97ca-d0c0c97c5afb] ActionView::Template::Error (PG::UndefinedTable: ERROR:  relation "decidim_consultations_questions" does not exist
LINE 8:                WHERE a.attrelid = '"decidim_consultations_qu...
                                          ^
:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
                     c.collname, col_description(a.attrelid, a.attnum) AS comment
                FROM pg_attribute a
                LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
                LEFT JOIN pg_type t ON a.atttypid = t.oid
                LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
               WHERE a.attrelid = '"decidim_consultations_questions"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum
):
F, [2021-02-16T13:28:08.961664 #43625] FATAL -- : [d27f665f-8851-4270-97ca-d0c0c97c5afb]      9:
[d27f665f-8851-4270-97ca-d0c0c97c5afb]     10: <% Decidim::ContentBlock.published.for_scope(:homepage, organization: current_organization).each do |content_block| %>
[d27f665f-8851-4270-97ca-d0c0c97c5afb]     11:   <% next unless content_block.manifest %>
[d27f665f-8851-4270-97ca-d0c0c97c5afb]     12:   <%= cell content_block.manifest.cell, content_block %>
[d27f665f-8851-4270-97ca-d0c0c97c5afb]     13: <% end %>
F, [2021-02-16T13:28:08.961712 #43625] FATAL -- : [d27f665f-8851-4270-97ca-d0c0c97c5afb]
F, [2021-02-16T13:28:08.961802 #43625] FATAL -- : [d27f665f-8851-4270-97ca-d0c0c97c5afb] activerecord (5.2.4.4) lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `async_exec'

apperantly a database is missing, how can i add it?

it pops up on my organization page
Oliver Azevedo Barnes
@oliverbarnes
@takahashim I haven’t done it myself yet, but it looks like the build instructions in the decidim/documentation README will give you that
1 reply
iak92
@iak92
I got it had to run rake db:migrate
Oliver Azevedo Barnes
@oliverbarnes
@iak92 👍 glad you got it working
iak92
@iak92
Is there a way to invite users to an organization? I only can create/invite new admins
5 replies
Patrick Connolly
@patcon
hey all, anyone have a rough sense of whether it's ok to run our own instance at a subdomain like decidim.example.com?
or generally use "decidim" in the url?
gillesdeloustal
@gillesdeloustal
Running decidim 0.23 with french anabled, I get an abort when I click on an amendment in order to see it. It however run properly when I switch to english.
iak92
@iak92
Is there documantation about system requirements, and how the systems scales with number of useres?
1 reply
Ivana
@iseimandi

Hi, has someone had the following error -> 500 error while adding auctions. The steps performed are:
I add in the file -> config / initializers / decidim.rb
Decidim :: Verifications.register_workflow (: census_authorization_handler) do | auth |
auth.form = "CensusAuthorizationHandler"
end
Thus I obtain the authorization of the authorization from the Administration.

Then I add the form in app / views / census_authorization / _form.html.erb

And finally -> app / services / census_authorization_handler.rb
The error I get when doing Submit on the form -> is error 500, the error log does not give any clue of the reason for the error.
Regardless of what I write to the census_authorization_handler.rb file, I always get the same error.

Decidim Version: 0.22

If you can help me with any ideas of what the problem might be, I will greatly appreciate it !!

1 reply
fatmakocabas
@fatmakocabas
Hi I wanna install decidim on ruby v.3.0.0
is it possible
Oliver Azevedo Barnes
@oliverbarnes
Hi @fatmakocabas, not yet - it depends on on-going work to update Decidim to Rails 6, which supports Ruby 3. There's no offical ETA, but the update is in its final stages. It'll be announced here once it's ready
Pierre
@PierreMesure
image.png
2 replies
Not sure where to post this but maybe here is the right place: Decidim now supports formatting for the template but MetaDecidim still has an unformatted template in the module where we can suggest new features.
Could an admin spend a few minutes to fix it?
Gaston Arbeletche
@Arbeletche_gitlab

Hello, have you ever had the need to make a notification after login, like this one from ActiveSupport::Notifications.subscribe "decidim.user.omniauth_registration"?

I am authenticating with open_id, but I have different user permissions that I need to set, and the permissions in the external platform can vary so I need to be able to control it in the login as well.

Does anyone know if there is something like "decidim.user.omniauth_registration" but for the session login?

3 replies
daouda40
@daouda40
Hello, I can't find how to activate the impersonation feature, there is no button "create a new participant" in Impersonations.
2 replies
patschmi
@patschmi
Hello. Trying to use function "initiatives" but seems that the basis version of Decidim is not fitted with this gem ... how is it possible to implement it please ? thank you by advance.
1 reply
web ecologistas
@ecologistas_gitlab
Hello everybody and thanks for your support. We are having an error starting the application: participa.ecologistasenaccion.org
web ecologistas
@ecologistas_gitlab
Error: The application encountered the following error: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/decidimenv/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/openssl.so) - /home/decidimenv/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/openssl.so (LoadError)
1 reply
gillesdeloustal
@gillesdeloustal
Hi
gillesdeloustal
@gillesdeloustal
Hi. We passed the test period and are about starting in prod, but we can't get rid of an email problem after installing decidim on linux with the automated script given here https://github.com/Platoniq/decidim-install. After we created our organization, by keying "grep ERROR ~/decidim-app/log/production.log -A3 -B3", we get the error "----==_mimepart_605c9d5ae8958_77e1fe6e43421--
E, [2021-03-25T15:25:33.735724 #1918
(External link)] ERROR -- : [ActiveJob] [ActionMailer::DeliveryJob] [2dbeae08-3fe3-444e-8b2f-468b2516130e] Error performing ActionMailer::DeliveryJob (Job ID: 2dbeae08-3fe3-444e-8b2f-468b2516130e) from Async(mailers) in 3772.25ms: Net::SMTPAuthenticationError (535-5.7.8 Username and Password not accepted." I'm pretty sure of our system admin's username and password typo, we choosed smtp.gmail.com and activated the checkbox "Allow less secure apps". Thanks for helping
1 reply
hfroger
@froger

Hello, I've notice something that looks like a bug:

  1. I go to https://try.decidim.org/initiatives/i-2?locale=en
  2. I log as an administrator
  3. I comment the initiative page
    Error: I get an error 500.

I could reproduce on my installation, using release/0.24-stable like metadecidim, Admins can't comment anything on the initiative page and I get the following logs:

decidim-comments/app/controllers/decidim/comments/comments_controller.rb:47:in `create'
FATAL -- : vendor/bundle/ruby/2.7.0/gems/activemodel-5.2.5/lib/active_model/attribute_methods.rb:430:in `method_missing', components=):
Did you mean?  components

NoMethodError (undefined method `component' for #<Decidim::Initiative:0x0000558ecf906038>

Any idea where it does come from? Should I fill a bug report on meta-decidim?

gillesdeloustal
@gillesdeloustal
Thanks Andreslucena for your answer. I installed decidim on a lubuntu 18.04 i386 system, but none of the dependencies were missing. I'll re-install decidim soon on a rasberry with ubuntu 20.04 and see what happen. The error message happens at the time I create the organization.
Thanks also froger for your answer. I used port 587 and follow your advice. As soon as I get rid of the error, I'll re-define the organization with sendgrid instead of gmail.