-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error Handling: Handle google sheet errors so the app won't crash #30
Comments
I could look at this, but I'd probably need access to the spreadsheet, and it'd help to have examples of the kinds of errors that have occurred in the past. |
@airandfingers I'll send you a link on slack. The spreadsheet repeats titles of categories, non-profits, tags, etc. Issues can occur when these variables don't match up between the different pages of the sheet. For example, I had an issue, where the pet-health category was defined on the "root" sheet (which we reference in the other sheets) was misspelled in another page. This broke displaying categories on the home page. I think the best way for you to reproduce some of these errors is to...
Basically, if there is a category / other data inputed incorrectly that breaks the app, we should catch those errors and handle them. Ideally, we have some error message on the app that says something along the lines of "Category XYZ had invalid data. Please contact your site administrator." I imagine this happening by creating a "checkCategoryValid" function in the helpers.js file. We also want to have some tests for this. |
FYI I've started the fix at airandfingers#1, but it has plenty more changes/tests to add before it's ready to merge. In the meantime, if you like I could create a PR to this repo's master instead, maybe tagging it with something like "in progress" or "not ready for review".. I've found this to be useful at work if I ever need help/feedback while still developing functionality. |
Sure, go ahead and make a pr. We can just merge when it’s ready.
|
I made this issue a milestone, so I'm closing it |
Our goal is to handle google sheet errors instead of the app crashing. Currently, if data is not formatted correctly, we have potential for 0 categories to work!
There are a decent amount of changes we need to make for this to work properly. I listed them below:
The text was updated successfully, but these errors were encountered: