You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new AuthorizationHandler will be created to allow new users to be validated against a census that will be uploaded from an excel file. The AuthorizationHandler will accept the citizen minimum age as a configuration parameter. If the user doesn't meet the age requirement configured in the parameter it won't be authorised.
The excel file will have a CSV format and it will contain the following data for every user:
ID document
Birth Date
The excel file will be uploaded from the Admin Panel of every organisation. Only users with the admin role will be able to upload the excel file. We will display if there is any excel file loaded and if there is one, the date when it was loaded and the number of citizens loaded to the organisation.
Tasks
Add a new section in the Decidim Admin Panel to upload a new Excel file for an organisation.
Display the date when the excel was uploaded for the last time and the number of citizens in the census for the organization.
Create a new AuthorizationHandler that will use the data uploaded from the excel file.
The AuthorizationHandler will be configurable with a minimum user age required to authorise the user.
Attach a sample excel file in xlsx format to the issue.
Technical discussion
We need to analyse if creating an engine is the best way to encapsulate the code that we will be writing. I suggest implementing first a version overriding the Decidim behaviours in the project itself and then determine if the added core is complex enough to be created as a separate extension.
The text was updated successfully, but these errors were encountered:
xredo
changed the title
New AuthorizationHandler to checks the census from an excel file
New AuthorizationHandler to check the census from an excel file
Nov 3, 2017
Description
A new AuthorizationHandler will be created to allow new users to be validated against a census that will be uploaded from an excel file. The AuthorizationHandler will accept the citizen minimum age as a configuration parameter. If the user doesn't meet the age requirement configured in the parameter it won't be authorised.
The excel file will have a CSV format and it will contain the following data for every user:
The excel file will be uploaded from the Admin Panel of every organisation. Only users with the admin role will be able to upload the excel file. We will display if there is any excel file loaded and if there is one, the date when it was loaded and the number of citizens loaded to the organisation.
Tasks
Technical discussion
We need to analyse if creating an engine is the best way to encapsulate the code that we will be writing. I suggest implementing first a version overriding the Decidim behaviours in the project itself and then determine if the added core is complex enough to be created as a separate extension.
Resources
The text was updated successfully, but these errors were encountered: