!vVcsnwMNPHhwWsmXST:matrix.org

📣 Support Devs

244 Members
technical staff here!9 Servers

Load older messages


SenderMessageTime
6 Sep 2024
@hfroger:matrix.orgHadrien FrogerHi, the code is there: https://github.com/mautic/Community-Portal/blob/main/config/initializers/auth0.rb (with the install of omniauth_openid_connect) This code will add a way to add a OAuth2 custom connection to any OAuth2 compatible provider. Any services that provide a OAuth2 OpenId Connect will works with Decidim. Then it's up to the service if the configuration is easy/cheap. 06:10:58
@hfroger:matrix.orgHadrien Froger *

Hi, the code is there: https://github.com/mautic/Community-Portal/blob/main/config/initializers/auth0.rb
(with the install of omniauth_openid_connect)

This code will add a way to add a OAuth2 custom connection to any OAuth2 compatible provider in the /system admin interface.

Any services that provide a OAuth2 OpenId Connect will works with Decidim. Then it's up to the service if the configuration is easy/cheap.

06:11:20
@hfroger:matrix.orgHadrien FrogerFor some documentation to understand OAuth, ory.sh made a great work. Check it out here: https://www.ory.sh/docs/oauth2-oidc/overview/oidc-concepts it's a technical doc, though06:14:13
7 Sep 2024
@viktorsmar:matrix.orgViktor Smári

I am following the Documentation and using ENV vars for the QUEUE_ADAPTER.
The rails application can read this variable, but still the

In my .env file:
QUEUE_ADAPTER=sidekiq

IRB:
Rails.application.config.active_job.queue_adapter

{:custom_serializers=>[],
:log_query_tags_around_perform=>true,
:retry_jitter=>0.15,
:queue_adapter=>:async}

irb(main):002:0> ENV['QUEUE_ADAPTER']
=> "sidekiq"

How can I confirm that the QUEUE_ADAPTER variable actually works?

17:22:02
@viktorsmar:matrix.orgViktor Smári *

I am following the Documentation and trying to use ENV vars for the QUEUE_ADAPTER.

In my .env file:
QUEUE_ADAPTER=sidekiq

IRB:
Rails.application.config.active\_job.queue\_adapter

{:custom_serializers=>[],
:log_query_tags_around_perform=>true,
:retry_jitter=>0.15,
:queue_adapter=>:async}

irb(main):002:0> ENV['QUEUE_ADAPTER']
=> "sidekiq"

How can I confirm that the QUEUE_ADAPTER variable actually works?

17:22:41
@viktorsmar:matrix.orgViktor Smári *

I am following the Documentation and trying to use ENV vars for the QUEUE_ADAPTER.

In my .env file:
QUEUE_ADAPTER=sidekiq

IRB:
Rails.application.config.active_job.queue_adapter

{:custom_serializers=>[],
:log_query_tags_around_perform=>true,
:retry_jitter=>0.15,
:queue_adapter=>:async}

irb(main):002:0> ENV\['QUEUE\_ADAPTER'\]
=> "sidekiq"

How can I confirm that the QUEUE_ADAPTER variable actually works?

17:23:22
@viktorsmar:matrix.orgViktor Smári In the end I had to manually go into the config/environments/production.rb and change the queue_adapter manually there.
Does the ENV var for QUEUE_ADAPTER not work?
Is there something extra I need to do with the initializers/decidim.rb or something?
17:25:29
8 Sep 2024
@viktorsmar:matrix.orgViktor Smáriimage.png
Download image.png
13:38:19
@viktorsmar:matrix.orgViktor SmáriNow suddenly getting this error on localhost when trying to sign up into a new Organization. Probably because a terms_of_service page is missing? I can't create it if I can't log in?13:39:40
@viktorsmar:matrix.orgViktor Smári * Now suddenly getting this error on localhost when trying to sign up into a new Organization. Probably because a terms_of_service page is missing? Maybe it should skip this query if the TOS page does not exist? Since it is optional to create it 13:43:07
@telegram_8141311:t2bot.ioAndrés Pereira de LucenaThat's a bug for sure. Which steps have you done? I understand that's just: 1. Create a new organization 2. Go to the create your account page Right?14:22:31
@viktorsmar:matrix.orgViktor SmáriYes, then if another user tries to create a new account (before step 2) - before the TOS has been accepted.14:44:07
@viktorsmar:matrix.orgViktor SmáriSo it is an edge case, but can happen if the user that creates the Organization does not immediately log in do accepte the page.14:44:38
@viktorsmar:matrix.orgViktor Smári * Yes, then if another user tries to create a new account (before step 2) - before the TOS has been accepted. 14:44:54
@scicent:matrix.orgRichard Leonov joined the room.18:57:39
9 Sep 2024
@scicent:matrix.orgRichard Leonov

I'm creating an app on my MacOS and everything seems okay, it went up to successful migration, and then seeding failed:

Creating seeds for decidim-core...
rails aborted!
ActiveModel::UnknownAttributeError: unknown attribute 'admin_terms_accepted_at' for Decidim::User. (ActiveModel::UnknownAttributeError)

      raise UnknownAttributeError.new(self, k.to_s)
      ^^^^^

/Users/arkmichael/decidim/direct_democracy/db/seeds.rb:9:in <main>' /Users/arkmichael/decidim/direct_democracy/bin/rails:5:in <top (required)>'
/Users/arkmichael/decidim/direct_democracy/bin/spring:10:in block in <top (required)>' /Users/arkmichael/decidim/direct_democracy/bin/spring:7:in <top (required)>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)

02:34:11
@scicent:matrix.orgRichard Leonov
In reply to @scicent:matrix.org

I'm creating an app on my MacOS and everything seems okay, it went up to successful migration, and then seeding failed:

Creating seeds for decidim-core...
rails aborted!
ActiveModel::UnknownAttributeError: unknown attribute 'admin_terms_accepted_at' for Decidim::User. (ActiveModel::UnknownAttributeError)

      raise UnknownAttributeError.new(self, k.to_s)
      ^^^^^

/Users/arkmichael/decidim/direct_democracy/db/seeds.rb:9:in <main>' /Users/arkmichael/decidim/direct_democracy/bin/rails:5:in <top (required)>'
/Users/arkmichael/decidim/direct_democracy/bin/spring:10:in block in <top (required)>' /Users/arkmichael/decidim/direct_democracy/bin/spring:7:in <top (required)>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)

Issue resolved. I did the installation from the beginning.
18:36:10
@scicent:matrix.orgRichard Leonov IT'S ALIVE!!!!!! IT'S ALIVE!19:08:45
10 Sep 2024
@sdelcroix:matrix.orgsdelcroixHi folks :) Could someone help me with this ?16:00:27
@sdelcroix:matrix.orgsdelcroix

I've just upgraded from 0.26.10 to 0.27.8 (step by step). The process was rather fine, but I had some errors on two post-install tasks.
Moderated content can now be removed from search index :

Found 10 hidden resources that needs to be handled
Could not process moderation id 2 : Decidim::Comments::Comment#organization delegated to commentable.organization, but commentable is nil: #<Decidim::Comments::Comment id: 18, decidim_commentable_type: "Decidim::Blogs::Post", decidim_commentable_id: 7, decidim_author_id: 6, created_at: "2022-02-07 15:21:09.034573000 +0000", updated_at: "2022-10-28 09:19:34.820281000 +0000", depth: 0, alignment: 0, decidim_user_group_id: nil, decidim_root_commentable_type: "Decidim::Blogs::Post", decidim_root_commentable_id: 7, decidim_author_type: "Decidim::UserBaseEntity", body: {"fr"=>"https://www.xxxxxxx.fr/\n"}, comments_count: 0, decidim_participatory_space_type: nil, decidim_participatory_space_id: nil, deleted_at: nil>

And
New Comments statistics structure :

bin/rails decidim_comments:update_participatory_process_in_comments

Updating comments...
0 comments updated.
5 errors found. Check the file 'log/update_participatory_process_in_comments.log' for more information.

The log contains the following errors :

Error updating comment #15: Decidim::Comments::Comment#organization delegated to commentable.organization, but commentable is nil: #<Decidim::Comments::Comment id: 15, decidim_commentable_type: "Decidim::Blogs::Post", decidim_commentable_id: 7, decidim_author_id: 7, created_at: "2022-02-07 15:17:44.426751000 +0000", updated_at: "2022-02-07 15:17:44.426751000 +0000", depth: 0, alignment: 0, decidim_user_group_id: nil, decidim_root_commentable_type: "Decidim::Blogs::Post", decidim_root_commentable_id: 7, decidim_author_type: "Decidim::UserBaseEntity", body: {"fr"=>"Premier commentaire"}, comments_count: 0, decidim_participatory_space_type: nil, decidim_participatory_space_id: nil, deleted_at: nil>
Error updating comment #16: Decidim::Comments::Comment#organization delegated to commentable.organization, but commentable is nil: #<Decidim::Comments::Comment id: 16, decidim_commentable_type: "Decidim::Blogs::Post", decidim_commentable_id: 7, decidim_author_id: 6, created_at: "2022-02-07 15:19:30.083885000 +0000", updated_at: "2022-02-07 15:19:30.083885000 +0000", depth: 0, alignment: 0, decidim_user_group_id: nil, decidim_root_commentable_type: "Decidim::Blogs::Post", decidim_root_commentable_id: 7, decidim_author_type: "Decidim::UserBaseEntity", body: {"fr"=>"Trop bien ça !\n"}, comments_count: 0, decidim_participatory_space_type: nil, decidim_participatory_space_id: nil, deleted_at: nil>
Error updating comment #17: Decidim::Comments::Comment#organization delegated to commentable.organization, but commentable is nil: #<Decidim::Comments::Comment id: 17, decidim_commentable_type: "Decidim::Blogs::Post", decidim_commentable_id: 7, decidim_author_id: 7, created_at: "2022-02-07 15:20:22.089469000 +0000", updated_at: "2022-02-07 15:20:22.089469000 +0000", depth: 0, alignment: 0, decidim_user_group_id: nil, decidim_root_commentable_type: "Decidim::Blogs::Post", decidim_root_commentable_id: 7, decidim_author_type: "Decidim::UserBaseEntity", body: {"fr"=>"Normalement ça se rafraichit tout seul si tu touches à rien"}, comments_count: 0, decidim_participatory_space_type: nil, decidim_participatory_space_id: nil, deleted_at: nil>
Error updating comment #18: Decidim::Comments::Comment#organization delegated to commentable.organization, but commentable is nil: #<Decidim::Comments::Comment id: 18, decidim_commentable_type: "Decidim::Blogs::Post", decidim_commentable_id: 7, decidim_author_id: 6, created_at: "2022-02-07 15:21:09.034573000 +0000", updated_at: "2022-10-28 09:19:34.820281000 +0000", depth: 0, alignment: 0, decidim_user_group_id: nil, decidim_root_commentable_type: "Decidim::Blogs::Post", decidim_root_commentable_id: 7, decidim_author_type: "Decidim::UserBaseEntity", body: {"fr"=>"https://www.xxxxxxxx.fr/\n"}, comments_count: 0, decidim_participatory_space_type: nil, decidim_participatory_space_id: nil, deleted_at: nil>
Error updating comment #19: Decidim::Comments::Comment#organization delegated to commentable.organization, but commentable is nil: #<Decidim::Comments::Comment id: 19, decidim_commentable_type: "Decidim::Meetings::Meeting", decidim_commentable_id: 13, decidim_author_id: 7, created_at: "2022-02-07 15:46:48.268255000 +0000", updated_at: "2022-02-07 15:46:48.268255000 +0000", depth: 0, alignment: 0, decidim_user_group_id: nil, decidim_root_commentable_type: "Decidim::Meetings::Meeting", decidim_root_commentable_id: 13, decidim_author_type: "Decidim::UserBaseEntity", body: {"fr"=>"Premier commentaire sur l'atelier 3"}, comments_count: 0, decidim_participatory_space_type: nil, decidim_participatory_space_id: nil, deleted_at: nil>
16:01:46
@sdelcroix:matrix.orgsdelcroixI guess I have to delete those orphan comments but I need help to do it properly ;)16:02:41
@telegram_500738289:t2bot.ioAlexandru Lupu
In reply to @sdelcroix:matrix.org
I guess I have to delete those orphan comments but I need help to do it properly ;)
I would like to see in more detail. Gimme an hour
16:03:34
@sdelcroix:matrix.orgsdelcroixOK, thanks in advance ;)16:14:13
@telegram_500738289:t2bot.ioAlexandru LupuThere is no issue, and you can go further without any issues17:05:23
@telegram_500738289:t2bot.ioAlexandru Lupu
In reply to @sdelcroix:matrix.org
OK, thanks in advance ;)
It is not a real error. It seems that when trying to fix the comments, so that we can set the space, there are 4-5 entries (comments) that belong to a Post that is missing ( Post id 7 )
17:01:24
@sdelcroix:matrix.orgsdelcroixYep17:16:43
@sdelcroix:matrix.orgsdelcroixI don't need to "clean" them ?17:16:55
@sdelcroix:matrix.orgsdelcroixI don't know if the tasks have processed the "good" comments17:17:52
@sdelcroix:matrix.orgsdelcroixI wanted to clean the orphan ones and rerun the upgrade tasks17:18:31
@sdelcroix:matrix.orgsdelcroix * I wanted to deleted the orphan ones and rerun the upgrade tasks with clean records17:23:58

Show newer messages


Back to Room ListRoom Version: 6