-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Polling Stations] Feature to load information about polling stations #237
Comments
Hello, @RaduCStefanescu, |
@marius-jantea Hey :) And thanks for your help! Based on what we needed when we used the app at the most recent elections, we should adjust this task a bit:
|
Hello, @aniri , thank you for your quick reply! So basically we only have to do a verification that the polling station count is set when importing polling stations.. Have a great week ahead, P.S.: do we have a deadline for this task? |
Hey @marius-jantea . Yes, thanks! It would be great to have at least an understanding of what the update to also include csv files would mean :D So it would be great if you could take a look and let us know if the change is not trivial 😃 There is no strict deadline, by the end of the week or next week sounds great! Thank you and have a nice week! :D |
Hey there, I come back with some more questions, after analyzing the code a little bit deeper :)
Functionality Description from codeWe have an implementation for import polling stations, from xls, xlsx files. Structure of the expected excel (info from code) Now, I checked what the database saving part does - will try to describe the algorithm bellow, with some suggestions of changes - please confirm if the suggestions are ok, since I am not that familiar with the business of the application.
Business logic descriptionHow I understood it should work:
Questions so far:
Thank you, |
Hey :) Thanks for the detailed analysis!! To answer your questions, the xls file is taken from an official site https://www.roaep.ro/management-electoral/geografie-electorala/registrul-sectiilor-de-votare/ , see 'Registrul Secțiilor De Votare – 11.09.2020'. It should have a standard format, but to make life easier for the ones that import the file into our app we could use the export functionality. Which could just return an xls with the table header which mentions the columns which are imported, something like: We can disable the option of importing the file a second time. And add a new endpoint for clearing all polling stations We should keep the polling station id as is since there is a lot of business logic depending on it, but we'll keep you suggestion of changing the primary key in mind! Yes, the column NumberOfPollingStations from the counties table should be updated with the polling station count from the imported xls. It would be awesome if we could support both xls/xlsx and csv files, but not mandatory. |
Information about polling stations should be loaded in the NGO admin panel via CSV file.
These actions should only be available for admin ngos (organizer flag set to true).
The format file should be downloaded, the user needs to fill in the information required for the import of the polling station information.
Tasks:
GET api/v2/polling-station/csvFormat
POST api/v2/polling-station/import
<- check this; it should already be implemented in v1; also the number of polling stations value for each county should be updated in the counties table when the polling stations are importedLinked to code4romania/monitorizare-vot-ong#129
The text was updated successfully, but these errors were encountered: