opensourcepolitics / decidim Goto Github PK
View Code? Open in Web Editor NEWThis project forked from decidim/decidim
Fork of Decidim
Home Page: http://www.decidim.org
License: GNU Affero General Public License v3.0
This project forked from decidim/decidim
Fork of Decidim
Home Page: http://www.decidim.org
License: GNU Affero General Public License v3.0
When I report a content (for instance a proposition or a comment) and if I go to the admin backoffice to moderate it and hide it, in the process menu > moderation, I get this error :
ArgumentError (wrong number of arguments (given 1, expected 2)):
/Users/juliesimon/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/bundler/gems/decidim-fb24acdc05e5/decidim-admin/app/commands/decidim/admin/hide_resource.rb:11:in `initialize'
I was on decidim#0.10-stable
with osp-app#0.10-stable
When we seed a decidim organization, as a user, we can use an authorization handler to fill in our birthday, postal code and document number.
1/ How can we configure the type of fields of this authorization handler?
2/ How do we activate it so that its available to the users?
3/ In the admin dashboard, for each component, we can configure who can have access to it. What I don't understand is what sorts of data do you expect in the "options" field ? We can see that it expects a JSON, but what does decidim expect in this JSON ? For instance if you want to pass some postal codes that are authorized ? Or if you want to only let people over 18 to participate?
I can't find any documentation on the subject.
Thanks !
I don't know if it is in this repo or in osp-app
but for instance, when you receive an email from https://osp-dcd-dev.herokuapp.com/ you get "LOL" in the email description
Decidim sort une nouvelle version tous les 2 mois.
Vous pouvez consulter les releases log ici.
Les instances suivantes sont mises à jour :
Pour l'instant nous avons surtout travaillé avec la 0.7 stable. Je pense qu'on a intérêt à passer à la 0.8 et à migrer la modération à priori faite par Ludivine. Faudrait vérifier que les engines Conversation Pol.is et user-export fonctionne bien avec cette nouvelle version.
by @virgile-dev
Les règles de validation se trouvent dans le dans le fichier decidim-core/app/validators/etiquette_validator.rb
.
Voici une explication des différents règles. Il faut qu'on décide desquelles on garde car certaines d'entre elle nous ont causé des problèmes.
Notamment ces deux là
@valentinchaput qu'en penses-tu ?
Ce bout de code sert à vérifier si il y a des majuscules qui se suivent :
def validate_caps(record, attribute, value)
return if value.scan(/[A-Z]/).length < value.length / 4
record.errors.add(attribute, options[:message] || :too_much_caps)
end
Celui la sert à vérifier qu'il n'y a pas de signe de ponctuation qui se suivent :
def validate_marks(record, attribute, value)
return if value.scan(/[!?¡¿]{2,}/).empty?
record.errors.add(attribute, options[:message] || :too_many_marks)
end
Celui ci sert à ne pas avoir de mot de plus de 35 lettres :
def validate_long_words(record, attribute, value)
return if value.scan(/[A-z]{35,}/).empty?
record.errors.add(attribute, options[:message] || :long_words)
end
Ce bout la permet de faire commencer la phrase par une majuscule :
def validate_caps_first(record, attribute, value)
return if value.scan(/^[a-z]{1}/).empty?
record.errors.add(attribute, options[:message] || :must_start_with_caps)
end
Et celui la permet d'avoir des titres d'au moins 15 caractères :
def validate_length(record, attribute, value)
return if value.length > 15
record.errors.add(attribute, options[:message] || :too_short)
end
by @virgile-dev
This issue originates from the decidim main repository.
Regarding that, I was made aware that pre-moderation (or priori moderation) has been implemented in this Decidim repository due to convincing some organizations into using Decidim. Further details regarding the feature proposal and also about the implementation details can be found from the linked Decidim main repository issue. The implemented code is available in the f-moderation branch of this repository.
What I am suggesting is that we should extract this feature into its own gem so that this feature would be more widely available to the decidim users. There is the ideological debate also concerning this issue whether it is good for the Decidim community to make this feature mode widely available. However, I personally believe this may lead into more Decidim users as already proven by the original need of developing this feature.
Action points:
The repository maintainer can decide the threshold on when this would be accepted/rejected.
In case this is accepted, we would need to scratch out a plan on the implementation details and how it would be possible to extract this feature into its own gem.
Screens about the implementation:
https://www.figma.com/file/MX4BYbJ5VKUO1xSraC8DQefk/user-flow-moderation-a-priori
Logical workflow:
On the MEL's platform, you hide "Processus participatifs" + "Plus d'information" on the secondary navbar in order to place custom links :
Angers also uses a custom link to "Budget participatif 2018" but cannot display it before "Participations en cours" + "Plus d'information" as they are not hidden :
Could you make the same change in order to have "Accueil / Budget participatif 2018 / Participations en cours / Plus d'information" (they may have to recreate the last two manually)? And document the issue so Julie will know how to do it next time ;)
On https://participons.debatpublic.fr/ : logo is on the left (ok) but links are not centered (not ok)
On https://cerise.osp.cat/ : logo is in the middle kind of (not ok) but links are centered (ok)
On https://ecrivons.angers.fr/ : logo on the left (ok) and links centered (ok)
As a user I can't leave a comment on the features that have been added by the Decidim team since OSP developed upstream moderation.
Here is the error message I get when I try to leave a comment :
Completed 500 Internal Server Error in 104ms (ActiveRecord: 8.0ms)
NoMethodError (undefined method `comments_upstream_moderation_enabled' for #<#<Class:0x00007fe94d87a620>:0x00007fe94da5c470>)
Maybe it's because upstream moderation has to be set for the new features "debates" and "blogs"
Retirer le champ "Numéro d'identification de l'organisation" lors de l'inscription en tant qu'organisation / collectif
by @virgile-dev
decidim/0.9-separate_proposal
OSP/0.9-separate_proposal
OSP/0.9-separate_proposal
dans 0.9-nouvelle_aquitaine
(Fais moi signe à ce moment là afin que je la merge rapidement)Now using the dummy authorisation handler, with field "document number" that has to end with an X --> should create a specific AH for each client/need ?
No error message appears when trying to managed a user with a name that is already taken
Two buttons "Create" and "Send" that do the same action : what is the need for these two buttons ?
Seen on https://monopinion.belgium.be for instance
When it works on https://deploy-decidim.herokuapp.com (osp-app#0.10 stable sur branche decidim#0.10-stable)
Objectif : rendre la secondary navbar éditable pour pouvoir
So far, nothing about the user appears in the export of a proposal (and for all exports)
Angers needs it since the administrators of the platform sends the xls to the service which in fine contacts the users regarding their proposals.
Should we include user data, in terms of privacy ?
If so, what could we include ? Name, username, email ?
Actuellement, les administrateurs peuvent "répondre" à une proposition en lui accordant un statut "retenue/refusée/en cours d'évaluation". Il faudrait pouvoir ajouter un ou plusieurs statuts supplémentaires (ex d'Angers : recevable, non recevable, en cours d'évaluation, réalisable, non réalisable, soumis au vote...).
decidim:check_locales
ou crowdin.com)/system
et db:seed
soient pris en compte)AuthorizationHandler
dédié aux formats FR (N° Sécu, Carte Identité, Passeport etc...)Documentation
Exemple de connecteur
1 / Les exports des commentaires de Decidim ne mentionnent pas la catégorie de la proposition à laquelle ils sont reliés. Ceci pose problème dans l'analyse du corpus car sans ces catégories les commentaires ne peuvent pas être traités de façon pertinente.
2 / Il faudrait donc que dans les exports des commentaires, il y ait une colone "Category" comme dans les exports des propositions, qui mentionne le nom de la catégorie.
As an admin I can invite another person to be an admin when I create the organisation
Bug sending invitation for admin when creating an organisation
by @virgile-dev
On pompano.osp.cat, when there is a new comment, the mail that is sent to the administrator is not using the french translation for the email_intro
variable :
But we can see in the locale file decidim/decidim_comments/config/locales/fr.yml
that email_intro
is translated in french
events:
comments:
comment_created:
comment:
email_intro: '"%{resource_title}" a été commenté. Vous pouvez lire le commentaire sur cette page:'
email_outro: Vous avez reçu cette notification parce que vous suivez "%{resource_title}" ou son auteur. Vous pouvez annuler ces notifications à partir du lien précédent.
email_subject: Un nouveau commentaire a été publié par %{author_name} dans %{resource_title}
notification_title: Un nouveau commentaire a été publié par <a href="%{author_path}">%{author_name} %{author_nickname}</a> dans <a href="%{resource_path}">%{resource_title}</a>
@ludivine cette issue faisait partie de la liste que tu m'avais confiée mais je n'ai pas eu le temps (à me battre avec le déploiement), penses tu pouvoir t'en occuper pendant tes journées decidim ?
Il faudrait que l'affichage des cards-lists suive les comportements suivants :
Navbar links first version was done based on this #3 for spec
Is left to do :
In the past few days we've had several problems related to the decidim-angers repo that is deployed in angers.opensourcepolitics.eu.
Bugs were related to user sign ups :
Context :
Ludivine has been working on moderations adding the possibility to moderate content a priori for proposals and comments (on all comment objects on the app : meetings, results, etc.). On the Decidim core it is only possible to moderate a posteriori, meaning after a comment / proposal was published and signaled. A priori moderation means that moderators and admins can review what's being published before hand and decide to publish it or not. Here is the spec that was given to Ludivine
Admin and moderator can see content that is not visible to normal users so they can checkout what they moderate.
The problem we had is that when moderating comments, it's not easy for admins and moderators to see the effect of their moderation work as everything was displayed (included content that were moderated and don't display for normal users). So to see the effect you had to log off and load the page as a normal user.
For proposals we just filtered the list of proposals to only show those which where tagged as OK to display.
For comments @ludivinecp told me it might be complicated to filter them to only show those which were tagged as OK to display.
Maybe if you could quickly explain why
We came up with this solution of displaying tags next to comments to specify the status of the comment to help admin and moderators distinguish them. Here is a little mockup we did.
Ludivine suggested that @netbe could try to work on this as the comment system on decidim uses react and he is familiar with that technology.
A strange behaviour occurs with the date configuration in a participatory process.
1/ Months are written in French, but dates are in English (MM/DD/YYYY) -- which we might change eventually for our French-speaking clients.
2/ The main problem: when you add dates on the information page of your participatory process, they change with no reason when you save the page. The dates are good on the front page but the ones in the admin panel are wrong. Even when you try to restore them, they change again when you save your page.
Pictures from a same participatory process:
state
lorsque le modérateur valide ou non une question. La compléxité est de rendre l'attribut obligatoire en fonction de s'il s'agit d'un MOA ou d'un modérateur car la vue est commune (/decidim/participations/admin/participation_answers/edit.html.erb)We have a weird behaviour since we upgraded to 0.9 the /admin/officializations is showing all the users accross all the organizations. For example if signup on org A, the user will also be listed on org B in /admin/officializations. Is the same happening for you ? Thanks in advance.
The decidim core team submitted a patch :
decidim#2912
It'd be great to apply it to our repo.
La question va se poser pour nous de savoir si par défaut on propose :
by @virgile-dev
Quand la modération à priori est activée et qu'un nouveau contenu est envoyé par un utilisateur, les modérateurs et les admin reçoivent un mail comme celui-ci.
On a du mal a distinguer le contenu à modérer. Je propose de changer un peu le layout de l'email pour qu'il ressorte plus. Comme ceci :
When sharing a process/page/proposal on facebook, we get the content of the proposal + the box with a link. On decidim.barcelona, they also manage to show an image which makes the content more attractive. How could we achieve the same result?
Going further, would it be possible to choose/edit those text & image?
https://test-nouvelle-aquitaine.herokuapp.com/processes/corrupti-saepe/f/10/
On this page, if you select the filter "AUTEURS" > "Propositions officielles" and then click on "Affichage: Liste", the filter is reinitialized to "AUTEURS" > "Toutes"
Modération a priori des propositions ne fonctionnent pas sur https://concertations-preprod.nouvelle-aquitaine.fr/processes/second/f/44/
Osp-app : deploy-NA
Decidim : 0.9-Nouvelle-Aquitaine
Il est très probable que de la même manière, la modération a priori des commentaires ne fonctionne pas non plus (à tester)
A titre de comparaison, la modération a priori semble fonctionner sur https://cndp.test.opensourcepolitics.eu/processes/test/f/52/
Osp-app : alt/cndp
Decidim : 0.9-stable
Il faudrait merger la branche f-moderation
. Elle a été mise à jour par rapport aux dernières MAJ des barcelonnais.
Il faut juste vérifier que tout marche correctement avant de la merger.
Ludivine has been working on moderations adding the possibility to moderate content a priori for proposals and comments (on all comment objects on the app : meetings, results, etc.). On the Decidim original gem it is only possible to moderate a posteriori, meaning after a comment / proposal was published and signaled. A priori moderation means that moderators and admins can review what's being published before hand and decide to publish it or not. Here is the spec that was given to Ludivine
Mockups can be checked here : https://www.figma.com/file/MX4BYbJ5VKUO1xSraC8DQefk/user-flow-moderation-a-priori?node-id=0%3A1
Ludivine just merged the branch f-moderation with develop which was upgraded to the last version of decidim 0.9.pre.
The task here is to check if the upgrade went ok:
Migrations to run before deploying new version
rails decidim:install:migrations
rails decidim_admin:install:migrations
rails decidim_system:install:migrations
rails decidim_accountability:install:migrations
rails decidim_participatory_processes:install:migrations
rails decidim:install:migrations
rails decidim_budgets:install:migrations
rails decidim_pages:install:migrations
rails decidim_meetings:install:migrations
rails decidim_comments:install:migrations
rails decidim_surveys:install:migrations
rails decidim_proposals:install:migrations
rails decidim_assemblies:install:migrations
As an admin I can invite a moderator
Now it's not possible to do this
Issue is more defined in decidim/issues/decidim#2398
by @virgile-dev
@Olivier-B-Paris has been trying hard to create an agora with proposals that features philosophy text about democracy. He has stumbled upon a bug which can be described this way:
After some time trying to understand where it was coming from it seems that this bug is occuring only on this organization: https://demo.decidim.opensourcepolitics.eu
I think that it might be related with some old data or migration that didn't work. Indeed, we tried the same thing on a fresh organization: https://agora.decidim.opensourcepolitics.eu/ and it worked !! Proof here : https://agora.decidim.opensourcepolitics.eu/assemblies/ujklm/f/106/proposals/186
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.