platoniq / decidim-catencomu Goto Github PK
View Code? Open in Web Editor NEWDecidim Catalunya en Comú
License: GNU Affero General Public License v3.0
Decidim Catalunya en Comú
License: GNU Affero General Public License v3.0
As an external module: Decidim Deep Process Groups. Improve process groups and make them more independent entities.
Si no estic logejada, en clicar "Àmbits territorials" al menú, o provar d'entrar a : https://testparticipa.catalunyaencomu.cat/processes
em mostra un error:
Què hauria de passar?
M'hauria de mostrar el mapa dels àmbits territorials, per poder accedir a la pàgina d'inici dels diferents àmbits, als quals sí hi puc accedir.
Quan creo un component enquesta dins l'espai de la inscrita d'un àmbit territorial, el bloc calendari de la landing page de l'àmbit territorial dóna server error. No és necessari que l'enquesta tingui definides dates d'inici i final, ni que estigui publicada, pel sol fet d'existir un component enquesta, falla.
Amb el bloc [Ultimes entrades al blog] es mostren les publicacions del blog que hi ha (les més recents).
El problema, és que encara que faci una entrada en el grup de processos Alt Pirineu i Aran, també es mostra als altres grups de processos.
Per tant, el bloc només hauria d'agafar de font els processos que tenen blogs del seu grup de processos.
M'he explicat bé?
https://user-images.githubusercontent.com/40388743/135866684-411a4c36-85af-4c5a-8026-10e3062e93c9.mp4
Crec que pot ser un bug del propi Decidim, però no ho he pogut comprovar, així que de moment ho deixo aquí:
En una finestra incògnito, entro a la pàgina principal de l'àmbit territorial Baix Llobregat:
https://comunitat.catalunyaencomu.cat/processes_groups/4
Veig l'entrada al blog i el calendari, però quan intento entrar a la publicació del blog, em demana que faci login. Pel que entenc, hauria de poder veure la publicació d'aquest component, que forma part d'un procés públic.
No tinc clar sí això és quelcom nostre, del CIVI o de catencomú, però ho deixo aquí per a tenir-ne constància.
(readonly email input field)
Tinc un component trobades amb una trobada i un component debat amb un debat. Ambdós components estan despublicats, però tot i així em mostra tant la trobada com el debat al calendari:
No ho tinc clar, s'ha determinat que així sigui o és un bug?
Decidim::Civicrm::Api::RegionalScope
Decidim::Civicrm::Api::Request
Decidim::Civicrm::Api::User
OmniAuth::Strategies::Civicrm
Decidim::Verifications::Civicrm
A Pàgina d'Inici > Últimes entrades de blog > Editar (icona llapis) intento canviar el Text de l'enllaç i la URL de l'enllaç. El canvi el fa correctament, perquè em guarda els valors que li poso, però no els aplica al component, i em manté l'antic Text i URL de l'enllaç.
Pot ser un problema de cache? (no del navegador, sino del Decidim)
After the oauth registering, terms and conditions are empty!
translation missing: ca.decidim.events.verifications.verify_with_managed_user.email_subject
translation missing: ca.decidim.events.verifications.verify_with_managed_user.email_intro
translation missing: ca.decidim.events.verifications.verify_with_managed_user.email_outro
This is accepted for core:
https://meta.decidim.org/processes/roadmap/f/122/proposals/15785
Inspiration:
https://github.com/decidim/decidim/pull/5274/files
Tasks:
decidim/decidim/develop
decidim/decidim#6916platoniq/temp/0.22-surveys
through Platoniq/decidim#38 (deployed)platoniq/temp/0.23
@microstudiplatoniq/temp/0.23
in catcomu repodependent on #36 for deploying
Warn admins to refresh user group verifications before performing authorized actions.
All users coming from CiViCRM will have the :interested
role by default, so it is no longer necessary to use role in the verification.
Also, the :role attribute in config/initializers/civicrm_verification_workflow.rb
should be removed.
:interested
from User::ROLES
Actualitzar a la versió 0.24 (https://github.com/decidim/decidim/blob/release/0.24-stable/CHANGELOG.md)
In CiViCRM, users have a custom field that stores the regional scope they belong to. We must create a verification that can allow certain actions only to users from a certain "Àmbit Territorial".
User.rb
Address.rb
regional_scope
attribute of type :string
regional_scope
to User.rb
Request#get_contact
to get the regional_scope
Request:
{
"sequential": 1,
"id": <contact_id>,
"return": "id, display_name, roles",
"api.Address.get": {
"return": "custom_23"
}
}
Response:
{
"is_error": 0,
"version": 3,
"count": 1,
"id": <contact_id>,
"values": [
{
"contact_id": <contact_id>,
"display_name": "Test User",
"id": <contact_id>,
"api.Address.get": {
"is_error": 0,
"version": 3,
"count": 1,
"id": "(address_id)",
"values": [
{
"id": "(address_id)",
"custom_23": "AT014"
}
]
}
}
]
}
regional_scopes
and their user-friendly labels:{
:entity => "CustomField",
:action => "Get",
:json => {
"sequential" => 1,
"id" => 23, # CustomField id for AmbitTerritorial
"api.OptionValue.get" => {
"option_group_id" => "$value.option_group_id",
"return" => "value, label"
}
}
}
Decidim::ParticipatoryProcess.create!([
{
decidim_organization_id: 1,
slug: "ungrouped-process-1",
title: I18n.available_locales.map {|l| [l, "Ungrouped Process 1"] }.to_h,
subtitle: I18n.available_locales.map {|l| [l, "Ungrouped Process 1"] }.to_h,
description: I18n.available_locales.map {|l| [l, "Ungrouped Process 1"] }.to_h,
short_description: I18n.available_locales.map {|l| [l, "Ungrouped Process 1"] }.to_h,
published_at: Time.now,
start_date: 1.day.ago,
end_date: 1.month.from_now
},
{
decidim_organization_id: 1,
slug: "ungrouped-process-2",
title: I18n.available_locales.map {|l| [l, "Ungrouped Process 2"] }.to_h,
subtitle: I18n.available_locales.map {|l| [l, "Ungrouped Process 2"] }.to_h,
description: I18n.available_locales.map {|l| [l, "Ungrouped Process 2"] }.to_h,
short_description: I18n.available_locales.map {|l| [l, "Ungrouped Process 2"] }.to_h,
published_at: Time.now,
start_date: 1.month.ago,
end_date: 1.day.ago
}
])
spec/system/participatory_processes_spec.rb
in #74
He fet una mica de tasteig a https://testparticipa.catalunyaencomu.cat/processes_groups/1.
Problemes que he detectat:
Dentro video
options.attribute
for user groupAs an external module: Decidim Deep Process Groups. Improve process groups and make them more independent entities.
- [ ] Process groups can have a submenu Platoniq/decidim-module-alternative_landing#21
Awesome devs:
Check:
Content blocks for process group landing page implemented here https://github.com/Platoniq/decidim-module-alternative_landing/projects/1
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.