54 Commits (4db0e8dd14b59aa9d432db51ad6a289b54ae3d55)
 

Author SHA1 Message Date
dtookey 4db0e8dd14 removed the where statement for @soil_techs in contributions.sql. I have a script on the company directory that updates a Google sheet with all the dept/division info in it. I think we'll do a join on the data in order to constrain it inside Datastudio. 4 years ago
dtookey 3df0ed1ab9 added table for rdu_soil_contributions. 4 years ago
dtookey 8ac07dea51 Yep, sure was a syntax error. 4 years ago
dtookey 8d42c8d3af Yep, sure was a syntax error. 4 years ago
dtookey 61fe941d68 Import isn't going well. There's an issue with the CREATE TABLE syntax in contributions.sql 4 years ago
dtookey 25128ae538 removed debug select from contributions.sql 4 years ago
dtookey 874c349eb2 Deduplication complete! 4 years ago
dtookey 7b94b13f61 Deduplication complete! 4 years ago
dtookey 34400dacc3 I think I have the engineering contributions report deduplicated. 4 years ago
dtookey 7de71948c3 corrected a bunch of timestamps in order to improve local-time accuracy. 4 years ago
dtookey 3ec8ffbef2 Tweaked timestamps in project_lifecycle in order to shift it down 4 hours to local time from UTC. I guess this project officially doesn't recognize Standard Time. 4 years ago
dtookey 194cbd64af first attempt at speeding up execution time of 1-sanitize_init.sql 4 years ago
dtookey cb15790501 simplified sanitizing created project events in project_lifecycles. 4 years ago
dtookey 78bbd9a706 The finalization pass was a dumb idea. We'll just put the per-table/concept sanitization in their file. We need these to happen before the other scripts run because we denormalize the data for performance. 4 years ago
dtookey efbe425e35 Accidentally included a debug select in here with no terminating delimiter. 4 years ago
dtookey 77bb9b9d6a introduced a sanitization pass at the very end of the import. 4 years ago
dtookey 65423f0207 tweak to contributions.sql to use table alias 4 years ago
dtookey 8cfc26b68b added work type descriptions 4 years ago
dtookey ed6bb0ace1 tweaked the import script a little to make the output more clear 4 years ago
dtookey eb456449d2 first attempt at contribution metrics 4 years ago
dtookey d6048d4f45 Added todo to all_projects.sql 4 years ago
dtookey 9d6e346f67 added created to lifecycle times 4 years ago
dtookey 0cdc75925a first stab at durations.sql 4 years ago
dtookey d46852cd9a added client name to billing report 4 years ago
dtookey 3ffa03f765 added clients into billing report info 4 years ago
dtookey b85f83bb6a added prefix to event_counts in order to concat the division info later. 4 years ago
dtookey 217e833756 The issue appears to be the division prettification in lifecycle.sql.
Changed it to simply grab the project type, we can grok the division info in datastudio
4 years ago
dtookey b8b74efca2 changing import script to have a bit better resolution into what's running 4 years ago
dtookey 6b1fc9bcc8 changing import script to have a bit better resolution into what's running 4 years ago
dtookey 2e84d53a05 we're up to the hail mary portion of the initial setup. 4 years ago
dtookey 6173e8e774 added index to billing for reference numbers to hopefully speed up query times. 4 years ago
dtookey 022e7bbee6 removed data-reformatting in billing.sql 4 years ago
dtookey 2d6a190cff trying to add an index to billing_report to see if that alleviates any long-query issues. 4 years ago
dtookey ab8defde4d Found the bug. there was no delimiter at the end of billing.sql 4 years ago
dtookey 0fadeef609 added new lines to try and avoid a weird import bug 4 years ago
dtookey f647382b90 Forgot a drop if exists in 0-functions.sql 4 years ago
dtookey 0fec39392a apparently calling functions is SUPER slow 4 years ago
dtookey d3fb3c3038 Renamed 1-sanitize.sql in order to remove user tokens and whatnot before the slow queries. 4 years ago
dtookey 6d65d76fb2 first round of billing.sql is finished. It runs a bit slow and it de-normalizes the data, but I think it's relatively 'safe' 4 years ago
dtookey e3ee6e286d Updated the event_counts table in lifecycle.sql to collapse warranty projects down into Soils/Str instead of Soils/Str/Warranty 4 years ago
dtookey 94206477cb changed formatting in sanitize.sql to use uppercase sql keywords. 4 years ago
dtookey fea7142f45 updated sanitize.sql to run on stale data 4 years ago
dtookey 4fa8a33b1a Tweaked all_projects.sql to run on stale data. 4 years ago
dtookey 9f300305c5 added division column to the event_counts table in lifecycle.sql. 4 years ago
dtookey a551f9321c added first round of lifecycle processing.
added minor lifecycle cleanup to sanitize.sql.
4 years ago
dtookey 14497754f5 first round of all_projects table generation. this is entirely hardcoded, so it ain't future proof. We need a way to do this programmatically. 4 years ago
dtookey 1106b38346 cleaned up import.sh to have a bit better flow (also trying to troubleshoot ```./update-datastudio: line 5: /home/clarity: Is a directory```) 4 years ago
dtookey 37a9a0ec52 cleaned up import.sh to have a bit better flow (also trying to troubleshoot ```./update-datastudio: line 5: /home/clarity: Is a directory```) 4 years ago
dtookey b0030323a7 better way of handling gluing *.sql scripts together in import.sh 4 years ago
dtookey 1ed99c5ef9 tweaked import.sh to make the linter a bit more happy 4 years ago