Giter VIP home page Giter VIP logo

citizenlabdotco / citizenlab Goto Github PK

View Code? Open in Web Editor NEW
203.0 14.0 33.0 850.52 MB

CitizenLab is a digital democracy platform that facilitates community participation and co-creation. Participants can post ideas, contribute to discussions, or choose to vote and prioritize community projects.

License: Other

Shell 0.06% Dockerfile 0.02% Ruby 37.74% HTML 0.38% JavaScript 0.38% CSS 7.78% TypeScript 52.25% Makefile 0.04% PLpgSQL 1.35%
civic-tech civictech citizen-participation government govtech community participation stakeholder-engagement citizenlab democracy

citizenlab's Introduction

CircleCI

Warning

This repository contains the commercial edition of CitizenLab, backed by proprietary code . The license does not permit hosting it yourself. The code is open for the sake of transparency and allowing contributions.

Interested in the Open-Source version of CitizenLab, which you can host yourself? Check out citizenlab-oss or head to our Development Portal

To use the Commercial Edition or get professional support, consider becoming a CitizenLab client

CitizenLab

CitizenLab

CitizenLab is a digital democracy platform that facilitates community participation and co-creation. Participants can post ideas, contribute to discussion, or choose to vote and prioritize community projects. Whether it’s through a poll, a participatory budget, idea collection or a survey, the CitizenLab platform offers multiple ways to make your community participate, and manage their inputs effectively.

Getting started

Check out the Development Portal to get started:

For more information about CitizenLab, consult our website.

Contributing

We welcome contributions through GitHub pull request, discussions or issues. In order to get your Pull Request merged, we require you to sign our Contributor License Agreement.

You can also contribute translations. The platform is currently available in +10 languages.

License

Source code in this repository is covered by the "CitizenLab Commercial License v2". The license does not permit self-hosting or production usage, outside of development and testing purposes.

citizenlab's People

Contributors

a-hariti avatar adessy avatar alexander-cit avatar amanda-anderson avatar archived-m avatar benfraserdesign avatar brentguf avatar chanakasan avatar cl-dev-bot avatar dependabot[bot] avatar draggh102 avatar edwinkato avatar franciclo avatar geoffreydhuyvetters avatar guilherme-andrade avatar ivakop avatar jamesspeake avatar jinjagit avatar koendehondt avatar kogre avatar lilkraftwerk avatar luucvanderzee avatar ntraum avatar pensarfeo avatar sarabcl avatar sebastienhoorens avatar sergei-kudryavtsev avatar shoorens avatar vanmarkic avatar wolkvolk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

citizenlab's Issues

Internal Server Error

Hello,

I'm trying to setup environment and deploy application like it was described here: https://developers.citizenlab.co/start-deployment on Ubuntu Server 22.04. All steps are going just fine, I get application up and running, can perform customization, etc. and all changes are being saved. Then after a machine reboot, every time when I try to save any change done using Admin Panel I receive a 500 Internal Server Error. App is available, I can navigate to the page and preview every content but not save anything.

All the docker componenets are up and running. If I repeat two steps form documentation, first executing docker-compose stop and then:

$ docker-compose run --rm web rake db:setup
$ docker-compose up -d

With .env option DISABLE_DATABASE_ENVIRONMENT_CHECK=1 a DB is being recreated, all content is being lost but again I can perform any required change in Admin Panel up to the next reboot.

The only action performed after machine reboot to start the app is docker-compose up -d. Is there anything missing in what I do, is it a bug or is it by design?

Registration pop up does not appear

Hi, log in pop up works fine but registration dose not display. The screen darkens as it does when you click "log in", but no fields or form visible.
During website homepage loading console list 1 error referring to route:

  1. 404 https://wspoldecyduje.click/web_api/v1/users/me

When I click on "register" console lists 2 errors:

  1. 404 https://wspoldecyduje.click/web_api/v1/users/custom_fields/schema
  2. Uncaught TypeError: Cannot read properties of undefined (reading 'pl-PL')

Do you know what cause this?
Thanks

Demande d'informations

Bonjour, nous sommes une entreprise désireux d'utiliser la version opensource dans notre SI et nous aimerions savoir quels sont les contraintes d'exploitation de cette solution ?
Pouvons nous librement la modifier et l'exploiter à notre guise ?
Et aussi avez vous prévu quelque chose pour l'intégration SSO dans le code ?

Je vous remercie pour votre retour

Cannot delete a Project

When trying to delete a project and error occurs. Steps to reproduce:

1. Deploy the application as described in the deployment guide (having it with default settings).

2. Run the application as described in the deployment guide.

3. Navigate to Admin -> Settings -> Project and add a new project with Published status.

4. Deleting a project leads to an error like here:

Step4

An error is related to a Foreign Key settings in DB. Steps to reproduce:

1. Login to DB.

2. Find an ID of a project to delete.

3. Execute Delete for example: DELETE FROM "public"."projects" WHERE "id"='fa133ac8-71c1-4360-ae37-3730eae4c220';

4. Have foreign key constraint violation as below:

Step5

Executing ALTER TABLE projects_allowed_input_topics DROP CONSTRAINT fk_rails_91bda1f137 solves the deletion error on DB level but event without a foreign key constraint deleting from Web Interface does not work.

Error during database initialization

Hello,
I have an error during database initialization

Command:
docker-compose run --rm web rake db:create db:migrate db:seed

Error:
rake aborted!
ActiveModel::UnknownAttributeError: unknown attribute 'registration_completed_at' for User.

Thanks

Translation for it-IT

👋 First of all: nice work! I like that you recently made the project open source and I hope you’ll get significant contributions from the community.

Opening this as an issue but it’s more a roadmap/feature request: are you planning to add a translation for it-IT soon?

I might take a stab at generating an automated translation from app/translations/en.json if you think it might be a good start.

Thank you!

Cannot edit 'About us' page after update

Hello,

As written here I did an update to the newest possible version and having a clean install without the data I did encounter an issue. One cannot edit 'About' page after the update.

Steps to follow:

  1. Clean install deployement as described in deployment guide.
  2. Go to: Pages -> About -> Edit

issue1

  1. Have an error:

issue

Could you please fix it?

Configuration editing error

In a free version a problem occurrs when homepage_info_multiloc in app configurations table is set to any value. So if one provides a value in Homepage customizable section like here:

Step1

Step2

After a reboot editing stops. Steps to reproduce:

Deploy the application as described in the deployment guide (having it with default settings).

Run the application as described in the deployment guide.

Go to Admin Panel -> Settings -> General and make sure that default laguage was set (EN for this case).

Go to Admin Panel -> Settings -> Customize and apply a value for 'Homepage customizable section'

Reboot.

Go to Admin Panel -> Settings -> General

Now editing leads to a 500 Internal Server Error

Connect to DB and execute: UPDATE app_configurations SET homepage_info_multiloc = null

Navigate to Admin Panel -> Settings editing starts working again without any reboot.

Navigate to Admin Panel -> Settings -> General and try setting a value for 'Homepage customizable section' form.

Saving leads to a 500 Internal Server Error

Refresh the page, navigate to Home page and then navigate back to Admin Panel -> Settings -> Customize and try to change anything except 'Homepage customizable section'.

Admin Panel -> Settings editing works.

Adding Projects, Activities, Comments, etc. and editing them does not work.

Reboot.

Adding Projects, Activities, Comments, etc. starts working again.

Settings aren't updating properly

Good day,
My deployed open-source platform does not conduct settings update properly. System notifies that something went wrong without details. It refers to Settings: general, style and registration. I can add geographic area or edit Terms & Conditions as well as I can add proposal without problem.
When I try to save new settings I have following answer from request:

PATCH https://wspoldecyduje.click/web_api/v1/app_configuration 422

{"errors":{"settings":[{"error":{"fragment":"#/","error":"AdditionalProperties","human_message":"The property '#/' contains additional properties [\"user_confirmation\"] outside of the schema when none are allowed in schema 21a6d023-6dc2-5182-a016-a0c94a55d452"}, ...

You can check it is live.

Do you have an idea what the reason is?
Thanks

Error response from daemon: error while creating mount source path '/var/www/html/citizenlab-docker/postgresql-data': mkdir /var/www: read-only file system

postgresql folder not inastall in this folder.

give permission to folder of read and write

Log output & screenshots

here are the screen shot:

✔ Container citizenlab-docker_memcached_1 Recreated 1.4s
✔ Container citizenlab-docker_postgres_1 Recreated 0.3s
✔ Container cl-docker-back-rabbit Started 9.1s
✔ Container cl-docker-front Started 7.1s
✔ Container cl-docker-que Created 0.2s
✔ Container cl-docker-back-web Created 0.2s
✔ Container citizenlab-docker-caddy-1 Created 0.1s
✔ Container citizenlab-docker-memcached-1 Started 4.2s
⠹ Container citizenlab-docker-postgres-1 Starting 5.2s
Error response from daemon: error while creating mount source path '/var/www/html/citizenlab-docker/postgresql-data': mkdir /var/www: read-only file system

Users unable to position their inputs on map

Hello,

I am running into a couple of problems regarding the map settings in the .env file. I have followed the instructions in the deployment guideline (inserted latitude/longitude and google maps api key) but the map does not adjust to said location, instead it positions itself in the middle of ocean, west of Africa. Furthermore, I am unable to submit an idea on a project after manually navigating to project location. After filling out the requirement for adding a new idea and hitting submit, the submit button gets a circular loading icon and just sits there indefinitely. Any help would be greatly appreciated. Also, is there any guide for utilizing different tile providers?

Edit: Just did another test and I am unable to submit an idea via the projects page as a regular user. However, I am able to submit a proposal as a regular user.

Initialize the database issue on DigitalOcean droplet

Hello,

I am a student who is interested in utilizing your open source platform in a research project and I am running into an error when running the following command:

$ docker-compose run --rm web rake db:create db:migrate db:seed

to "Initialize the database" as instructed in the deployment guide. I am not sure what the issue is, I have followed the instructions without any changes. Any help would be appreciated.

Here is the error message:

[2021-05-10T20:24:54.436732 #1] WARN -- #<Bunny::Session:0x55f68718afa0 guest@rabbitmq:5672, vhost=/, addresses=[rabbitmq:5672]>: Could not establish TCP connection to rabbitmq:5672: Connection refused - connect(2) for 172.18.0.4:5672
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "app_configurations" does not exist
LINE 1: SELECT "app_configurations".* FROM "app_configurations" ORDE...

Admin user and .env file

Hey everyone,

I was able to deploy the citizenlab platform to a domain but the settings for the admin user in the .env file

`# ***** USER *****

INITIAL_ADMIN_EMAIL=NA
INITIAL_ADMIN_PASSWORD=NA
INITIAL_ADMIN_FIRST_NAME=NA
INITIAL_ADMIN_LAST_NAME=NA`

does not work. It indicates that "The provided information is not correct. Click 'Forgot Password?' to reset your password." I am able to create an account as a regular user and it successfully logs in but the initial admin user settings in the .env file is not taking. Any help would be appreciated

edit: an attempt to reset the password prompts the following message as well We couldn't find an account linked to this email. You can try to sign up instead.

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.