-
Notifications
You must be signed in to change notification settings - Fork 5
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
introduce new salesforce table for services #94
Comments
Another alternative to get around some of these Salesforce annoyances is using Google Spreadsheets as a backend instead. This would potentially maintain the reports capability (and probably, would be easier to create/edit/display them), and be much easier for us to rewrite the schema correctly. |
However, the good library for working with spreadsheets that I've found is
There is a javascript lib for working with spreadsheets that seems okay, but it does not seem as good. |
On second thought, we'd probably need to prototype Google Sheets first, because it'd be bad if the API broke or stopped working during an event; another idea is using Postgres or a regular database, and adding a cron job that dumps to a sheet daily. |
Google spreadsheets is an interesting idea. So do you envision having each sheet being like a table and PHC people manually go in and edit rows? Another option is using an admin library and adding a regular DB with the existing stack. I found this one but there's probably more around: |
Okay apparently there's already a Service object https://na2.salesforce.com/01I40000000MF9s?setupid=CustomObjects What do you think of using the salesforce object for V1 and instead of having a phc event foreign key, just have a boolean field in the service object itself, like "enabled"? |
Oh yeah, none of this is really that important for v1 of the check-out form. I already have a branch going for that locally, I think it should work. It sounds like the Service object as exists would work if we just add the |
Whoops, never sent the comment below (supposed to be inserted before your one about the Service object) Yeah -- each sheet is a table (although perhaps we can condense them, still not sure what the schema would look like). The rationale here would be that Google Sheets is easy to use for generating reports, and basically all Salesforce is doing as far as I know is storing data and providing a crappy tool to make reports with. I'm starting to think that having an regular DB would be a better option, but I'm not totally sure if it's true. |
i think we're going to need a few new tables and will have to migrate to it eventually. this also might be what the
Provider
table is for, but it appears to be unused right now. no clue how to do this in salesforce.this is lower-priority, but it's a requirement for self-sustainability.
something like:
regarding the first table, right now there's a lot that is hardcoded: tooltips, descriptions/friendly names, titles (these don't even seem to be editable in salesforce anywhere, and would probably break a lot of things if they were edited in say, a PHC event object). rather than be strings, these probably should be foreign keys to other objects. the second table would just come naturally from having the first one.
cc @altonzheng for thoughts or opinions
The text was updated successfully, but these errors were encountered: