pet-rescue icon indicating copy to clipboard operation
pet-rescue copied to clipboard

CSV Upload: Add route, controller,policy, nav link, and UI for upload

Open kasugaijin opened this issue 1 year ago • 6 comments

This work is part of a feature that will enable staff to upload questionnaires from third party form services to the app so the adopter data is all in once place.

Scoping should be Organizations::Staff

Add a route external_form_submission Add controller ExternalFormSubmissionsController Add policy class with check for the index action. Add link to staff navbar External Form Upload When I click on the navbar link, I am redirected to a new page within the dashboard layout that has a file attachment input. You can use the index action.

Above the input is a section with the following information:

'If you use a third party form service, like Google Forms, to provide questionnaires to potential adopters, and receive their answers, you can upload the CSV of data here to import the questions and responses to this application. This means the questionnaire data will live in one place, and you will be able to view it for a given adoption application at any time. Note that the adopter must have an account in this application using the same email address they used in the third party form.'

kasugaijin avatar Jul 10 '24 01:07 kasugaijin

hwy Can I work on this

Naraveni avatar Jul 22 '24 00:07 Naraveni

For sure @Naraveni let me know if you have any questions!

kasugaijin avatar Jul 22 '24 01:07 kasugaijin

@kasugaijin could you please mention should I completely create new models or use existing models. If I have to use existing models, could you please mention what models I need to look at. Thank You

Naraveni avatar Jul 23 '24 15:07 Naraveni

@Naraveni I don't think we will need a new model for this. For now let's just focus on the new routes, controllers, policy, to get the UI working. Then in an issue later we can hook things up. This will use an import service that will persist to existing models.

kasugaijin avatar Jul 23 '24 19:07 kasugaijin

@Naraveni how's this going? let me know if you have questions

kasugaijin avatar Jul 27 '24 16:07 kasugaijin

@kasugaijin Haven't started during the weekdays. I got some time during the weekend, I will try to complete it now

Naraveni avatar Jul 28 '24 11:07 Naraveni

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] avatar Aug 28 '24 00:08 github-actions[bot]

Automatically unassigned after 7 days of inactivity.

github-actions[bot] avatar Sep 04 '24 00:09 github-actions[bot]

@Naraveni this has been unassigned. Let me know if you want to tackle it.

kasugaijin avatar Sep 21 '24 03:09 kasugaijin

I'm interested in this task.

wandergithub avatar Sep 30 '24 16:09 wandergithub

@wandergithub all yours!

kasugaijin avatar Sep 30 '24 20:09 kasugaijin