deleted-U06C7A8PVLJ
2024-10-07 11:56:16

James Turner (jturner@shield-legal.com)
2024-10-22 18:06:46

Hey there~ I came up with something I think you and your team might find useful

deleted-U06C7A8PVLJ
2024-10-22 18:08:45

@James Turner Hey james. I am all ears 👂:skintone2:

James Turner (jturner@shield-legal.com)
2024-10-22 18:09:07

Its a basic little python set of tools that I call Cartographer

James Turner (jturner@shield-legal.com)
2024-10-22 18:10:51

2 main tools, one is Mr.Context which takes 2 different excel columns and uses a basic machine learning model to understand context on both, find the best match and spit that out as an excel file

James Turner (jturner@shield-legal.com)
2024-10-22 18:12:14

Think kinda like fuzzywuzzy but more

deleted-U06C7A8PVLJ
2024-10-22 18:12:38

Interesting 🙌:skintone2: I haven't heard of that but I am interested in look more into it's library 🙌:skintone2:

deleted-U06C7A8PVLJ
2024-10-22 18:12:46

Oh yesss I've done a fuzzywuzzy match before (love that name) lol

deleted-U06C7A8PVLJ
2024-10-22 18:13:14

So I am assuming it may learn from certain data responses and give best match recommendations ?

James Turner (jturner@shield-legal.com)
2024-10-22 18:14:54

Exactly yeah- if you want we can set up a 1:1 tomorrow and I'll show you how it works

deleted-U06C7A8PVLJ
2024-10-22 18:31:39

Yeah I am free tomorrow for sure 🙂 I appreciate you giving me the friendly heads up :catroombaexceptionally_fast:

James Turner (jturner@shield-legal.com)
2024-11-01 12:12:24

Hey good morning man- This is the first run so you might run into hiccups here and there but this should work for ya

James Turner (jturner@shield-legal.com)
2024-11-01 12:13:58

I'm gonna send it from my other acc because it won't let me send an application here

deleted-U06C7A8PVLJ
2024-11-04 07:32:03

Good morning ! Oh okay no worries 🙂 I got it ! 🙌:skintone2: Thank you James

James Turner (jturner@shield-legal.com)
2024-11-20 15:20:00

Oh my way to the new office now, may be a couple mins late

deleted-U06C7A8PVLJ
2024-11-20 15:20:37

No worries James let me know when you have arrived so I can meet up with you

James Turner (jturner@shield-legal.com)
2024-11-21 15:38:23

Hey man, gotta sync with you when you get the chance

James Turner (jturner@shield-legal.com)
2024-11-21 15:38:32

good stuff, don't stress

deleted-U06C7A8PVLJ
2024-11-21 15:38:53

Hey James ! Sure when would you like?

James Turner (jturner@shield-legal.com)
2024-11-21 15:39:28

I was supposed to be out of this meeting like 40 minutes ago so hopefully soon lol

James Turner (jturner@shield-legal.com)
2024-11-21 15:39:35

I'll let you know when I'm out of this

deleted-U06C7A8PVLJ
2024-11-21 15:40:10

Oh okay can we do it for 2:30 if possible ?

deleted-U06C7A8PVLJ
2024-11-21 15:40:23

If out before that

James Turner (jturner@shield-legal.com)
2024-11-21 15:40:54

Sure thing' I'll try and do it asap, I'll head over to your desk

deleted-U06C7A8PVLJ
2024-11-21 15:42:14

Oh I see if you are at the office then once you are off that meeting that works with me. I wanted to grab a bite but I prefer to do so afterwards if that makes sense

deleted-U06C7A8PVLJ
2024-11-21 15:42:30

So let me know once you are finished and we can meet up

deleted-U06C7A8PVLJ
2024-12-03 11:20:53

Hey James. The instructions Joe gave me was to first text him. Once he gives you the green light that he is ready to help assist you he will then request for you to reboot your computer and to relogin. Once you are logged in to just wait for him to take control of your computer and from there he will be able to assist.

deleted-U06C7A8PVLJ
2024-12-03 11:21:05

I think he may be available now

James Turner (jturner@shield-legal.com)
2024-12-10 15:01:21

My bad, I didn't realize you were in this too

deleted-U06C7A8PVLJ
2024-12-10 15:01:41

No worries ! I was looking for you not sure if you are at conference room lol

James Turner (jturner@shield-legal.com)
2024-12-10 15:25:53

After this, let's try and sync with Nick so we can get a better idea of why ryan is running you through all this and what he's talking about. My understanding is he would be having another team do the finance stuff, not you

James Turner (jturner@shield-legal.com)
2024-12-10 15:26:01

but I guess I was wrong

James Turner (jturner@shield-legal.com)
2024-12-10 15:26:04

??

deleted-U06C7A8PVLJ
2024-12-10 15:27:58

From my understanding I am helping with the S1s and declines, etc and he wants me to understand some of the "background" process to possibly create a python code or sql query to automate that from his end. As for specific finance #s I think that he isn't teaching me that stuff but rather it is just a coincidence with the lessons he is trying to show me that those are being shown

deleted-U06C7A8PVLJ
2024-12-10 15:28:28

But not taught.

James Turner (jturner@shield-legal.com)
2024-12-10 16:02:04

Please for the love of dog, don't ever name your commits "dasdh"

😆 deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2024-12-10 16:02:21

It gets so confusing so fast lol

deleted-U06C7A8PVLJ
2024-12-10 16:03:57

Right haha

James Turner (jturner@shield-legal.com)
2024-12-10 16:17:39

Are you following? 100% okay if you aren't

deleted-U06C7A8PVLJ
2024-12-10 16:19:43

Some but not all since I am getting pulled to do another task (to help a fellow co-worker with a script I built for the team)

deleted-U06C7A8PVLJ
2024-12-10 16:19:57

But I can still stay on since I am just about finished with it

deleted-U06C7A8PVLJ
2024-12-10 16:20:14

I kinda want him to figure it out first then say it or worst case I will review the recording

James Turner (jturner@shield-legal.com)
2024-12-11 13:45:04

Plan to keep our meeting with Ryan for now, but know that I am in a meeting with him now and it's set to go long

deleted-U06C7A8PVLJ
2024-12-11 13:45:28

Fair enough haha

James Turner (jturner@shield-legal.com)
2024-12-11 13:45:46

Cool stuff- Meeting with people from Google

deleted-U06C7A8PVLJ
2024-12-11 13:59:43

That does sound exciting :catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2024-12-11 13:59:53

Back from lunch in 10 seconds

deleted-U06C7A8PVLJ
2024-12-12 10:23:43

Question James, you said pulling any type of Query from BigQuery would be like $1 per a pull?

James Turner (jturner@shield-legal.com)
2024-12-12 10:46:45

So not quite, the larger the query, the more PC power necessary and that's what costs, but that can add up very quickly. What are you thinking to do?

deleted-U06C7A8PVLJ
2024-12-12 10:47:39

Oh that makes sense. Nothing quite yet; just want to know what my limitations are before creating stuff and also I recalled Dustin and Ahsan talking about $ basis so just wanna make sure I recall the correct details

James Turner (jturner@shield-legal.com)
2024-12-12 10:49:30

Best path for now would be to build the queries in postgresql and talk to Dustin and I before sending anything through. I recommend mocking up schema blueprints of what you want things to do/look like

deleted-U06C7A8PVLJ
2024-12-12 10:50:27

Copy that. I recalled installing PGAdmin but did I also have to install postgres too?

James Turner (jturner@shield-legal.com)
2024-12-12 10:51:46

Good question- pg Admin is kind of like vscode for postgres SQL databases

James Turner (jturner@shield-legal.com)
2024-12-12 10:52:05

PostGressql Admin

James Turner (jturner@shield-legal.com)
2024-12-12 10:52:12

So no lol

deleted-U06C7A8PVLJ
2024-12-12 10:52:38

Oh that makes sense

deleted-U06C7A8PVLJ
2024-12-12 10:53:03

Yeah I want to see how can I create my own "testing environment" that way I can create things and use the SQL skills I am learning and continue to learn as well

deleted-U06C7A8PVLJ
2024-12-12 10:53:29

during freetime after work I have MYSQL installed so I am running off that to practice with but postgres and mysql for queries doesn't seem too different

James Turner (jturner@shield-legal.com)
2024-12-12 11:41:08

They are very very similiar, I think pretty much the same outside of a new minor verbage differences

deleted-U06C7A8PVLJ
2024-12-12 11:45:20

Oh I see. That's what I heard too. Good to know

James Turner (jturner@shield-legal.com)
2024-12-19 11:47:26

Hey are you busy today? I got some cool info and wanted to discuss the reason for that project I posted about

deleted-U06C7A8PVLJ
2024-12-19 11:48:12

Hey james ! I wouldn't say I am too busy to check it out; just updating the create new leads script / LR API thing I was mentioning about

James Turner (jturner@shield-legal.com)
2024-12-19 11:48:32

Cool! I'll swing by in a little bit.

deleted-U06C7A8PVLJ
2024-12-19 11:48:43

Sounds good :catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2024-12-20 14:16:58

Edward's LR Endpoints / API Scripts Hey James. I am sending you a link where I am posting for scripts I built that are adhoc in terms of using law ruler API's and ones that are scheduled weekly. I am still adding more to it (as I search my codes) but essentially this should cover all the codes I built so far that uses the LR API for different purposes

James Turner (jturner@shield-legal.com)
2024-12-30 14:02:42

Heyo- Notice will be going out to the broader company soon but pause all reports from lawruler and any code that touches the lawruler API

James Turner (jturner@shield-legal.com)
2024-12-30 14:02:53

Request from Mcfadden and Joe

deleted-U06C7A8PVLJ
2024-12-30 14:03:43

Hey @James Turner thanks for the friendly heads up. I am going through all my coding as we speak to ensure nothing is ran

deleted-U06C7A8PVLJ
2025-01-02 14:54:33

Hey @deleted-U07UDN65C3U sorry Ryan is stuck with a meeting with me but wanted you to hop onto this meeting if you can: meet.google.com/cnf-umga-bhw

James Turner (jturner@shield-legal.com)
2025-01-07 12:38:15

Yaknow how we were SUPER careful about how we named everything yesterday on the schema?

James Turner (jturner@shield-legal.com)
2025-01-07 16:15:30

Heyo, can you please check if the pk_id columns are integers on ryans Postgresql tables?

James Turner (jturner@shield-legal.com)
2025-01-07 16:19:33

I'm planning on sending this to ryan but I want to be sure first..

Hey Ryan, I’ve made good progress on the status rates table. I’m also using this as a teaching opportunity for Edward, who is shadowing me, and he seems to be picking it up well! I did have a couple of questions regarding the specs for the table:

  1. For the pk_id, I noticed that it’s currently specified as an INTERVAL. Since the pk_id in the PostgreSQL table is an integer, did you want to source it from that table, or should we consider another approach?
  2. For the external_status_name_desc, should we populate this with a default value for now so it can be properly populated using Brian’s tool? Thanks for your guidance!
deleted-U06C7A8PVLJ
2025-01-07 16:49:59

@James Turner Here is an example of what it shows me in PGadmin

deleted-U06C7A8PVLJ
2025-01-07 16:50:03
deleted-U06C7A8PVLJ
2025-01-07 16:50:24

I believe PK integer or PK id will be an integer and looks like LR ID # to me

deleted-U06C7A8PVLJ
2025-01-07 16:51:49

Also the number I gave you and Nick W about 14,500 fields, Brittany and her team are going to narrow it down some more to see if there are clients who fields don't need to be updated (since they already have the data there) so essentially before I send out that email she is going to look through the data before sending out that email. As a friendly heads up.

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-01-07 17:37:38

Appreciate you!

James Turner (jturner@shield-legal.com)
2025-01-08 15:03:57

If you wanna come to my office for the sync, youre all good to cmon over

deleted-U06C7A8PVLJ
2025-01-08 15:05:02

Oh okay give me 2-3 mins and I will be there

James Turner (jturner@shield-legal.com)
2025-01-13 11:21:53

Gooood morning sir!

deleted-U06C7A8PVLJ
2025-01-13 11:22:11

Good morning @James Turner

James Turner (jturner@shield-legal.com)
2025-01-13 11:26:40

I'm getting all the final bits and bobs put together for the status table Ryan requested last week ahead of our meeting with him today, but wanted to give you the opportunity to look it over~

deleted-U06C7A8PVLJ
2025-01-13 11:27:31

Gotcha yeah I hope you were able to fix that issue / bug from last time and I can take a look at it if you like. Do you want me to popby ?

James Turner (jturner@shield-legal.com)
2025-01-13 11:28:06

I started early this morning and didn't drive in yet because I was locked in on projects lol

James Turner (jturner@shield-legal.com)
2025-01-13 11:28:18

Let me see where I left off..

deleted-U06C7A8PVLJ
2025-01-13 11:29:36

Ohhh that makes sense haha. I thought you might of been here already since I can see the lights on your office from here

James Turner (jturner@shield-legal.com)
2025-01-13 11:40:49

So these were the requirements..

👀 deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-01-13 11:41:29

Now rather than create 2 seperate automation scripts, I created one that should do both.

:eyes_3d: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-01-13 11:42:54

Two into one that sounds nice 🙌:skintone2:

James Turner (jturner@shield-legal.com)
2025-01-13 11:42:57

https://console.cloud.google.com/bigquery?ws=!1m5!1m4!4m3!1stort-intake-professionals!2stip_prod_application!3sio_tip_lr_status_rates

accounts.google.com
James Turner (jturner@shield-legal.com)
2025-01-13 11:50:28

I know you are new to SQL but if you wanna look over the tables and let me know if that query makes sense I would appreciate lol

deleted-U06C7A8PVLJ
2025-01-13 11:52:29

From what I am seeing looks good and it does make sense why you combined them both too. Great job in this :cool_doge:

deleted-U06C7A8PVLJ
2025-01-13 11:52:44

Data types look good to me

deleted-U06C7A8PVLJ
2025-01-13 11:53:18

As far as I am seeing I can't think of anything I would change about it

James Turner (jturner@shield-legal.com)
2025-01-13 11:55:49

I know we discussed leaving out things not on that excel sheet, and the pros and cons, but as ryan wrote it on the requirements (excel line 19)- that would insert them anyway?

deleted-U06C7A8PVLJ
2025-01-13 12:00:36

Sorry I am not following what you mean by that. Leaving out things not included within the excel sheet makes sense but I am not understanding line 19 very well 😅

James Turner (jturner@shield-legal.com)
2025-01-13 12:01:15

You're all good, the way he wrote it was confusing

deleted-U06C7A8PVLJ
2025-01-13 12:02:10

Yeah it does sound a bit confusing

James Turner (jturner@shield-legal.com)
2025-01-13 12:04:15

he said to make a piece of code that inserts data from the ID column of the the lr_statusus table to the new status table every 5 minutes

James Turner (jturner@shield-legal.com)
2025-01-13 12:04:47

insert being something that puts new columns in, so we don't actually want to insert every time

James Turner (jturner@shield-legal.com)
2025-01-13 12:04:58

because you will get a bunch of duplicates

deleted-U06C7A8PVLJ
2025-01-13 12:06:02

Ohhhh yes that would make sense

deleted-U06C7A8PVLJ
2025-01-13 12:06:07

Yeah we don't want that to happen lol

James Turner (jturner@shield-legal.com)
2025-01-13 12:06:38

My understanding of what he was asking for was a way to see if it's already in there, and insert new ones

James Turner (jturner@shield-legal.com)
2025-01-13 12:06:44

which that merge statement should do

deleted-U06C7A8PVLJ
2025-01-13 12:07:55

Yes should check if they are already there or not; create if not and then update periodically I suppose

deleted-U06C7A8PVLJ
2025-01-15 01:26:02

Hey James. Sorry to be messaging you so late. I wanted to let you know that my throat after work is starting to feel sore and it is a possibility I may wake up tomorrow feeling not so well. In an event like I don't feel well tomorrow I don't want to go to work at the office and risk the possibility of getting others sick so I may try to WFH tomorrow and/or simply just take a sick day. Sorry 😅

James Turner (jturner@shield-legal.com)
2025-01-15 11:31:45

Hey there' You are all good. Thank you for letting me know ahead of time. Get some rest!

🙌:skin_tone_2: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-01-15 11:32:24

You're welcome James 🙌

deleted-U06C7A8PVLJ
2025-01-15 11:32:30

I appreciate it

James Turner (jturner@shield-legal.com)
2025-01-15 14:57:13

Hey there' How are ya feeling?

James Turner (jturner@shield-legal.com)
2025-01-15 14:59:41

I spoke to Nick and let him know you told me yesterday that you aren't feeling well. Are you still okay for our sync today?

James Turner (jturner@shield-legal.com)
2025-01-15 14:59:50

Nick is concerned about the flatirons stuff

deleted-U06C7A8PVLJ
2025-01-15 15:11:20

Hey James @James Turner I am feeling better. I am still coding that stuff for flatirons since I know the higher ups want that asap for their meeting tomorrow

deleted-U06C7A8PVLJ
2025-01-15 15:12:07

Yeah we can sync today if needed I just got out of a meeting with Brittany to get her team's feedback for the flatirons benchmark to be prepared for a meeting I have with Tony

deleted-U06C7A8PVLJ
2025-01-15 15:12:45

I am in the google meeting right now if you are available

James Turner (jturner@shield-legal.com)
2025-01-15 16:10:55

good stuff

deleted-U06C7A8PVLJ
2025-01-15 16:18:53

Thank you @James Turner it went better than I thought lol

deleted-U06C7A8PVLJ
2025-01-15 16:20:07

Once the dashboard is built I am sure they gonna like it

deleted-U06C7A8PVLJ
2025-01-15 16:20:31

Right now it is simply just "theory" based but its like the saying goes, if we build it they will show lol

James Turner (jturner@shield-legal.com)
2025-01-21 15:10:48

update FINLOG // table name Parentcasetype = "oldname" typeofcase = "Michigan Pollution INJURY - Ben Crump Law - ELG - Shield Legal" retainercode = _

where leadid IN (1,2,3,4)

James Turner (jturner@shield-legal.com)
2025-01-21 15:16:57

What is the parent case type? get list of lead IDs to change to new case type What should new retainer code be?

deleted-U06C7A8PVLJ
2025-01-21 17:03:32

Hey James ! Just wanted to give you a friendly heads up I was successful in updating those 371 leads in PGAdmin.

here is my SQL code just in case you need it or want to know how I did it:

-- Update the fields in the public.financial_log table UPDATE public.financial_log SET parent_case_type = 'Michigan Pollution', type_of_case = 'Michigan Pollution INJURY - Ben Crump Law - ELG - Shield Legal', case_type_retainer_code = 'Michigan Pollution INJURY' WHERE type_of_case = 'Michigan Pollution - Ben Crump Law - ELG - Shield Legal' _-- Match the old case type_ AND lr_lead_id IN (658388, 663236, 651483, 655279, 655535, 656447, 655219, 653802, 656108, 656083, 655182, 655203, 655725, 653344, 655099, 655573, 653980, 654253, 655162, 653837, 654962, 653819, 654486, 654478, 654020, 653870, 653862, 653782, 653593, 653709, 653499, 651512, 651608, 651468, 653798, 653967, 653716, 653814, 655627, 653368, 655094, 653954, 653794, 651435, 653749, 653796, 654149, 655185, 655274, 654482, 654468, 651634, 655504, 661719, 655175, 651452, 654813, 653610, 653728, 651450, 654609, 652618, 653772, 656193, 655104, 654465, 654430, 654289, 654860, 653851, 654062, 653975, 654134, 654029, 653712, 651485, 652124, 651792, 653961, 651473, 653955, 653722, 651480, 655957, 653389, 652732, 651448, 651525, 663261, 652927, 651493, 653758, 658363, 660639, 653255, 663076, 661174, 658333, 656652, 654444, 657393, 664639, 664844, 663079, 664597, 664519, 664291, 664439, 664397, 664325, 664258, 664202, 663797, 657609, 663390, 663072, 662924, 662473, 661656, 661654, 652052, 661254, 661415, 661608, 661566, 661580, 661544, 661321, 661247, 660988, 660164, 660906, 656055, 655616, 660181, 660182, 657851, 658406, 658730, 660062, 658512, 659756, 658003, 657100, 656972, 657543, 659319, 658504, 659366, 659255, 659150, 658977, 658203, 657574, 657008, 653896, 657761, 657532, 657818, 657790, 657607, 653592, 657544, 657278, 655125, 657425, 657134, 657149, 656995, 656811, 656794, 656619, 653793, 663557, 658667, 663655, 657793, 665005, 661328, 660146, 660184, 660047, 657759, 661993, 655180, 663873, 663632, 663535, 661317, 657913, 659822, 657740, 653865, 664185, 663093, 659962, 664241, 663036, 663369, 663282, 662656, 661075, 659950, 659002, 657936, 657881, 658137, 654498, 656805, 656292, 655859, 661034, 655336, 659301, 659188, 659291, 656993, 656939, 658716, 654396, 657489, 657201, 661927, 662012, 661037, 656118, 657137, 656416, 662967, 659535, 657007, 658596, 662206, 660983, 660668, 658776, 659356, 658278, 657126, 655881, 655660, 664477, 661303, 661241, 664622, 663263, 664871, 664846, 655677, 664370, 664151, 664119, 663726, 662806, 661868, 661262, 663306, 662906, 662864, 662600, 662619, 662428, 662560, 662544, 662073, 661828, 661983, 661712, 661732, 661555, 661463, 660599, 661350, 661129, 661229, 658753, 651964, 660032, 657225, 659537, 659868, 657821, 658997, 658715, 658317, 658938, 657372, 658466, 656770, 658275, 658232, 655209, 654237, 657780, 657413, 653808, 655626, 660112, 655984, 657716, 660190, 664351, 664295, 664318, 664261, 653859, 663420, 662826, 661301, 661202, 659113, 654366, 659380, 657594, 656332, 657724, 654150, 656969, 663875, 663728, 663439, 657623, 663219, 651422, 656219, 655149, 658528, 651598, 654144, 655299, 655807, 655151, 653998, 653930, 653882, 653707, 651496, 653912, 662147, 659435, 654393, 654200, 653626, 651449, 654606, 655476, 654383, 653731, 654423, 653561, 654148, 653850, 655192, 653908, 656216, 655184, 654982, 653231, 654816, 654583, 653598, 653810, 653624, 652121, 652102, 654879, 653987, 653600, 653785, 651467, 652675); _-- Match specific Law Ruler IDs_

👍 James Turner
deleted-U06C7A8PVLJ
2025-01-21 17:03:50

Also we updated those 371 leads in law ruler as well through the import wizard so Sobo should be good from his end as well

deleted-U06C7A8PVLJ
2025-01-21 17:04:01

So my part and Sobo's part should be complete if that's all there is needed for it

deleted-U06C7A8PVLJ
2025-01-29 14:59:14

Hey James. I just wanted to confirm with you if we still good for our 1pm

James Turner (jturner@shield-legal.com)
2025-01-29 15:02:09

Yessirree- I'm on my way over now. May have to call it a lil early bc I have a cam presentation right after

deleted-U06C7A8PVLJ
2025-01-29 15:02:25

That works with me

deleted-U06C7A8PVLJ
2025-01-29 15:57:49

Also to piggyback from why I was using "R" in-front of the path location:

deleted-U06C7A8PVLJ
2025-01-29 15:58:11

Just food for thought since I used it in the past and became a habit so that I don't need to type in \ but rather just \ lol

James Turner (jturner@shield-legal.com)
2025-01-29 16:02:07

I appreciate you filling me in on that! I've been doing the double slashes forever and making sure my path names have no spaces. This is much easier!

:cat_roomba_exceptionally_fast: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-01-29 16:02:29

Your welcomes :catroombaexceptionally_fast:

James Turner (jturner@shield-legal.com)
2025-02-03 14:51:42

Hey there~ is it okay if we cancel this 1:1 and re-sync later in the week? Working on a piece of code here and allllmooostt there (maybe)

deleted-U06C7A8PVLJ
2025-02-03 14:52:21

Hey James. That works with me since I am in the same boat as you (working on flatirons coding stuff) haha

James Turner (jturner@shield-legal.com)
2025-02-03 17:21:33

My guess is the reason they told Ryan to make a seperate project for each data set, is so you by default only include the information you want, rather than import everything and have to manually hide and edit each item

deleted-U06C7A8PVLJ
2025-02-03 17:40:42

Ohhh that would make sense

James Turner (jturner@shield-legal.com)
2025-02-03 18:06:20

My understanding:

project - all of the connections you want for a project

View - a read only view of a table that you are connected to measure - a way to get new results, from existing data points. For example, a measure might be a count of how many leads you have per case.

explore: all of your tables from the view + all of the measures you created.

visualization: the actual graph/bar chart/table visualization, that you want to put into a dashboard.

James Turner (jturner@shield-legal.com)
2025-02-03 18:08:53

DBT is taking the role of creating measures from lookml

deleted-U06C7A8PVLJ
2025-02-03 18:09:37

Yes I believe that is what he is referring to 👏:skintone2:🙌:skintone2:

deleted-U06C7A8PVLJ
2025-02-05 15:09:44

Hey James let me know if we still good for our 1:00 pm

deleted-U06C7A8PVLJ
2025-02-05 15:09:57

If we have to postpone I understand since I am working on finishing up the flatirons script

deleted-U06C7A8PVLJ
2025-02-05 15:10:05

But I'd be happy to hop on if needed

James Turner (jturner@shield-legal.com)
2025-02-05 15:10:27

Hey there, I apologize - you're good to keep going on with the flatirons stuff. Let me know if you run into any trouble with it

deleted-U06C7A8PVLJ
2025-02-05 15:11:16

No worries, I appreciate it ! It has very tricky logic to it but I am getting closer and close to solving it as I debug / test things through print statements

deleted-U06C7A8PVLJ
2025-02-06 12:02:20

I have a better idea on what DBT is now that I looked it up. I think just having a reference key to be able to look at at any point (just in case we forget or have a new person) it will tell us the name of the folder and what it does and what goes into it

Then we have another reference key of each bucket that is important in Bigquery and summarize what is important in it and having those two reference keys should do it

James Turner (jturner@shield-legal.com)
2025-02-06 12:03:06

From what I'm getting out of this.. it's kind of like jupyter but for SQL

James Turner (jturner@shield-legal.com)
2025-02-06 12:03:56

But instead of different code blocks, it's different files, in different sections

deleted-U06C7A8PVLJ
2025-02-06 12:04:01

I see yeah cron jobs and having each folder having its own purpose such as a folder for raw, a folder for analytics, etc

deleted-U06C7A8PVLJ
2025-02-06 12:04:26

Yeah and having difference sources and combining them into one

James Turner (jturner@shield-legal.com)
2025-02-06 12:04:42

I don't really see why this is needed vs just properly organizing GitHub and using code but ehhh

James Turner (jturner@shield-legal.com)
2025-02-06 12:04:52

Hopefully I'm just missing something

deleted-U06C7A8PVLJ
2025-02-06 12:05:11

I see what you are saying. I guess its the cron job part maybe?

deleted-U06C7A8PVLJ
2025-02-06 12:06:36

I think next time I need to break it down like how we did in person with him where we wrote down what the names are, what they mean and what to do with it.

  1. Table name
  2. This has stuff for x y z
  3. Use this table to combine with table 2
  4. Output should look like this: Something like that would help me since to me he is proving a lot of info which is good for a snapshot but not if we need to take action on it right away lol
James Turner (jturner@shield-legal.com)
2025-02-06 12:06:55

Yeah

James Turner (jturner@shield-legal.com)
2025-02-06 12:07:18

Telling someone "Make a table" doesn't mean anything when you don't tell them what you want the table to be.

😆 deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-02-06 12:07:31

That too

deleted-U06C7A8PVLJ
2025-02-06 12:08:43
  1. Table names
  2. What data that table(s) have
  3. What to do with it
  4. What the output should look like (if it is a table what columns, values, etc)
deleted-U06C7A8PVLJ
2025-02-06 12:09:10

Do that for each part and then maybe go over the "possible challenges" and that should do the trick (at least for my end for understanding)

James Turner (jturner@shield-legal.com)
2025-02-06 12:56:12

Yeah- I am attempting to slowly lead Ryan to doing that, and I think the finance log stuff is a good example of him starting to understand that we need that information to do our jobs

deleted-U06C7A8PVLJ
2025-02-06 12:57:07

Yes I agree. I am in another meeting with him as we speak and this one he is going one by one which is a lot more helpful so if we can push our meetings to be more hands on, slower and writing each step & it's purpose, etc I think long terms we can get things done faster and accurate

🙏 James Turner
James Turner (jturner@shield-legal.com)
2025-02-06 13:00:49

For the finance log stuff (https://docs.google.com/spreadsheets/d/1p9QZpMZX4ww4AXFAnu1nJRb8XCozzWEGtjZK1UWPmQA/edit?usp=sharing) I am in the process of attempting to get LP contract ID on each campaign right now, but running into some issues because of how the contract ID is pulled from Lawruler initally

James Turner (jturner@shield-legal.com)
2025-02-07 11:42:42

Hey there, in the postgresql tables, is there any leadspedia tables that show the contract ids?

James Turner (jturner@shield-legal.com)
2025-02-07 11:43:09

I looked through every single table in both the tip and shield bigquery and found contracts, but nothing I can join them on.

deleted-U06C7A8PVLJ
2025-02-07 11:43:12

Good Morning @James Turner Hmm I can send you a screenshot of all the tables and example values (of a row) to see if that answers your question?

deleted-U06C7A8PVLJ
2025-02-07 11:43:26

I mean a specific table

James Turner (jturner@shield-legal.com)
2025-02-07 11:43:35

That would be awesome!

deleted-U06C7A8PVLJ
2025-02-07 11:44:14

My query:

SELECT ** FROM public.financiallog WHERE lrleadid = 679007 ORDER BY typeofcase,lastname ASC;

deleted-U06C7A8PVLJ
2025-02-07 11:44:19

Let me know if this helps

James Turner (jturner@shield-legal.com)
2025-02-07 11:45:07

I think that might actually be what I need..

James Turner (jturner@shield-legal.com)
2025-02-07 11:45:30

I didn't realize we had data on postgresql that still wasn't viewed over

James Turner (jturner@shield-legal.com)
2025-02-07 11:46:30

Do you see a way to share it with me, or to create a view to Bigquery?

deleted-U06C7A8PVLJ
2025-02-07 11:53:32

I honestly am not sure how to do that

deleted-U06C7A8PVLJ
2025-02-07 11:54:26

I know it is tipmaster ---> schemas ---> public ----> Tables ----> financiallog

deleted-U06C7A8PVLJ
2025-02-07 11:54:40

Hence FROM public.financial_log

James Turner (jturner@shield-legal.com)
2025-02-07 11:54:48

Hhm- I'm not either, but it's important that I get access to that postgresql data if we wanna make this finance table make any sense.

deleted-U06C7A8PVLJ
2025-02-07 11:54:49

So in bigquery should be from financial_log table?

deleted-U06C7A8PVLJ
2025-02-07 11:54:58

Yes I agree

James Turner (jturner@shield-legal.com)
2025-02-07 11:55:10

Do you have access to Bigquery?

deleted-U06C7A8PVLJ
2025-02-07 11:55:14

Yes

James Turner (jturner@shield-legal.com)
2025-02-07 11:55:51

I apologize for taking you away from what you were doing but can you check to see if it is mirrored on Bigquery. I looked through every table but I /hope/ I just missed it

deleted-U06C7A8PVLJ
2025-02-07 11:56:21

No problemo I shall take a quick look

deleted-U06C7A8PVLJ
2025-02-07 11:57:22

I think might be this one

deleted-U06C7A8PVLJ
2025-02-07 11:57:56

At least for that specific column / field name

deleted-U06C7A8PVLJ
2025-02-07 11:58:06

If not we may need to ask Ryan where he is getting that data from

James Turner (jturner@shield-legal.com)
2025-02-07 12:01:08

Well shit- This might be it.. I wonder if I overlooked it because the number of rows don't make sense

James Turner (jturner@shield-legal.com)
2025-02-07 12:01:24

we have 645,000 leads in LR, and this only has 110k rows]

deleted-U06C7A8PVLJ
2025-02-07 12:01:58

Hmm not sure about the discrepancy but it is the closet table I can find for that field name

James Turner (jturner@shield-legal.com)
2025-02-07 12:04:36

That table that you originally showed me in Postgres

James Turner (jturner@shield-legal.com)
2025-02-07 12:04:42

How many rows does it have?

deleted-U06C7A8PVLJ
2025-02-07 12:06:26
deleted-U06C7A8PVLJ
2025-02-07 12:06:30

110195 is what I am seeing

James Turner (jturner@shield-legal.com)
2025-02-07 12:06:45

Weird.

deleted-U06C7A8PVLJ
2025-02-07 12:07:12

Unless these are just "billable" and others are not billable ones

deleted-U06C7A8PVLJ
2025-02-07 12:07:25

Or just intakes and not post retainer stuff

deleted-U06C7A8PVLJ
2025-02-07 12:07:29

Possible idea

James Turner (jturner@shield-legal.com)
2025-02-10 15:01:22

On my way in now

James Turner (jturner@shield-legal.com)
2025-02-10 15:01:28

Just coming back from lunch

James Turner (jturner@shield-legal.com)
2025-02-10 15:13:42
👀 deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-02-18 13:27:58

Hey man, welcome back! How was your day off?

deleted-U06C7A8PVLJ
2025-02-18 13:49:41

Thank you James. It was nice to take a Monday off 🙌:skintone2:

deleted-U06C7A8PVLJ
2025-02-18 13:49:49

How was your weekend

deleted-U06C7A8PVLJ
2025-02-18 16:26:57

Got my script to work and working on creating a nice little dashboard to view

deleted-U06C7A8PVLJ
2025-02-18 16:27:04

This is what I got so far with the dashboard

deleted-U06C7A8PVLJ
2025-02-18 16:27:30

Abe (our client) his favorite color is orange so for some extra points I went with that theme lol

James Turner (jturner@shield-legal.com)
2025-02-18 16:27:39

Nice!

James Turner (jturner@shield-legal.com)
2025-02-18 16:27:47

I was thinking "Wow this is really orange"

😆 deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-02-18 16:27:57

How did you get that orange is his favorite color?

deleted-U06C7A8PVLJ
2025-02-18 16:28:14

Everyone is asking me that question haha

deleted-U06C7A8PVLJ
2025-02-18 16:28:34

Brittany told me from a conversation she had with one of his employees who makes him plenty of tables

deleted-U06C7A8PVLJ
2025-02-18 16:28:44

She was informed orange is his favorite table color

James Turner (jturner@shield-legal.com)
2025-02-21 12:46:18
James Turner (jturner@shield-legal.com)
2025-02-21 12:46:29
deleted-U06C7A8PVLJ
2025-02-21 13:18:14

Thank you ! I have access

deleted-U06C7A8PVLJ
2025-02-21 13:18:17

:catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2025-02-24 12:50:19

Good morning James

deleted-U06C7A8PVLJ
2025-02-24 12:50:32

I believe we have a 11am meeting with Ryan today

deleted-U06C7A8PVLJ
2025-02-24 12:51:08

I couldn't find my headset at home that I bring to work, is it cool we hop onto it / listen from your office ? If not I can ask sobo to borrow his

James Turner (jturner@shield-legal.com)
2025-02-24 12:51:35

Ryan is actually in office today!

deleted-U06C7A8PVLJ
2025-02-24 12:53:52

Oh I see same place like last time ?

James Turner (jturner@shield-legal.com)
2025-02-24 15:00:36

Is it okay if we push to 1:30?

deleted-U06C7A8PVLJ
2025-02-24 15:12:50

Yes

deleted-U06C7A8PVLJ
2025-02-24 15:13:05

Sorry for late reply, I was getting VSS opinion on our sub category sheet

James Turner (jturner@shield-legal.com)
2025-02-24 15:13:21

Lol you're good. I appreciate

deleted-U06C7A8PVLJ
2025-02-24 15:13:26

I think since we are making the tool for everyone it would only be fair to get their opinion too

James Turner (jturner@shield-legal.com)
2025-02-24 15:13:39

Good call

deleted-U06C7A8PVLJ
2025-02-24 15:13:44

Can it be in person for 1:30 pm since I didn't bring my head set today

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-03-03 14:42:56

Let's move the sync until tomorrow. Ryan's going over and it's throwing my whole schedule out

deleted-U06C7A8PVLJ
2025-03-03 15:13:58

Hey @James Turner Getting out my flatirons meeting. That works with me. Gives me more time to work on my code

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-03-05 11:24:55

Hey there, is there any way we can incorporate the subcat stuff first? Already seeing it where it would be helpful on a few other projects

deleted-U06C7A8PVLJ
2025-03-05 11:26:12

Good morning James ! Sure I think that should be a lot easier to do since that is just a vlookup / xlookup from my end and the Tort Type that one will take a bit (not hard) but will need to ensure that one is correct

👍 James Turner
deleted-U06C7A8PVLJ
2025-03-05 11:26:24

Once I am off my meeting with Ryan I can start that process (sub/cat) if needed

deleted-U06C7A8PVLJ
2025-03-05 11:26:36

Was working on Flatirons stuff today so far

James Turner (jturner@shield-legal.com)
2025-03-05 11:27:04

I appreciate! Just to clarify what I mean is the intake/bcl/secondary bools and the secondary_category

deleted-U06C7A8PVLJ
2025-03-05 11:27:33

Gotcha those two are needed first

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-03-05 12:25:08

I'm starting the process of the "All Case Types in LR" page into BQ and there are about 44 errors that are preventing things from being brought in as a proper boolian.

For example:

in column L, which is a true false for if it's a Sec case, instead of saying "Yes" it says SEC.

Am I okay to change those kind of things and clean it up?

deleted-U06C7A8PVLJ
2025-03-05 12:27:07

Sure that works with me

deleted-U06C7A8PVLJ
2025-03-05 12:27:28

At the moment Ryan has me working on his Financials

James Turner (jturner@shield-legal.com)
2025-03-05 12:27:45

Fun, Best of luck to you!

deleted-U06C7A8PVLJ
2025-03-05 12:28:38

Thank you ! I am writing up a SQL for it so once I have that good to go I shall send it to him to review and then run it since it will be updating contract revenue (costs) so no room for mistakes lol but if he gives me his okay on it before running should be good to go

James Turner (jturner@shield-legal.com)
2025-03-05 12:28:40

I'll keep you updated on my progress on this side- I wanted to make sure it was okay with you before I edit your thing haha

deleted-U06C7A8PVLJ
2025-03-05 12:29:01

What he mentioned made sense to me (For most part) but need to confirm this from his end and then I think I will be good to go from his end.

deleted-U06C7A8PVLJ
2025-03-05 12:29:10

Yes that works with me ! Feel free to make a copy of it and edit how you think is fit !

deleted-U06C7A8PVLJ
2025-03-05 12:29:31

Sorry Ryan and Flatirons has my attention this morning 😅

:meow_attention: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-03-05 12:29:41

Oop wrong one

:cat_roomba_exceptionally_fast: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-03-05 12:30:22

That is what I meant to click haha

deleted-U06C7A8PVLJ
2025-03-05 12:30:27

:meow_attention:

deleted-U06C7A8PVLJ
2025-03-05 12:30:31

I'll accept both haha

😆 James Turner
James Turner (jturner@shield-legal.com)
2025-03-05 14:58:10

How are you doing? Is it alright if we push to 1:30? hitting a flow

deleted-U06C7A8PVLJ
2025-03-05 14:59:16

Hey James. Sure that works with me

James Turner (jturner@shield-legal.com)
2025-03-05 15:09:55

Looking at this here, and it looks like the Docs cases are showing up as intake, do you know why that is?

deleted-U06C7A8PVLJ
2025-03-05 15:10:43

Which ones are you referring to exactly?

deleted-U06C7A8PVLJ
2025-03-05 15:10:52

Could be possible it has both but without the case type name I can't 100% say

James Turner (jturner@shield-legal.com)
2025-03-05 15:12:20

I may have read it wrong, because Im searching for dupes but the one populating as intake true is • CA Juvenile Hall Abuse DOCS - ACTS - ACTS - ACTS

James Turner (jturner@shield-legal.com)
2025-03-05 15:12:50

Looks like it might actually just be that one

deleted-U06C7A8PVLJ
2025-03-05 15:16:02

I went with DOCS since Alan told me that they are separating things based on case type name and I was informed DOCS meant docs

deleted-U06C7A8PVLJ
2025-03-05 15:16:06

I am not sure if that helps

James Turner (jturner@shield-legal.com)
2025-03-05 15:16:42

That makes sense, I think it was actually just that one case type that was incorrect

James Turner (jturner@shield-legal.com)
2025-03-05 15:16:46

all others look fine

James Turner (jturner@shield-legal.com)
2025-03-05 15:16:55

I can change on my end, sorry for confusion lol

deleted-U06C7A8PVLJ
2025-03-05 15:31:33

No worries ! I am in the google meets as we speak

James Turner (jturner@shield-legal.com)
2025-03-05 15:31:53

Oh just swing on by, sorry about that!

deleted-U06C7A8PVLJ
2025-03-05 15:32:34

Oh okay be there shortly

deleted-U06C7A8PVLJ
2025-03-06 14:04:59

PGadmin = 76

deleted-U06C7A8PVLJ
2025-03-06 14:05:36

BigQuery = 1048

deleted-U06C7A8PVLJ
2025-03-06 15:37:38

Update on screenshots above. I had the chance to review the data and looks like a lot of them matches the S1s between Ryan's table and the BigQuery table. The reason one is 1048 while other is 76 is because I think his table doesn't include specific statuses that are not "final" while the bigquery table has all statuses (final and disqualified, etc)

deleted-U06C7A8PVLJ
2025-03-06 15:38:04

Didn't realize this until now however that would explain the discrepancy between the #s

James Turner (jturner@shield-legal.com)
2025-03-06 15:39:15

Good catch! That is what I was trying to figure out earlier when I mentioned we didn't have status discrepancy on my table

deleted-U06C7A8PVLJ
2025-03-06 15:39:47

*Thread Reply:* Yeah I forgot about that but my main focus was to get all those S1s back lol

deleted-U06C7A8PVLJ
2025-03-06 15:39:21

Also comparing them now with just final statuses looks like PGAdmin does have more leads in final status + more leads that have S1s

James Turner (jturner@shield-legal.com)
2025-03-06 15:41:19

I see you trimmed " " but are you including blanks or "spaces" in those searches\

deleted-U06C7A8PVLJ
2025-03-06 15:41:43

Ahh that must be it !

deleted-U06C7A8PVLJ
2025-03-06 15:42:44

I believe it is only including ones that have values that are not blank and not spaces?

James Turner (jturner@shield-legal.com)
2025-03-06 15:43:25

If you add OR " " to the IS NOT NULL line

James Turner (jturner@shield-legal.com)
2025-03-06 15:43:29

do they show up the same?

James Turner (jturner@shield-legal.com)
2025-03-06 15:44:39

I think the trim just removes the empty spaces, but removing them wouldn't make it a null value

James Turner (jturner@shield-legal.com)
2025-03-06 15:44:47

I think

deleted-U06C7A8PVLJ
2025-03-06 15:47:44

I Think this one should be a one for one match between same query but one in pgadmin and one in bigquery showing pgadmin has more?

deleted-U06C7A8PVLJ
2025-03-06 15:49:18

I think this should remove ones that just have spaces to it " " and ones that are null and only keep ones with Signed e-Sign statuses

James Turner (jturner@shield-legal.com)
2025-03-06 16:16:30

Talked to ryan and actually learned some helpful stuff

James Turner (jturner@shield-legal.com)
2025-03-06 16:16:32

I can explain later

deleted-U06C7A8PVLJ
2025-03-06 17:48:08

Sounds good 🙌 I look forward to it for tomorrow (at home replying back since I just saw this 😅)

James Turner (jturner@shield-legal.com)
2025-03-10 14:54:46

Heyo~ How goes it?

deleted-U06C7A8PVLJ
2025-03-10 14:55:00

Hiya James. It is going well. How are you

James Turner (jturner@shield-legal.com)
2025-03-10 14:55:32

Doing well! Working on a lot of ryans stuff. I don't have much to update on, because I'm still sorting out the weird in most of it

James Turner (jturner@shield-legal.com)
2025-03-10 14:55:39

How about you?

deleted-U06C7A8PVLJ
2025-03-10 14:58:33

I hope there isn't too much weird stuff about it haha.

As for myself I am working on building this for Luis and Flatirons specifically:

There are a few parts that my script must do as well in order to inform Flatirons about discrepancies / data that needs to be adjusted from their end. I went ahead and wrote out what was discussed to me in a meeting I had with all the parties involved and got them to confirm with me thru email that this is what is needed and if so I shall build it just like this. Since last time I build the code the way that it was mentioned to me I did it like that, however one person asked me if I was factoring in something else when that wasn't told to me at all. So basically just having it documented that way if it wasn't something agreed on then they can't say it was me lol

deleted-U06C7A8PVLJ
2025-03-10 14:58:49

However I like to get your opinion about something for our 1:00 pm if you still have time

James Turner (jturner@shield-legal.com)
2025-03-10 14:59:48

Sure thing! Swing on by, Nick is here as well so we can talk to him

deleted-U06C7A8PVLJ
2025-03-10 15:00:00

Sounds good

deleted-U06C7A8PVLJ
2025-03-11 15:51:44

Hey James. I am looking at those tables you mentioned in bigquery and got together with aidan about it and we probably still need more clarity on it. Aidan had a task where he would calculate talk time for intakes and secondary, etc and he is transferring that task to me since Ryan wants me to do it but since it is my first time learning it I am not sure what I am looking for in the terms of what fields in the bigquery table wise and I showed Aidan the same thing and he isn't sure. Also based off what Ryan is saying he wants us three to get together to solve this and I feel like we may need David as well since he is the five9 guy. Aidan just needs to know "How to pull the reports" which then he will show me so that I can do it from my end too. However Aidan leaves before 2:00 pm and looks like Ryan needs us to have this solved by today for Rose for financials

James Turner (jturner@shield-legal.com)
2025-03-11 16:32:24

Sorry I left for lunch right before you sent that~

James Turner (jturner@shield-legal.com)
2025-03-11 16:33:15

Time time per section like screener, closer, ect is going to be a really difficult thing. It's on my radar but right now we have no way in the data to separate what job a person does.

James Turner (jturner@shield-legal.com)
2025-03-11 16:37:40

Even paylocity doesn't have that data

James Turner (jturner@shield-legal.com)
2025-03-11 16:38:07

We might be able to go by status change but it's not reliable

deleted-U06C7A8PVLJ
2025-03-11 16:39:27

Yeah I understand. Even Aidan said this will be difficult to calculate too

deleted-U06C7A8PVLJ
2025-03-11 16:39:50

And I think Ryan may think it is a simply task but I think we may need to add him into a meeting to discuss this with him or maybe David who works with five9 all the time

James Turner (jturner@shield-legal.com)
2025-03-11 16:44:51

I brought it up with Ryan briefly, and he told me not to worry about that part and just do the other aspects of financials for now. I didn't know he was passing it off to you guys

James Turner (jturner@shield-legal.com)
2025-03-11 16:45:04

I talked to David briefly but we can try again

deleted-U06C7A8PVLJ
2025-03-11 16:56:42

Oh okay I appreciate you talking to Ryan about this. If five9 is covered from his end you may let Ryan know that we are good from our end too since we did the connext and vici costs already and was just waiting on the five9 stuff

deleted-U06C7A8PVLJ
2025-03-11 16:56:50

But we can talk more about this tomorrow James.

deleted-U06C7A8PVLJ
2025-03-11 16:57:06

Since what he is passing to me is something new

James Turner (jturner@shield-legal.com)
2025-03-12 14:58:30

Hey there' I would like to get Nick in on our 1:1 for today if we can so we can talk over the request from Ryan and figure out what he needs + what he was getting from connex before

deleted-U06C7A8PVLJ
2025-03-12 14:58:55

Hey James ! Yeah that works for me

deleted-U06C7A8PVLJ
2025-03-12 14:59:02

I shall pop by then

deleted-U06C7A8PVLJ
2025-03-12 15:00:26
James Turner (jturner@shield-legal.com)
2025-03-12 15:01:00

Hes not in the office right now, but I'll let you know when he gets back in- he just stepped out.. but I'll take a look at that for now

James Turner (jturner@shield-legal.com)
2025-03-12 15:01:21

What is it supposed to do?

deleted-U06C7A8PVLJ
2025-03-12 15:01:28

Oh okay sounds good ! The top of it (line 1) I put the link to the spreadsheet that we use to calculate those values

deleted-U06C7A8PVLJ
2025-03-12 15:02:51

We basically take a report from connext and vici and paste those values in the spreadsheet to get the revenue costs. The spreadsheet / google sheets has formulas to it where it calculates the costs based on the values we put in which comes from a report from connext / vici.

deleted-U06C7A8PVLJ
2025-03-12 15:03:38

I wasn't shown how to generate those reports since I was told they are no longer or will no longer be using those anymore and be using just five9 so I had aidan generate those reports for me and from there he shared his screen and showed me how he calculated those values

James Turner (jturner@shield-legal.com)
2025-03-12 15:03:43

Just popped back in! Cmon by

deleted-U06C7A8PVLJ
2025-03-12 15:03:48

kk

James Turner (jturner@shield-legal.com)
2025-03-17 15:00:17

Gonna have to cancel today

James Turner (jturner@shield-legal.com)
2025-03-17 15:00:25

in with ryan and cam on something

deleted-U06C7A8PVLJ
2025-03-17 15:00:37

No worries James I understand

deleted-U06C7A8PVLJ
2025-03-17 15:00:55

Give me more time to go back to coding for Flatirons now that I finished Ryan's stuff (the S1s) last week

James Turner (jturner@shield-legal.com)
2025-03-18 14:01:51

Hey there, I just sent 2 google sheets to you, can you please take a look and see what leads these aren't lining up on and potentially why?

deleted-U06C7A8PVLJ
2025-03-18 14:02:40

Hey ! Sure I can take a look to provide my feedback :catroombaexceptionally_fast:

James Turner (jturner@shield-legal.com)
2025-03-18 14:10:02

Appreciate you

deleted-U06C7A8PVLJ
2025-03-18 14:11:48

No problemo ! May you send me SQL for it as well (the one you used to calculate your 99)

James Turner (jturner@shield-legal.com)
2025-03-18 14:12:08

https://console.cloud.google.com/bigquery?ws=!1m7!1m6!12m5!1m3!1stort-intake-professionals!2sus-central1!3s56adfece-87f0-414b-b717-61bf394d243b!2e1

accounts.google.com
James Turner (jturner@shield-legal.com)
2025-03-18 14:12:14

WITH rankeddata AS ( SELECT **, ROWNUMBER() OVER (PARTITION BY leadid ORDER BY statuschangetime DESC) AS rn FROM tort-intake-professionals.Financial_Log_Dataset.pctid_x_data_with_billable_status_and_rev_rates WHERE (status LIKE '%Signed e-Sign%' OR tostatus LIKE '%Signed e-Sign%') AND status NOT LIKE '%Secondary Interview%' ) SELECT ** FROM rankeddata WHERE rn = 1 AND DATE(statuschangetime) = DATE('2025-03-17') AND marketingsource = 'Shield Legal' -- AND intakebool = TRUE AND testbool = FALSE -- to do: Do not include tests

:cat_roomba_exceptionally_fast: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-03-18 14:12:16

Thank you

deleted-U06C7A8PVLJ
2025-03-18 14:16:22

First thing I noticed is some leads may be signed & declined while the dashbaord itself should be all signed e-signs that are not considered declines

deleted-U06C7A8PVLJ
2025-03-18 14:17:19

But since signed & declined doesn't have signed e-sign to it I think it may be a timing thing such as it was signed & final but the bigquery table needs to be ran again?

deleted-U06C7A8PVLJ
2025-03-18 14:17:24

To update it to signed & declined?

James Turner (jturner@shield-legal.com)
2025-03-18 14:18:14

Where are you seeing Signed and Declined? I'm not seeing those

deleted-U06C7A8PVLJ
2025-03-18 14:19:51

This one is part of the 99

deleted-U06C7A8PVLJ
2025-03-18 14:20:20

The status for both are not the same

deleted-U06C7A8PVLJ
2025-03-18 14:20:24

I think that may be part of it

James Turner (jturner@shield-legal.com)
2025-03-18 14:24:46

Interesting, yeah it looks like it is on intake under review on mine and does not show at all under is. I wonder if I change my query to have to include the to_status AND current status rather than OR

James Turner (jturner@shield-legal.com)
2025-03-18 14:25:59

I think that's part of it

James Turner (jturner@shield-legal.com)
2025-03-18 14:30:17

Also just updated the Ref table so in a bit I can re-generate

deleted-U06C7A8PVLJ
2025-03-18 14:39:13

Yeah I think that may be part of it

deleted-U06C7A8PVLJ
2025-03-18 14:59:04

Question James - non-work related; I know you mentioned you are into hiking and outdoors. Did you ever get into any anime or into specific T.V shows ?

James Turner (jturner@shield-legal.com)
2025-03-18 14:59:29

Lol a bit, I am watching Solo Leveling now and I am a big Cowboy Bebop fan

James Turner (jturner@shield-legal.com)
2025-03-18 14:59:33

What about you?

deleted-U06C7A8PVLJ
2025-03-18 15:01:41

I see I heard of them both. Cowboy bebop is a classic & heard good things about Solo Leveling.

deleted-U06C7A8PVLJ
2025-03-18 15:01:43

I finished watching Overlord & now watching full metal alchemist brotherhood since my friends told me I am not a true anime person unless I watch it lol

deleted-U06C7A8PVLJ
2025-03-18 15:01:58

One of my fav classic animes would be yu yu hakusho

James Turner (jturner@shield-legal.com)
2025-03-18 15:09:06

Haha I did enjoy FMAB quite a bit! It's been YEARS since I saw it

James Turner (jturner@shield-legal.com)
2025-03-18 15:09:46

I haven't seen yu yu hakusho but i heard good things!

James Turner (jturner@shield-legal.com)
2025-03-18 15:10:29

If you have a cheap projector or any projector really, I recommend using it to watch those older animes because the way it emulates those art styles are mint

James Turner (jturner@shield-legal.com)
2025-03-18 15:13:06

Ima head out for lunch but I'll be back later

deleted-U06C7A8PVLJ
2025-03-18 15:14:03

Yeah I heard good things about it (FMAB) and currently watching it so I can see why everyone loves it

Yeah I see what you mean. It's like playing an old video game. It's better with an old TV compared with new ones since it gives it a nicer touch to it

deleted-U06C7A8PVLJ
2025-03-18 15:14:09

Sounds good ! Enjoy

James Turner (jturner@shield-legal.com)
2025-03-19 12:02:40

Hey there, any other findings about discrepencies?

deleted-U06C7A8PVLJ
2025-03-19 12:07:18

Hiya James. Happy Wednesday

deleted-U06C7A8PVLJ
2025-03-19 12:08:06

That is the main discrepancy I found so far. If possible can we see an output of how that looks when it is resolved to then determine the next discrepancies (if there are any left)

James Turner (jturner@shield-legal.com)
2025-03-19 14:50:38

No meeting today, trying to figure out the ryan stuff + some stuff for tony

James Turner (jturner@shield-legal.com)
2025-03-19 14:50:49

but if you have any updates, feel free to slack me!

deleted-U06C7A8PVLJ
2025-03-19 15:00:27

Hey james ! Just coming back from lunch

deleted-U06C7A8PVLJ
2025-03-19 15:02:24

Understood. From my end I am working on a function that will take flatirons medical record report and place them in google cloud storage as folder (based on month year and day) to keep the raw data .xlsx there. Since there were multiple instances where we had to go back to them to show screenshots of proof where their system showed certain values they were questioning. So far it is going well !

deleted-U06C7A8PVLJ
2025-03-19 15:02:39

When you do have time I can show you how it looks once I also tweak some of the bugs

James Turner (jturner@shield-legal.com)
2025-03-19 15:50:05

Today is tough because I got an impromtu task from tony on top of the ryan one, but tomorrow works!

deleted-U06C7A8PVLJ
2025-03-19 16:09:47

No worries ! Hope all goes well with what tony is asking for including ryan's request :catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2025-03-24 02:00:08

Happy Birthday James 🎉🥳

James Turner (jturner@shield-legal.com)
2025-03-25 11:46:42

Hey there~ Thank you so much!! I really appreciate it

James Turner (jturner@shield-legal.com)
2025-03-25 11:46:53

Oh my gosh I just saw you sent that at midnight haha

James Turner (jturner@shield-legal.com)
2025-03-25 16:56:39

Beware of this-

James Turner (jturner@shield-legal.com)
2025-03-25 16:56:49

Looker just doesn't show it.

😦 deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-03-25 17:03:35

You mean when we do CTRL + F with it?

deleted-U06C7A8PVLJ
2025-03-25 17:03:41

Where it doesn't highlight it yellow but may be on there?

James Turner (jturner@shield-legal.com)
2025-03-25 17:03:48

Yeah

deleted-U06C7A8PVLJ
2025-03-25 17:04:04

Ah that makes sense. May need to export as excel / csv to do a comparison lol

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-03-25 17:04:05

Looker presents it as a unique letter for some reason

😆 deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-03-25 17:04:36

Making things works / match is definitely a unique thing here 🤣 joking

deleted-U06C7A8PVLJ
2025-03-25 17:04:48

At least that's what Looker is probably thinking

😆 James Turner
James Turner (jturner@shield-legal.com)
2025-03-26 12:44:25

Hey whatcha up to?

deleted-U06C7A8PVLJ
2025-03-26 12:45:06

Hey James. Taking a lunch prior to our meeting as we speak :catroombaexceptionally_fast:

James Turner (jturner@shield-legal.com)
2025-03-26 12:45:34

Cool! When we do our meeting I was wondering if you could take a look at this for me and tell me if it makes sense? https://docs.google.com/spreadsheets/d/1b9GRCOvmbiisRjG6_CmhjJ6KhdJE6aQg1TDrqYwH-HY/edit?usp=sharing

I need to go through on Lawruler and do the manual confirmation for each lead like on the manual confirmation tab.

deleted-U06C7A8PVLJ
2025-03-26 12:46:20

Sure I can 🙌:skintone2: I'll give you feedback on it when I'm back :catroombaexceptionally_fast:

James Turner (jturner@shield-legal.com)
2025-03-27 13:18:39

Hey there, I want to attempt to validate my finlog stuff. On the Shield Reconciliation tab, is that JUST shield as the marketing or everyone?

James Turner (jturner@shield-legal.com)
2025-03-27 13:18:59

I imagine just shield but I want to make sure

deleted-U06C7A8PVLJ
2025-03-27 13:19:21

Hey James. I would say it should be just SL

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-03-27 17:17:52

Heyo check it out

James Turner (jturner@shield-legal.com)
2025-03-27 17:18:11
deleted-U06C7A8PVLJ
2025-03-27 17:23:53

Send me the link of it one more time. Sorry. But based off the screenshot it looks very appealing tbh

:cat_roomba_exceptionally_fast: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-03-27 17:24:39

Those colors and design look more nicer on the eyes compared to darker colors, etc (enough though I like darker colors better but was told brighter colors are better for dashboards?) but looks nice !

deleted-U06C7A8PVLJ
2025-03-27 17:24:55

Even a disclaimer on there too is very wise

James Turner (jturner@shield-legal.com)
2025-03-27 17:25:14

I got a lil fancy with it and made a lil logo/icon to show it's the new system

James Turner (jturner@shield-legal.com)
2025-03-27 17:25:17

NewFin

deleted-U06C7A8PVLJ
2025-03-27 17:28:43

Yeah it is very clever ! Tomorrow I'll more into it for sake of time but looks nice to me !

deleted-U06C7A8PVLJ
2025-03-27 17:29:14

I can show you tomorrow as well the code stuff i've been doing for flatirons since I am just about finished with it but testing it over and over and adding some improvements here and there to ensure things goes as plan lol

deleted-U06C7A8PVLJ
2025-03-31 13:47:55

Good Morning James, Happy Mondays !

deleted-U06C7A8PVLJ
2025-03-31 13:48:09

I wanted to get your opinion about something.

deleted-U06C7A8PVLJ
2025-03-31 13:48:53

That one day we had a meeting between all of us in person with Ryan, he had sent joe a slack message and tagged him (joe) and myself. I did not see Joe reply back to it so I asked Ryan for a follow up (to see if joe message Ryan since I haven't heard of anything

deleted-U06C7A8PVLJ
2025-03-31 13:49:06

Then Ryan replied back with this:

deleted-U06C7A8PVLJ
2025-03-31 13:50:32

So my question is, to ensure I don't "over step my boundaries" is it possible for you and/or Ward to request it officially? I ask in the past from my experience, they have always told me "we need to see the request from your supervisor" which IT and Joe had told me that before. So having my supervisor or someone above me ask I think may solidify the request?

deleted-U06C7A8PVLJ
2025-03-31 13:51:27

I don't mind walking to IT and asking myself if needed but I think they may want something formal and from my higherups

James Turner (jturner@shield-legal.com)
2025-03-31 13:53:19

Hey there, happy Monday! I completely understand the hesitancy with this, you're golden! I'll draft up an email to send over today. I just had IT put in a third monitor for me so this is good timing

deleted-U06C7A8PVLJ
2025-03-31 13:54:11

Thank you I appreciate it ! Once you do send that over to them, I will then inform Ryan about it that way he is on the loop too since it sounds to me he wants to be on the loop as well

James Turner (jturner@shield-legal.com)
2025-03-31 13:54:34

Can you send me a screenshot of the request from Ryan to Joe?

deleted-U06C7A8PVLJ
2025-03-31 13:55:14

Also to be clear, I am not asking for a brand new laptop or for them to order me one; It would be to use a laptop that is already available where no one has claim it yet (which I was told they may have those)

👍 James Turner
deleted-U06C7A8PVLJ
2025-03-31 13:55:16

Yes one second

deleted-U06C7A8PVLJ
2025-03-31 13:56:35
deleted-U06C7A8PVLJ
2025-03-31 13:57:14

Then we received no reply nor any emoji reactions (from joe specifically)

James Turner (jturner@shield-legal.com)
2025-03-31 13:57:56

Please remind me your exact title again?

James Turner (jturner@shield-legal.com)
2025-03-31 13:58:12

was it Junior or Associate data engineer? I don't have all the paylocity stuff

deleted-U06C7A8PVLJ
2025-03-31 13:58:39

Yes it is Associate data engineer

👍 James Turner
deleted-U06C7A8PVLJ
2025-03-31 13:59:40

Technically it should be Junior based on what google says lol :catroombaexceptionally_fast: but I am okay with just data engineer too haha

😆 James Turner
James Turner (jturner@shield-legal.com)
2025-03-31 14:05:06

Can you send me the screenshot again but a little higher so It fully shows the date that message was sent

deleted-U06C7A8PVLJ
2025-03-31 14:12:27

Yes sorry

James Turner (jturner@shield-legal.com)
2025-03-31 14:12:44

No worries at all, Just wanted it saved for my records

James Turner (jturner@shield-legal.com)
2025-03-31 14:12:49

I sent an email out and CCed you on it

deleted-U06C7A8PVLJ
2025-03-31 14:13:10

Thank you ! I received that email too :catroombaexceptionally_fast:

James Turner (jturner@shield-legal.com)
2025-03-31 14:20:37

Hopefully that should get us a prompt follow up

deleted-U06C7A8PVLJ
2025-03-31 14:20:56

Yes I appreciate it 🙌:skintone2:

James Turner (jturner@shield-legal.com)
2025-03-31 16:15:22

Hey there, what happens when you go here: https://github.com/shield-legal/NewFin

deleted-U06C7A8PVLJ
2025-03-31 16:15:42

I get 404 this is not the web page you are looking for

James Turner (jturner@shield-legal.com)
2025-03-31 16:15:48

weird

deleted-U06C7A8PVLJ
2025-03-31 16:16:12

I think it is a permission thing (my guess)

James Turner (jturner@shield-legal.com)
2025-04-02 11:26:02

Hey there, do you know if the current/old financial system uses the rev rates IO table?

James Turner (jturner@shield-legal.com)
2025-04-02 12:30:12

Let me know what you get back from Ryan- I appreciate!

deleted-U06C7A8PVLJ
2025-04-02 12:30:21

Sounds like a plan @James Turner

James Turner (jturner@shield-legal.com)
2025-04-02 12:34:29

For Call time, is it total call time in Five9, Call time per campaign, or call time per billable lead or something else?

deleted-U06C7A8PVLJ
2025-04-02 12:40:19

*Thread Reply:* This i am not too sure. That is why I want to get together with Aidan about this to see how he calculates it

deleted-U06C7A8PVLJ
2025-04-02 12:39:58
deleted-U06C7A8PVLJ
2025-04-02 12:40:00

Ryan's reply back to this

James Turner (jturner@shield-legal.com)
2025-04-02 12:40:20

I'm not really sure what that means

deleted-U06C7A8PVLJ
2025-04-02 12:40:38

I think he is referring to the retainer

deleted-U06C7A8PVLJ
2025-04-02 12:40:55

The original intake?

James Turner (jturner@shield-legal.com)
2025-04-02 12:45:02

I believe for military records they lump multiple campaigns together and they can only do a military record one if the original campaign is already e-signed so we would just remove that entirely

deleted-U06C7A8PVLJ
2025-04-02 13:03:14

Ohhh I see what you are saying

James Turner (jturner@shield-legal.com)
2025-04-02 13:24:49

So far I am pulling all of the call time for any lead that went billable in the month of march

five9.date_and_hour,
five9.bill_time__rounded_,
five9.lead_id,
leadrate.io_call_time_minute_rate

FROM five9_source.five9_bulk_call_data_tabularv2 AS five9
RIGHT JOIN Financial_Log_Dataset.Billable_Leads_With_Rates AS leadrate  ON
SAFE_CAST(leadrate.leadid AS int64) = SAFE_CAST(five9.lead_id AS int64)
WHERE DATE(earliest_esign) BETWEEN '2025-03-01' AND '2025-03-31'

ORDER BY lead_id DESC, date_and_hour DES
deleted-U06C7A8PVLJ
2025-04-02 13:40:05

Coming back from lunch. I shall run this in BigQuery to see what you are seeing

James Turner (jturner@shield-legal.com)
2025-04-02 13:40:21

Hold off for now- Making some tweaks

deleted-U06C7A8PVLJ
2025-04-02 13:41:21

Oh okay sounds good. I shall talk to Aidan to see if he can pull the reports for this stuff for the other phone systems

deleted-U06C7A8PVLJ
2025-04-02 13:41:27

(other than five9)

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-04-02 13:43:01

Waiting for it to run now, but I am testing this:

  five9.date_and_hour,
  five9.bill_time__rounded_,
  five9.lead_id,
  leadrate.io_call_time_minute_rate,
  leaddata.client_firm,
  leaddata.old_name

FROM five9_source.five9_bulk_call_data_tabularv2 AS five9

RIGHT JOIN Financial_Log_Dataset.Billable_Leads_With_Rates AS leadrate
  ON SAFE_CAST(leadrate.leadid AS int64) = SAFE_CAST(five9.lead_id AS int64)

RIGHT JOIN Financial_Log_Dataset.Billable_Leads_Unique AS leaddata
  ON SAFE_CAST(leadrate.leadid AS int64) = leaddata.leadid

WHERE DATE(leaddata.earliest_esign) BETWEEN '2025-03-01' AND '2025-03-31'

ORDER BY five9.lead_id DESC, five9.date_and_hour DES
James Turner (jturner@shield-legal.com)
2025-04-02 13:43:15

That way we can split by Client Firm or by campaign for total talk time

deleted-U06C7A8PVLJ
2025-04-02 13:46:42

Yes that would be helpful !

James Turner (jturner@shield-legal.com)
2025-04-02 13:47:07
James Turner (jturner@shield-legal.com)
2025-04-02 13:47:30

Does this make sense?

deleted-U06C7A8PVLJ
2025-04-02 14:01:31

Sorry had some flatiron questions

deleted-U06C7A8PVLJ
2025-04-02 14:01:43

Are you referring to the SQL query or the results or both

deleted-U06C7A8PVLJ
2025-04-02 14:02:06

The results makes sense

deleted-U06C7A8PVLJ
2025-04-02 14:02:44

Then for the query itself I can see you are doing the CTE method which makes sense

James Turner (jturner@shield-legal.com)
2025-04-02 14:46:30

Sorry about that. We can talk privately in the 1:1 but Ahsan really had no place there, especially when he doesn't understand any of what it actually goes to

deleted-U06C7A8PVLJ
2025-04-02 14:48:32

No worries I understand. Yeah we can talk more about what you sent me at 1pm that works with me 🙌:skintone2:

deleted-U06C7A8PVLJ
2025-04-03 15:05:05

I got together with Dustin and told him I am ready to pass off my code to them. He said that is okay and I asked him if his team wants to write the script for Luis's email where it will email the firm the discrepancies and he told me he is fine with me doing it since his team doesn't specialize in JavaScript (specifically app scripts). So I shall work on that and afterwards he is going to take the coding stuff I worked on and merge it how he sees fit for SL / integration's team for Nick M

deleted-U06C7A8PVLJ
2025-04-03 15:06:00

Then at that point it will be 100% theirs.

deleted-U06C7A8PVLJ
2025-04-03 15:06:07

:catroombaexceptionally_fast:

James Turner (jturner@shield-legal.com)
2025-04-03 16:26:50

Heck yeah man, great job!

🙌:skin_tone_2: deleted-U06C7A8PVLJ
:laptop_parrot: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-04-03 16:27:11

Thank you :catroombaexceptionally_fast:

James Turner (jturner@shield-legal.com)
2025-04-07 12:22:45

Hey there, What is your Github Account?

deleted-U06C7A8PVLJ
2025-04-07 12:30:11

Hey James. I think it is EdwardHWeber

James Turner (jturner@shield-legal.com)
2025-04-07 13:08:19

Cool, I made a TIP ORG and added you

deleted-U06C7A8PVLJ
2025-04-07 13:12:05

Oh snaps ! That sounds exciting ! :meowattention: I can see the email invite for it thanks ! :catroombaexceptionallyfast:

deleted-U06C7A8PVLJ
2025-04-07 13:14:06
James Turner (jturner@shield-legal.com)
2025-04-07 13:35:30

Lots of background Noise on your end

deleted-U06C7A8PVLJ
2025-04-07 13:35:56

Oh sorry I mute myself

deleted-U06C7A8PVLJ
2025-04-07 13:35:58

Thanks for the heads up

👍 James Turner
deleted-U06C7A8PVLJ
2025-04-07 15:09:27

Hey James. I wanted to know if we can postpone the 1:15 meeting / coding session til I can figure out and finish Ryan's VSS monthly reconcile report for billing for Rose. Ryan stated he wants it around tomorrow morning and I am currently cleaning up the dashboard of Ryan's since the statuses are kind of a mess (Due to agents putting it in a billable status and then changing it to a non-billable status since it wasn't supposed to be in a billable status but Ryan's dashboard already captured it and I have to manually adjust those to remove them along with making sure I have the correct count of finals for each case type, etc).

deleted-U06C7A8PVLJ
2025-04-07 15:09:32
deleted-U06C7A8PVLJ
2025-04-07 15:10:42

Not only that, it isn't very clear to me which statuses are "finals / billable" for VSS / secondary for them since I see completed and sent statuses

deleted-U06C7A8PVLJ
2025-04-07 15:10:47

So I am assuming both are billable

James Turner (jturner@shield-legal.com)
2025-04-07 15:11:35

Please go ahead and throw that in the project chat so other ppl in the meeting + Nick Ward can see it, also please give any kind of ETA on how long that will take.

deleted-U06C7A8PVLJ
2025-04-07 15:15:29

Copy that @James Turner

deleted-U06C7A8PVLJ
2025-04-08 09:57:35

Hey James. Happy Tuesdays. When you get the chance, I want to talk to you about talk time for five9. That is the only thing that needs to be finished from my end for Ryan so that we can then let Rose the accountant know and she can bill the firm(s)

deleted-U06C7A8PVLJ
2025-04-08 09:58:16

I want to ensure we are calculating it correctly and I may need to pull Aidan on the side too since you did share your dashboard with me but I want to be on the safe side still by discussing it since I've never had to calculate the talk time minutes b4

deleted-U06C7A8PVLJ
2025-04-08 09:58:43

Also if possible if we can get this done any point today that would be greatly appreciated since Ryan wants to get together with me and Zek about it tomorrow

James Turner (jturner@shield-legal.com)
2025-04-08 11:36:21

Sure thing! I'll swing by later and we can review~

deleted-U06C7A8PVLJ
2025-04-08 11:36:59

Thank you 🙌:skintone2:

James Turner (jturner@shield-legal.com)
2025-04-08 15:27:32

gotchu

James Turner (jturner@shield-legal.com)
2025-04-08 15:27:34
James Turner (jturner@shield-legal.com)
2025-04-09 13:28:10

Hey do you want me to try and get you some tech merch while I'm here?

deleted-U06C7A8PVLJ
2025-04-09 13:29:41

Hey James 🙌 I am not opposed to receiving any gifts 🙏 I hope you guys are having a great time 🙌

James Turner (jturner@shield-legal.com)
2025-04-09 13:34:17

I'll see what I can grab you. Stickers at least!

James Turner (jturner@shield-legal.com)
2025-04-09 13:34:28

I got some GitHub stickers lol

:cool_doge: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-04-09 13:41:04

Sweet ! :catroombaexceptionallyfast: I am looking forward to seeing them ! I may add them to my work laptop or my personal one at home 🙌:skintone_2:

James Turner (jturner@shield-legal.com)
2025-04-11 18:22:17

I got you! (Also available in white, I got one for you, one for ward)

deleted-U06C7A8PVLJ
2025-04-14 08:02:29

Oh snapps ! I like it :catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2025-04-14 08:02:34

Thank you @James Turner

deleted-U06C7A8PVLJ
2025-04-14 15:01:36

Hey James. I wanted to confirm that we are still good for our 1:00 pm?

deleted-U06C7A8PVLJ
2025-04-16 11:39:10

Github username: EdwardHWeber

James Turner (jturner@shield-legal.com)
2025-04-16 15:01:16

Hey there, Ward is out of the office right now, but I have something for you to work on when you get the time..

James Turner (jturner@shield-legal.com)
2025-04-16 15:02:12

Can you please research into docker and google cloud functions? I am writing up the code that combines monthly expenses and monthly profit and since it's much more intensive I'm doing it in python

James Turner (jturner@shield-legal.com)
2025-04-16 15:02:31

I want to make sure we are good to go to have it run on the cloud once it's ready

deleted-U06C7A8PVLJ
2025-04-16 15:04:45

Hey James ! That makes sense. I have created a few google cloud functions that we successful in automated processes. I am more familiar with gen 1 but I know gen 2 is the newest one so I can do research on that. Do you have anything particular that you want to know about or more interested in seeing example code?

James Turner (jturner@shield-legal.com)
2025-04-16 15:07:32

Check out the expensesandprofit.py file in the Newfin github and become familiar with it. If you still aren't added lemme know

James Turner (jturner@shield-legal.com)
2025-04-16 15:07:45

Note i'm still working on it

deleted-U06C7A8PVLJ
2025-04-16 15:10:08

That makes sense. I am looking at it as we speak and so far it is making sense to me

James Turner (jturner@shield-legal.com)
2025-04-16 15:10:31

Oh you got access?

James Turner (jturner@shield-legal.com)
2025-04-16 15:10:33

cool!

deleted-U06C7A8PVLJ
2025-04-16 15:11:39

from google.cloud import bigquery, secretmanager is my recommendation if you planning on using secret manager

deleted-U06C7A8PVLJ
2025-04-16 15:12:09

Yes

James Turner (jturner@shield-legal.com)
2025-04-16 15:12:26

so the issue I'm running into right now, is on my billableleadswithrates dataframe, my 'earliestesign' column is a timestamp, while the monthyearenddatepk is a date datatype and they aren't playing nice together

👀 deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-04-16 15:16:46

*Thread Reply:* Yup I had a similar issue too where the data types has to match what is shown in BigQuery schema or else it won't work

deleted-U06C7A8PVLJ
2025-04-16 15:12:27

If you need something to trigger it I can help you with creating a trigger such as a pub/sub

James Turner (jturner@shield-legal.com)
2025-04-16 15:13:29

I need to build some kind of method to turn them both into the same datatype

James Turner (jturner@shield-legal.com)
2025-04-16 15:14:17

We also need to go through every column on here and try and figure out what we should actually be adding up for monthly profit.

deleted-U06C7A8PVLJ
2025-04-16 15:18:14

*Thread Reply:* Monthly profit should be based on what Ryan has on his dashboard for TIP Financials dashboard v1.3 for "Profit X Month".

James Turner (jturner@shield-legal.com)
2025-04-16 15:18:51

*Thread Reply:* Oh shoot, good catch

James Turner (jturner@shield-legal.com)
2025-04-16 15:21:55

*Thread Reply:* Alright cool, so if you want to do some coding stuff, were gonna need to start converting our data to those points

James Turner (jturner@shield-legal.com)
2025-04-16 15:25:53

*Thread Reply:* 1. Billable Leads (count)

  1. Talk Time Mins (count)
  2. Talk Time Rev (Measure of Talk time Minutes per leadid x iocalltimeminuterate within BillableLeadsWithRates)
  3. Contract Revenue ( Figure out what this is. It might be a sum of casetypebillablerate but honestly idk)
  4. gross Rev
  5. agent comission (I am pretty sure this is in no way accurate right now because David handled comission directly without ryans involvement)
  6. director commission ( that isn't in monthly expenses so idk where he's getting that)
  7. total expense
  8. profit
James Turner (jturner@shield-legal.com)
2025-04-16 15:27:59

*Thread Reply:* Take a good read through that NewFin documentation I sent you, and make sure you understand how the code is working so far on expensesandprofit

James Turner (jturner@shield-legal.com)
2025-04-16 15:29:53

*Thread Reply:* I just updated the code to incclude the date standard btw

James Turner (jturner@shield-legal.com)
2025-04-16 15:32:58

*Thread Reply:* Go ahead and make a branch off main, and build some code that determines a count of billable leads per month off of the billableleadswithrates where the esign date matches the date of monthlyexpenses_processed

James Turner (jturner@shield-legal.com)
2025-04-16 15:33:47

*Thread Reply:* If you can make it in a seperate python file so we can import it as a function to keep it nice and clean that would be awesome but isn't 100% necessary

deleted-U06C7A8PVLJ
2025-04-16 16:07:22

*Thread Reply:* That works with me :catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2025-04-16 17:08:56

*Thread Reply:* I reviewed the table scheme for the two that you are referring to (billableleadswithrates) and iotipmonthlyexpenses along with the NewFin documentation as well. Along with, I took some valuable notes on how to calculate the director's commission which I shall share that with you along with the spreadsheet that is used for it:

Director Commission

James Turner (jturner@shield-legal.com)
2025-04-16 17:31:59

*Thread Reply:*

James Turner (jturner@shield-legal.com)
2025-04-16 15:15:35

It looks like pandas has a pd.to_datetime() function that we might be able to uise to simplify this whole thing

James Turner (jturner@shield-legal.com)
2025-04-16 15:17:38

If you can start digging into how we can have a cloud function read from github, and how we can trigger it, that would be super helpful

deleted-U06C7A8PVLJ
2025-04-16 15:19:14

*Thread Reply:* Copy that. Would you be open to using a pub/sub to trigger it? That is built in GCP and I have some code already built for triggering it by a pub/sub.

James Turner (jturner@shield-legal.com)
2025-04-16 15:21:15

*Thread Reply:* Potentially, or we can schedule it since it's going to be in mainly python. What would be the trigger for it?

deleted-U06C7A8PVLJ
2025-04-16 15:21:41

*Thread Reply:* Pub/sub is basically a message that will trigger the function. If we were to trigger it through github we will have to use github actions which I was told there is a limit on how many we have a month but pub/sub we can have as much as we want.

deleted-U06C7A8PVLJ
2025-04-16 15:23:04

*Thread Reply:* Essentially we can define what that message is and when it finds it it will run. But since it is just one function itself and no other functions, the topic (pub/sub) will automatically see that a message is inside the topic and will trigger it

deleted-U06C7A8PVLJ
2025-04-16 15:24:15

*Thread Reply:* What triggers the pub/sub will be cloud scheduler.

Cloud scheduler --> Topic (pub/sub) --> Pub/sub subscription sees message --> cloud function runs.

deleted-U06C7A8PVLJ
2025-04-16 15:24:31

*Thread Reply:* We tell what time cloud scheduler runs and then the rest flows.

deleted-U06C7A8PVLJ
2025-04-16 15:26:05

*Thread Reply:* So essentially when you have the code built I can then help you create the pub/sub topic and subscription and how to set it up on cloud scheduler and the rest will flow easily (for the most part)

James Turner (jturner@shield-legal.com)
2025-04-16 15:26:43

*Thread Reply:* Cool that might work well! Thank you

deleted-U06C7A8PVLJ
2025-04-16 15:27:28

*Thread Reply:* You're welcome

James Turner (jturner@shield-legal.com)
2025-04-16 15:20:28

Sorry getting lost in threads- you're right to approach it that way though since were looking at a few different issues

deleted-U06C7A8PVLJ
2025-04-16 15:30:05

Ultimately we are using python to do some intensive calculations in order to create and update a bigquery table which will reflect the monthly profit?

James Turner (jturner@shield-legal.com)
2025-04-16 15:30:26

exactly!

James Turner (jturner@shield-legal.com)
2025-04-16 15:30:38

It can be done in sql but it's gonna be slow and expensive

James Turner (jturner@shield-legal.com)
2025-04-16 15:31:05

pythons going to be much better at doing math quickly and efficently.

deleted-U06C7A8PVLJ
2025-04-16 15:32:01

That makes sense. What is the cadence for this function?

James Turner (jturner@shield-legal.com)
2025-04-17 11:23:38

Hey there~ I updated the code on expensesandprofit.py last night, to be a lot easier to read\

James Turner (jturner@shield-legal.com)
2025-04-17 11:23:44

Lemme know what you think

deleted-U06C7A8PVLJ
2025-04-17 11:24:04

Hey James ! Thank you I will run a fetch to see those updates

deleted-U06C7A8PVLJ
2025-04-17 11:24:55

Also I am excited to work on a project other than Flatirons ^^

James Turner (jturner@shield-legal.com)
2025-04-17 11:25:20

I'm excited to code with you lol

:laptop_parrot: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-04-17 11:27:38

Same. So I thought my seat was going to be moved

James Turner (jturner@shield-legal.com)
2025-04-17 11:27:51

Was it not?

deleted-U06C7A8PVLJ
2025-04-17 11:27:56

But apparently Joe miss calculated or read or something similar to that nature and it is going to be the same spot

deleted-U06C7A8PVLJ
2025-04-17 11:27:57

lol

James Turner (jturner@shield-legal.com)
2025-04-17 11:28:16

I thought they were swapping the first 2 rows??

deleted-U06C7A8PVLJ
2025-04-17 11:29:05

Same but they are just moving the medical recorders peeps instead

deleted-U06C7A8PVLJ
2025-04-17 11:29:24

So I get to keep my spot next by the table that is used for b-day parties and food

deleted-U06C7A8PVLJ
2025-04-17 11:29:28

😇

deleted-U06C7A8PVLJ
2025-04-17 11:29:33

lol

James Turner (jturner@shield-legal.com)
2025-04-17 11:30:09

Lol I'm happy for you! That's a good spot

:meow_party: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-04-17 11:30:43

Agreed 🙌:skintone2:

James Turner (jturner@shield-legal.com)
2025-04-17 11:31:06

I love that gif so much lol

James Turner (jturner@shield-legal.com)
2025-04-17 11:31:15

It's good vibes

James Turner (jturner@shield-legal.com)
2025-04-17 11:31:34

the dancing cat

James Turner (jturner@shield-legal.com)
2025-04-17 11:31:48

and parrot

deleted-U06C7A8PVLJ
2025-04-17 11:32:13

Yes and my fav of all times is

deleted-U06C7A8PVLJ
2025-04-17 11:32:16

:catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2025-04-17 11:32:49

If I could make this into a sticker or a shirt or a mascot I would be fulfilled in life

James Turner (jturner@shield-legal.com)
2025-04-18 11:37:15

Hey good morning- I dug into the Building "Monthly Expenses Processed" last night and ultimately couldn't find a solution I loved before heading out so I'm going to dig into it a bit this morning along with some other pieces for the Newfin code

deleted-U06C7A8PVLJ
2025-04-18 11:40:09

Great Morning James ☀️

deleted-U06C7A8PVLJ
2025-04-18 11:40:21

That makes sense. Some pieces I am still trying to piece together lol

James Turner (jturner@shield-legal.com)
2025-04-18 11:40:24

How did the Flatirons stuff go?

deleted-U06C7A8PVLJ
2025-04-18 11:41:02

As of right now I am currently working on the newfin stuff such as mapping out how the field names are similar to each other so that when we have to "rebuild" some of the tables we can do one for one matching as per our previous discussion

🙏 James Turner
James Turner (jturner@shield-legal.com)
2025-04-18 11:41:27

*Thread Reply:* You are awesome lol

deleted-U06C7A8PVLJ
2025-04-18 11:42:27

*Thread Reply:* So far each tab will be each table name and inside the tab will be the schema and example values

deleted-U06C7A8PVLJ
2025-04-18 11:42:46

*Thread Reply:* Then I will have a tab that will do the matching part and determine what in common and what isn't

James Turner (jturner@shield-legal.com)
2025-04-18 11:41:07

I wrote like 3 or 4 functions last night trying to find something to work but they all felt off or had some unintended consiquence.

deleted-U06C7A8PVLJ
2025-04-18 11:43:19

*Thread Reply:* That makes sense. Do you think you need more clarity from Ryan on how that column is determined?

deleted-U06C7A8PVLJ
2025-04-18 11:41:13

The flatirons stuff wasn't hard since majority of it automated so far

James Turner (jturner@shield-legal.com)
2025-04-18 11:51:24

Came up with something new while half asleep last night and ran it through AI to check it this morning..

:eyes_3d: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-04-18 11:52:30

```# ==================================== Building "Monthly Expenses Processed" ========================================

monthlyexpensesprocessed = (iotipmonthlyexpenses.assign(sumofexpenses=lambda df: df.sum(axis=1,numericonly=True) )[['monthyearenddatepk', 'sumofexpenses']] .rename(columns={'monthyearenddatepk': 'monthandyear'})) print(monthlyexpensesprocessed)

====================================================================================================================```

James Turner (jturner@shield-legal.com)
2025-04-18 11:52:46

AI response: The two snippets do the “same” end‐result—one row per month, one total per row—but under the hood they’re quite different:

  1. No explicit loop vs. a pointless loopYour original: • python • • for row in iotipmonthlyexpenses: • monthlyexpensesprocessed['monthandyear'] = … # repeats the _entire column assignment every iteration • monthlyexpensesprocessed['sumofexpenses'] = … # repeats the entire sum computation every iteration • You’re re‑assigning those full columns once for each row in your DataFrame—so if you have 100 months you do 100 redundant copies of the same work. ◦ • .assign() version: ◦ Pandas does the sum once, in a single vectorized operation, no Python‐level loop at all.
  2. dropna() vs. sum(..., numeric_only=True)Your original used io_tip_monthly_expenses.dropna().sum(axis=1, …). ◦ By default, dropna() with no arguments drops any row that has any NaN in any column. You’ll lose rows you might’ve wanted to keep. • With df.sum(axis=1, numeric_only=True) ◦ pandas will skip over (not drop) non‑numeric columns and NaNs within each row, so you still get a total even if one of your expense columns was null that month.
  3. Cleaner, self‐documenting code
  4. python
    1. iotipmonthly_expenses
  5. .assign(sumofexpenses=lambda df: df.sum(axis=1, numeric_only=True))
  6. [['monthyearenddatepk','sumofexpenses']]
  7. .rename(columns={'monthyearenddatepk':'monthandyear'})
  8. – you can read it top to bottom as “take your table, add a column that is
  9. its row‑wise sum, then select & rename.” No temp DataFrames, no reassign inside a loop, no accidental data loss from dropna().
  10. Performance
  11. Every pandas vectorized operation is written in C under the hood; Python loops are orders of magnitude slower. As your table grows, the difference will scale up. Bottom line: Your logic ends up “looking” similar, but using .assign(... sum(...)) is: • More efficient (no repeated work) • Safer (doesn’t nuke rows with any NaN) • More idiomatic (1 line vs. 5+ lines of setup + loop)
deleted-U06C7A8PVLJ
2025-04-18 11:53:22

That does make sense !

deleted-U06C7A8PVLJ
2025-04-18 11:53:29

I believe it stated you can go that approach or groupby

deleted-U06C7A8PVLJ
2025-04-18 11:53:42

I recall reading groupby works well for month to month cases

James Turner (jturner@shield-legal.com)
2025-04-18 11:53:55

I tried groupby last night. I don't remember why but for some reason the AI had some issue with it?

deleted-U06C7A8PVLJ
2025-04-18 11:54:52

Hmm, if you try the piece of code I have in github where it uses groupby and check it out with AI it should say it goes through each column and row

deleted-U06C7A8PVLJ
2025-04-18 11:55:08

But ultimately since there are two ways of doing it (based on what I am seeing so far) either way should do the trick

deleted-U06C7A8PVLJ
2025-04-18 11:55:42

To merge them into main I think we can just adjust the for loop to be what you put or what I put (groupby) then we can copy over the billable leads count lines and I think that should do the trick?

James Turner (jturner@shield-legal.com)
2025-04-18 12:01:57

Sorry about that! Im planting seeds to try and get you and I desks that are close by with a tv nearby so we can work together

James Turner (jturner@shield-legal.com)
2025-04-18 12:03:12

Testing your code now

deleted-U06C7A8PVLJ
2025-04-18 12:04:23

No worries ! I am down for that. They stated yesterday they weren't going to move my desk and Brittany's team but this morning they did and I was told they may move it again lol

James Turner (jturner@shield-legal.com)
2025-04-18 12:04:40

Wait what? They did move you?

James Turner (jturner@shield-legal.com)
2025-04-18 12:04:43

Where to?

deleted-U06C7A8PVLJ
2025-04-18 12:05:03

I asked Tony about it and he said it was IT and the only person I know who probably has the power to make those decisions is Joe

deleted-U06C7A8PVLJ
2025-04-18 12:05:10

Two rows to the right

deleted-U06C7A8PVLJ
2025-04-18 12:05:17

Almost to the middle

James Turner (jturner@shield-legal.com)
2025-04-18 12:49:46

thanks for building that out and figuring out secrets manager

James Turner (jturner@shield-legal.com)
2025-04-18 12:49:48

good job man

deleted-U06C7A8PVLJ
2025-04-18 12:50:30

You're welcomes James. I created a few cloud functions so I can share some of my knowledge on that

deleted-U06C7A8PVLJ
2025-04-18 12:51:04

Secret manager, cloud functions, cloud scheduler, gen 1, gen 2, etc that all has it's own documentation and luckily I was able to figure out a system to make them all work so I can share that with you for this project

deleted-U06C7A8PVLJ
2025-04-18 13:19:44

Okay I had created the pull request for the secret manager. Let me know if I did it correctly and also if you can check the code that would be greatly appreciated

deleted-U06C7A8PVLJ
2025-04-18 13:19:52

From my end it is working @James Turner

James Turner (jturner@shield-legal.com)
2025-04-18 13:20:29

Cool, I emailed ryan, and I'm making some tweaks to call stats, lemme wrap up these few lines rq and I'll check it out

deleted-U06C7A8PVLJ
2025-04-18 13:21:19

I took main, make a new branch called SecretManagerBranch then I adjusted the code, push the code to GitHub so now have that new branch and then requested a pull request

deleted-U06C7A8PVLJ
2025-04-18 13:21:46

Sounds good. Once that is approved then I will create a new branch from main and then transfer over the billable_leads code into it

James Turner (jturner@shield-legal.com)
2025-04-18 13:23:18

Looks good visually- pulling it down and testing now

:eyes_3d: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-04-18 13:26:34

Cool looks like it worked

🙌:skin_tone_2: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-04-18 13:26:53

:lets_go:

deleted-U06C7A8PVLJ
2025-04-18 13:26:58

Luis's fav emoji

James Turner (jturner@shield-legal.com)
2025-04-18 13:28:24

Merged into Master, tested on master and it looks good

:meow_attention: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-04-18 13:30:33

Sweet ! I shall now work on adding the other part of the code under neath what we got above

deleted-U06C7A8PVLJ
2025-04-18 14:36:44

Update:

deleted-U06C7A8PVLJ
2025-04-18 14:36:46

I sent in a new pull request into main. Feel free to review it when you get the chance.

Also once it is merged into master branch feel free to delete these two branches since master will now have everything:

BillableLeadsCount

Edward_Refactor

James Turner (jturner@shield-legal.com)
2025-04-18 14:40:04

Looking now

:eyes_3d: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-04-18 14:48:57

So it looks like you're running the query again, when we already have the results of that query saved in the code.

James Turner (jturner@shield-legal.com)
2025-04-18 14:49:47

The dataframe we want to reference is billableleadswith_rates. If we just want certain columns we can do that by indexing...

deleted-U06C7A8PVLJ
2025-04-18 14:51:18

Reviewing

James Turner (jturner@shield-legal.com)
2025-04-18 14:51:26

Looking now

James Turner (jturner@shield-legal.com)
2025-04-18 14:51:35

Just throwing notes out there as I review

deleted-U06C7A8PVLJ
2025-04-18 14:53:28

Ah I see you are referring to keeping the code dry

James Turner (jturner@shield-legal.com)
2025-04-18 14:54:10

So earlier in the code, I pull that table, and clean it (turn it to dataframe, standardize datatypes ect)

James Turner (jturner@shield-legal.com)
2025-04-18 14:55:02

So it looks like your logic is sound, but what we wanna do is create a new dataframe based off the current dataset we have. Looking for a way to display what I mean now

deleted-U06C7A8PVLJ
2025-04-18 14:55:26

I see exactly what you are referring too

deleted-U06C7A8PVLJ
2025-04-18 14:55:39

Redoing the query again and recreating another DF when it was created above

deleted-U06C7A8PVLJ
2025-04-18 14:55:43

for billableleadswithratesquery

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-04-18 14:58:53

making a tweak and I'll commit it so we can compare the differences

James Turner (jturner@shield-legal.com)
2025-04-18 15:26:38

I really like the way you built the logic for this!

James Turner (jturner@shield-legal.com)
2025-04-18 15:26:56

I need to get better at using groupby()

deleted-U06C7A8PVLJ
2025-04-18 15:28:20

Thank you :catroombaexceptionally_fast: & I need to get better at a lot of functions myself haha

James Turner (jturner@shield-legal.com)
2025-04-18 15:28:37

thanks for throwing the merge in there too

:laptop_parrot: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-04-18 15:29:27

Here I just commited, check out how I tweaked it. I kept the majority of your logic, but re-used a lot of the code we already built in

:eyes_3d: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-04-18 15:30:32

You committed into what branch?

James Turner (jturner@shield-legal.com)
2025-04-18 15:30:51

Your same branch, that way you can view em side by side

deleted-U06C7A8PVLJ
2025-04-18 15:31:41

Makes sense

deleted-U06C7A8PVLJ
2025-04-18 15:31:46

I am reviewing it and I like it ^^

James Turner (jturner@shield-legal.com)
2025-04-18 15:32:41

Honestly, it was a pretty simple tweak to get it working with the rest of the code

James Turner (jturner@shield-legal.com)
2025-04-18 15:32:47

Good stuff Edward!

James Turner (jturner@shield-legal.com)
2025-04-18 15:34:20

In retrospect I should change the variable name monthandyear to esignmonthand_year to be more clear

deleted-U06C7A8PVLJ
2025-04-18 15:35:52

Yeah I think the groupby function makes it simple

deleted-U06C7A8PVLJ
2025-04-18 15:36:01

I added a comment to it before we push to master

deleted-U06C7A8PVLJ
2025-04-18 15:36:06

Thank you :catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2025-04-18 18:01:43

I left a while ago but wanted to provide you an update in person but didn't see you at your office

deleted-U06C7A8PVLJ
2025-04-18 18:02:20

I pushed a new commit for your review and working on finding the fields that matches each other in that dataset

deleted-U06C7A8PVLJ
2025-04-18 18:02:45

Hopefully Monday I will have my same spot (desk) lol

James Turner (jturner@shield-legal.com)
2025-04-18 18:05:28

lol sorry about that, I stepped out for lunch

deleted-U06C7A8PVLJ
2025-04-19 06:57:44

No worries 🙂

James Turner (jturner@shield-legal.com)
2025-04-21 11:44:56

I'm using that .groupby(), .sum() method you came up with to add the by row revenue per lead

James Turner (jturner@shield-legal.com)
2025-04-21 11:44:58

good stuff

deleted-U06C7A8PVLJ
2025-04-21 11:45:33

Good morning @James Turner

deleted-U06C7A8PVLJ
2025-04-21 11:45:38

That is good to hear ^^

James Turner (jturner@shield-legal.com)
2025-04-21 11:46:07

I'm gonna push a commit soon to a new branch if you wanna check my work? I'm a little tired this morning so I need it lol

deleted-U06C7A8PVLJ
2025-04-21 11:46:40

Sounds good ! I can check. Also did you approve / commit my new branch into main? I added / adjusted just one line

deleted-U06C7A8PVLJ
2025-04-21 11:46:56

It is for the JSON secret. I updated it where it will look for the latest JSON key always

James Turner (jturner@shield-legal.com)
2025-04-21 11:47:00

I don't believe so but let me take a gander

James Turner (jturner@shield-legal.com)
2025-04-21 11:47:48

Nice!

James Turner (jturner@shield-legal.com)
2025-04-21 11:47:54

Looks much cleaner

James Turner (jturner@shield-legal.com)
2025-04-21 11:48:12

Merged!

deleted-U06C7A8PVLJ
2025-04-21 11:48:23

Thanks ! & Works the same. Just in case in the future others download the JSON file it won't affect older pipelines down the road

James Turner (jturner@shield-legal.com)
2025-04-21 11:48:31

Let me see if it causes any issues with my merge, if so no worries I'll manually throw it in

James Turner (jturner@shield-legal.com)
2025-04-21 11:49:01

wait no that's not the gif I wanted

James Turner (jturner@shield-legal.com)
2025-04-21 11:49:08

I wanted the actual brain blast lol

deleted-U06C7A8PVLJ
2025-04-21 11:49:32

😆

James Turner (jturner@shield-legal.com)
2025-04-21 11:50:03

I will definitely be keeping that for the future though haha

deleted-U06C7A8PVLJ
2025-04-21 11:50:57

I mean sometimes that may be more effective for certain cases such as flatirons projects 🤣

😆 James Turner
James Turner (jturner@shield-legal.com)
2025-04-21 12:06:25

Okay cool, feel free to take a look

deleted-U06C7A8PVLJ
2025-04-21 12:32:00

Sure once I get off lunch i shall review

deleted-U06C7A8PVLJ
2025-04-21 12:40:25

I shall review it :catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2025-04-21 14:01:48

Sorry Zek took my attention from 10:40 am to 11:00 am since dashboard wasn't matching and jumped into the meeting from 11:00 am to now so I shall be taking a look at the code in github

deleted-U06C7A8PVLJ
2025-04-21 14:02:11

When the SL dashboard doesn't match Zek usually comes to me or Esteban to see why that may be the case since SL dashboard doesn't have LR leads #s to it

James Turner (jturner@shield-legal.com)
2025-04-22 11:53:06

Hey there, when you say dashboard, which dashboard do you mean? tip v1.3?

deleted-U06C7A8PVLJ
2025-04-22 11:59:39

Hey James. I was referring to V1.2 however I just checked v1.3 and it is the same

deleted-U06C7A8PVLJ
2025-04-22 11:59:55

Both dashboards should show that same input. since one is for TIP to see and the other is for SL to see

James Turner (jturner@shield-legal.com)
2025-04-22 12:00:03

Gotcha, lemme seee

deleted-U06C7A8PVLJ
2025-04-22 12:00:06

Both gave me 956 for April 1st to April 20th

James Turner (jturner@shield-legal.com)
2025-04-22 12:06:05
deleted-U06C7A8PVLJ
2025-04-22 13:20:38

Also I reviewed the branch you were referring to which is Lead-total_values which I think it is good to push to main.

One thing I would think we should make adjustments would be for the renaming of the function called standardize_dates_to_datetime .It’s actually turning the date into a 'YYYY-MM' string, not keeping it as a datetime, so the name’s a bit misleading. Maybe something like convert_date_to_month_string would be more clear?

deleted-U06C7A8PVLJ
2025-04-22 13:21:22

dataframe[columnname] = pd.todatetime(dataframe[columnname]) dataframe[columnname] = dataframe[column_name].dt.strftime('%Y-%m') Top line makes it into a datetime data type and bottom line makes it into a string for a date

James Turner (jturner@shield-legal.com)
2025-04-22 14:52:19

Good catch, I'm looking into it now. In the first section we do change it to a datetime, but where I initially thought we were just 'cropping' that value, it looks like we are turning it into a string

deleted-U06C7A8PVLJ
2025-04-22 14:53:24

Yeah and depending on how we have it in BigQuery (the datatype) we may want to keep it as a string or datetime data type

James Turner (jturner@shield-legal.com)
2025-04-23 12:48:07

Heyo~ I think I found a way to make those changes to the table names like you mentioned

James Turner (jturner@shield-legal.com)
2025-04-23 12:48:25

We can't change the names at the sources because Bigquery limitations BUT..

deleted-U06C7A8PVLJ
2025-04-23 12:48:31

Hey James ! Yeah there is a sql query you can run to change them

James Turner (jturner@shield-legal.com)
2025-04-23 12:48:42

Oh? and it works in BQ?

James Turner (jturner@shield-legal.com)
2025-04-23 12:48:44

Whatcha got?

James Turner (jturner@shield-legal.com)
2025-04-23 12:49:11

I was gonna say we can change the names in the scheduled queries and re-generate the middleware tables

deleted-U06C7A8PVLJ
2025-04-23 12:49:16

Yeah I figured it out and I can share you my notes

deleted-U06C7A8PVLJ
2025-04-23 12:49:35
deleted-U06C7A8PVLJ
2025-04-23 12:49:53

As for table names I haven't tried that yet

deleted-U06C7A8PVLJ
2025-04-23 12:49:58

But for field names this works

deleted-U06C7A8PVLJ
2025-04-23 12:50:55

I shall try table name here one second

James Turner (jturner@shield-legal.com)
2025-04-23 12:51:29

We just have to be really careful and methodical about how we do this because if we change it at the source first, it can break scheduled queries.

deleted-U06C7A8PVLJ
2025-04-23 12:53:51

Okay looks like we are able to change table names and column names by simply using ALTER TABLE

deleted-U06C7A8PVLJ
2025-04-23 12:54:10

Yes I agree, we should modify the pipeline (coding and queries, etc) prior to changing it or at the same time

James Turner (jturner@shield-legal.com)
2025-04-23 12:54:38

Have we tested? I'm seeing conflicting info on the internet

James Turner (jturner@shield-legal.com)
2025-04-23 12:54:42
deleted-U06C7A8PVLJ
2025-04-23 12:54:54

The screenshots I shared with you is what I just did right now

deleted-U06C7A8PVLJ
2025-04-23 12:55:00

Not google images

James Turner (jturner@shield-legal.com)
2025-04-23 12:55:05

Well dang, it looks like they updated.

James Turner (jturner@shield-legal.com)
2025-04-23 12:55:10

That's awesome

deleted-U06C7A8PVLJ
2025-04-23 12:55:24

I had chatgpt long time ago and it said no we can't. Then I clicked on "Search internet" and then it said yes.

James Turner (jturner@shield-legal.com)
2025-04-23 12:55:48

lol love that

deleted-U06C7A8PVLJ
2025-04-23 12:55:49

Esteban is going to school for his data stuff and he stated to me we should be able to change it through ALTER TABLE and he was right

James Turner (jturner@shield-legal.com)
2025-04-23 12:56:03

Shout out Esteban!

deleted-U06C7A8PVLJ
2025-04-23 12:56:09

:catroombaexceptionally_fast:

deleted-U06C7A8PVLJ
2025-04-23 12:56:24

But I think they should update it where we can change it in GUI if we have admin access lol

James Turner (jturner@shield-legal.com)
2025-04-23 12:56:35

Now we just gotta audit what tables we actually use, and work backwards lol

deleted-U06C7A8PVLJ
2025-04-23 12:57:14

Agreed 🙌:skintone2: Also how can I help you with the Ryan's project stuff

James Turner (jturner@shield-legal.com)
2025-04-23 12:57:54

I made some tweaks to it I need to update you on, it looks like we are set for this meeting with Ryan in a few and I'm sure we will pick up more tasks there lol

deleted-U06C7A8PVLJ
2025-04-23 12:58:33

Yeah I am open to give you my feedback and also see how I can help make it easier for you as well 🙌:skintone2:

deleted-U06C7A8PVLJ
2025-04-23 12:58:47

I may not be on that meeting thought since I checked my calendar and don't have an invite lol

deleted-U06C7A8PVLJ
2025-04-23 12:58:58

So may be between you and him and others

James Turner (jturner@shield-legal.com)
2025-04-23 13:32:51

Yeah it looks like it's Mcfadden, Brian and I but I do have a task for you- we will go over it later

deleted-U06C7A8PVLJ
2025-04-23 13:50:22

Sounds good James. Just came back from lunch so just seeing this now

James Turner (jturner@shield-legal.com)
2025-04-23 14:08:44

Taking lunch in a few mins but I'll sync with you when I get back

deleted-U06C7A8PVLJ
2025-04-23 14:08:58

Sounds good enjoy your lunch 🙌:skintone2:

deleted-U06C7A8PVLJ
2025-04-23 14:09:11

I also got some sushi from smiths if you want some?

deleted-U06C7A8PVLJ
2025-04-23 14:09:21

I got 4 packs and ate three 😅

James Turner (jturner@shield-legal.com)
2025-04-23 14:11:05

Lol that's a lot of sushi!

deleted-U06C7A8PVLJ
2025-04-23 14:11:38

Yeah one wednesdays they have buy one and get one free

deleted-U06C7A8PVLJ
2025-04-23 14:11:52

Not as good as a sushi bar but its okay for its buck

James Turner (jturner@shield-legal.com)
2025-04-23 14:51:45

Let's push back our 1:1 if possible. I ended up getting stuck on the way to lunch so I got out at like 12:45

deleted-U06C7A8PVLJ
2025-04-23 15:11:00

No worries, my PC was MIA since Joe was installing stuff into my laptop and a driver into my desktop so just seeing this now

deleted-U06C7A8PVLJ
2025-04-23 15:14:29

I am almost done installing stuff with Joe with my laptop. Sorry for delay

James Turner (jturner@shield-legal.com)
2025-04-23 16:06:03

You're golden

deleted-U06C7A8PVLJ
2025-04-23 16:11:03

Thank you ! I invited you to the meeting with Darrel just in case you want to participate in learning how they pull custom reports in Litify since I learned today he can create them and if he creates it, I can rely on his report and not the firm since JP is known to change up those reports at a whim

James Turner (jturner@shield-legal.com)
2025-04-23 16:41:23

Cool, it may be beneficial so I'll try and join but depending on how friday goes I may have to opt out.

For the project for you, remember how we talked about how we can use the bones of compare_csv.py and use it with the google cloud api to pull data from LR to get a clear, automated report of the discrepancies between the two lists?

James Turner (jturner@shield-legal.com)
2025-04-23 16:50:25

I want to work with you on a piece that uses that to build a daily report, so you can see discrepencies daily, adjust what needs to be adjusted likely on the oldfin side, and report the results daily to ryan,mcfadden, ect

deleted-U06C7A8PVLJ
2025-04-23 16:52:32

Ohhh so build a cloud function that will compare it daily and gives us the output ?

👍 James Turner
deleted-U06C7A8PVLJ
2025-04-23 16:58:54

I think that would be a neat idea

James Turner (jturner@shield-legal.com)
2025-04-23 17:37:44

Exactly yeah- and that way you can go in and edit the leads on his end (and maybe ours) as needed to make sure they match up

deleted-U06C7A8PVLJ
2025-04-24 08:01:25

Good Morning James ☀️

deleted-U06C7A8PVLJ
2025-04-24 08:03:15

I see what you mean. I shall see how that can be done since I think what we have already set up may be good already (which is the code piece you made + pulling those reports from ryan's dashboard).

deleted-U06C7A8PVLJ
2025-04-24 11:34:56

Good morning James. I had received your email about a dashboard request

James Turner (jturner@shield-legal.com)
2025-04-24 11:40:25

Cool- This is a flatirons/dicello thing that mal is pulling us in on

deleted-U06C7A8PVLJ
2025-04-24 12:06:36

That makes sense ! 🙌:skintone2:

James Turner (jturner@shield-legal.com)
2025-04-24 12:07:20

Btw, I just wanted to say- You have really been kicking butt lately in not just keeping up with me and shifting projects, but actively working alongside me on the chaos

James Turner (jturner@shield-legal.com)
2025-04-24 12:07:25

and I see and appreciate that

James Turner (jturner@shield-legal.com)
2025-04-24 12:07:39

You're picking it all up quick and should feel proud'

deleted-U06C7A8PVLJ
2025-04-24 12:09:04

:headbanging_parrot:

deleted-U06C7A8PVLJ
2025-04-24 12:09:09

Thank you if I had long hair this is what I would be doing haha 🙌:skintone2:

🤣 James Turner
deleted-U06C7A8PVLJ
2025-04-24 12:09:35

After a while I get use to the "chaos" but I am liking what we are building and it is making more sense so it is exciting

deleted-U06C7A8PVLJ
2025-04-24 16:26:03

Hi @James Turner. I am comparing both sheets (Ryan's dashboard) and the query you posted for us to use to compare the difference

deleted-U06C7A8PVLJ
2025-04-24 16:26:15

I believe my next question is a yes but I shall ask to be in a safe side

deleted-U06C7A8PVLJ
2025-04-24 16:26:34

If the case type is NOT in the REF table then that can be a reason why it isn't in the query results?

James Turner (jturner@shield-legal.com)
2025-04-24 16:26:54

Yes! That is a reason it would not show up

deleted-U06C7A8PVLJ
2025-04-24 16:27:18

Oh okay I recalled you saying that but had to be on the safe side

deleted-U06C7A8PVLJ
2025-04-24 16:27:38

I shall go ahead and add those case type(s) since I think the "challenge" of it to be correct always is to always have that REF table up to date

👍 James Turner
deleted-U06C7A8PVLJ
2025-04-24 16:43:24

If a case type has a Yes for 'intakebool' and a Test for 'secondarycategory' does that mean it should not show up in the bigquery results?

deleted-U06C7A8PVLJ
2025-04-24 16:43:30

For same row

James Turner (jturner@shield-legal.com)
2025-04-24 16:44:28

It means that it was probably set up incorrectly on REF and that column needs to be checked lol

deleted-U06C7A8PVLJ
2025-04-24 16:45:03

Ah that makes sense !

deleted-U06C7A8PVLJ
2025-04-24 16:45:33

I'll just fix that row

James Turner (jturner@shield-legal.com)
2025-04-24 17:52:55

Just added lr casetype id 2016 if you wanna fill out the info on it

deleted-U06C7A8PVLJ
2025-04-25 07:59:27

Good morning @James Turner Sounds good I'd be happy to add it to the REF sheet

James Turner (jturner@shield-legal.com)
2025-04-25 11:17:41

Thanks much~

deleted-U06C7A8PVLJ
2025-04-25 11:22:11

Update I was able to add in that into the REF sheet also I did a pull request for main for NewFin with a tool that I think will be helpful based on what you were asking me to do above when it comes to comparing Ryan's dashboard with the new bigquery financial system

deleted-U06C7A8PVLJ
2025-04-25 11:22:29

If you have time I would like to share that with you and the reasoning for my approach as well

deleted-U06C7A8PVLJ
2025-04-25 11:23:35

In short it is very similar to the python one you shared with Esteban and I however I enhanced it and I have an idea on how to probably get it fully automated as well

James Turner (jturner@shield-legal.com)
2025-04-25 11:26:11

That's awesome! I'm excited to see it. I'm poking around right now to determine why those 10 leads made it into LR data but not into our system

James Turner (jturner@shield-legal.com)
2025-04-25 11:26:20

but lets set up some time today

James Turner (jturner@shield-legal.com)
2025-04-25 11:28:56

It looks like they got pulled into Billableleadsunique which is the first step in the pipeline

James Turner (jturner@shield-legal.com)
2025-04-25 11:29:06

but didn't get through the second one

deleted-U06C7A8PVLJ
2025-04-25 11:30:54

Thank you :catroombaexceptionally_fast: & Yeah I am a bit stumped. I looked at them very closely such as checking REF table if they are intakes, if they have the case type name on there, if it is a final status, I checked for dates (just in case it was time zone difference) etc so might be some type of logic that is excluding them and/or might be dustin's code due to law ruler having api limitations ? I am not 100% sure

James Turner (jturner@shield-legal.com)
2025-04-25 11:34:36

It has to be something in the scheduled query for billableleadswithratesand_lp

James Turner (jturner@shield-legal.com)
2025-04-25 11:34:41

that is filtering those out

James Turner (jturner@shield-legal.com)
2025-04-25 11:49:01

Figured it out. They were all getting flagged as test leads because their details contained the word test

James Turner (jturner@shield-legal.com)
2025-04-25 11:49:19
deleted-U06C7A8PVLJ
2025-04-25 11:50:02

Based on email address?

deleted-U06C7A8PVLJ
2025-04-25 11:50:10
deleted-U06C7A8PVLJ
2025-04-25 11:50:32

That would make sense

James Turner (jturner@shield-legal.com)
2025-04-25 11:51:56

I had the test filtering for most columns on because I was worried integrations would put it in weird places.

deleted-U06C7A8PVLJ
2025-04-25 11:52:16

I thought reporting was the only one who had that issue but that does make sense

deleted-U06C7A8PVLJ
2025-04-25 11:52:30

I am guessing the for loop is going through each column

deleted-U06C7A8PVLJ
2025-04-25 11:52:38

Probably just need to exclude that column specifically

James Turner (jturner@shield-legal.com)
2025-04-25 11:52:44

lol not quite, it's a lot simpler than that

James Turner (jturner@shield-legal.com)
2025-04-25 11:53:04
deleted-U06C7A8PVLJ
2025-04-25 11:53:06

That's even better if it is :laptop_parrot:

James Turner (jturner@shield-legal.com)
2025-04-25 11:53:23

Just a big ol scheduled query joining tables.

James Turner (jturner@shield-legal.com)
2025-04-25 11:53:43

Does this link take you to the scheduled query?

https://console.cloud.google.com/bigquery?tc=us:6866b3f4-0000-2a69-b6a2-14223bafee12&project=tort-intake-professionals&ws=!1m0

accounts.google.com
deleted-U06C7A8PVLJ
2025-04-25 11:53:56

Ah I see.

deleted-U06C7A8PVLJ
2025-04-25 11:53:57

Yes

James Turner (jturner@shield-legal.com)
2025-04-25 11:54:20

I'll cut them down to just include what's in that screenshot I sent

deleted-U06C7A8PVLJ
2025-04-25 11:54:21

But looks like it is a SL Org since I get: Access Denied: Table shield-legal-bi:leadspedia.allleads: User does not have permission to query table shield-legal-bi:leadspedia.allleads, or perhaps it does not exist. but otherwise I can still see the query

deleted-U06C7A8PVLJ
2025-04-25 11:54:34

Only cuz we are from the TIP's end

deleted-U06C7A8PVLJ
2025-04-25 11:55:43

I shall be going into a short meeting and I think I will be taking lunch afterwards

👍 James Turner
deleted-U06C7A8PVLJ
2025-04-25 11:56:41

Let me know if you are able to attend the 1:00 pm meeting with Darrel and I. Pretty much going to see how he creates custom reports in litify and how we can use it for Dicello and/or Flatirons stuff

deleted-U06C7A8PVLJ
2025-04-25 11:57:13

JP their coder there is known to change up scheduled reports all the time without telling anyone which has broken lots of our codes (some in silent and some not in silent)

deleted-U06C7A8PVLJ
2025-04-25 11:57:40

Darrel stated he can create custom scheduled reports that won't change which essentially will help keep our codes from breaking. Which is the purpose of it (why I am interested)

James Turner (jturner@shield-legal.com)
2025-04-25 11:59:53

I think we should be trying to move away from the scheduled reports in Lawruler, and build out those scheduled reports in GCP as of what Ward said but we can take a look!

deleted-U06C7A8PVLJ
2025-04-25 12:07:55

Oh darrel is scheduling that from Litify and not law ruler

James Turner (jturner@shield-legal.com)
2025-04-25 12:08:04

ahhhh gotcha

deleted-U06C7A8PVLJ
2025-04-25 12:08:06

salesforce **

James Turner (jturner@shield-legal.com)
2025-04-25 12:08:12

Sorry, I'm still booting up this morning haha

deleted-U06C7A8PVLJ
2025-04-25 12:09:01

No worries haha. Also the issue with just using GCP stuff (dustin's code) is sometimes it isn't always up to date (based on my experience and reporting experience) so since we don't want to look bad infront of the client some scheduled reports mixed with a little bit of python isn't a bad thing

deleted-U06C7A8PVLJ
2025-04-25 12:09:25

Like we had a time where specific days it didn't capture all the updates for specific leads, etc

deleted-U06C7A8PVLJ
2025-04-25 12:28:13

To confirm the link you sent me is the "new query" to check against ryan's dashboard and newfin ?

James Turner (jturner@shield-legal.com)
2025-04-25 13:13:22

uh no? here the scheduled query name I was referring to:

BillableLeadsWithRatesandleadspediadata SCHEDULED

James Turner (jturner@shield-legal.com)
2025-04-25 13:13:57

If the data in the pipeline isn't doing what you think it should be, check that query, as it goes through each data source that is necessary for the end table

deleted-U06C7A8PVLJ
2025-04-25 13:26:20

This one right?

James Turner (jturner@shield-legal.com)
2025-04-25 13:26:47

Yes~

deleted-U06C7A8PVLJ
2025-04-25 13:27:30

If that is the case I will let Ryan know that I may need you or someone who has access to SL project to run this query and send me the results. Reason I say that is because Ryan today posted he would like for me to send this to him daily which it gives me "Access Denied: Table shield-legal-bi:leadspedia.allleads: User does not have permission to query table shield-legal-bi:leadspedia.allleads, or perhaps it does not exist." error since I am not in SL project and I don't think i'd get access to that lol

deleted-U06C7A8PVLJ
2025-04-25 13:27:47

So basically may need you to run that query for me in the morning and later on I can provide him the update if needed (possible solution)

deleted-U06C7A8PVLJ
2025-04-25 13:28:17

Well he said after I do S1s and declines in the morning he wants it right away but I will have to tell him it will have to be later on the day lol

James Turner (jturner@shield-legal.com)
2025-04-25 13:28:30

So you don't need to run it- the result of the query is run every hour and spit out as tort-intake-professionals.FinancialLogDataset.BillableLeadsWithRatesand_lp

deleted-U06C7A8PVLJ
2025-04-25 13:29:23

Ahhh okay. I guess I was confused with what query I run to get the results to compare it to Ryan's old dashboard system

deleted-U06C7A8PVLJ
2025-04-25 13:29:40

Miscommunication from my part sorry. What query do I run for that?

deleted-U06C7A8PVLJ
2025-04-25 13:29:57

Like the one for tort-intake-professionals.FinancialLogDataset.BillableLeadsWithRatesand_lp. The same one I ran in the morning?

James Turner (jturner@shield-legal.com)
2025-04-25 13:30:19

so the query I gave you that pulls the shield legal ones specifically with the date filter

James Turner (jturner@shield-legal.com)
2025-04-25 13:30:25

runs on the tort-intake-professionals.FinancialLogDataset.BillableLeadsWithRatesand_lp table

James Turner (jturner@shield-legal.com)
2025-04-25 13:31:01

like it filters that table

deleted-U06C7A8PVLJ
2025-04-25 13:35:58

Gotcha. I found what I was referring to. I was asking if I still run this to get the results to compare it with dashboard:

deleted-U06C7A8PVLJ
2025-04-25 13:36:15

Just want to make sure this didn't change since I know you updated some SQL things

James Turner (jturner@shield-legal.com)
2025-04-25 13:36:41

Ahh gotcha, Yes that is still what you run lol

James Turner (jturner@shield-legal.com)
2025-04-25 13:36:55

I just needed to edit the source table for that so it included the proper tests

deleted-U06C7A8PVLJ
2025-04-25 13:37:21

Oh okay perfect. I was afraid that might of changed and now I have to run that other query that only SL individuals can run lol

deleted-U06C7A8PVLJ
2025-04-25 13:37:43

But the NewFin stuff is looking good ^^^

deleted-U06C7A8PVLJ
2025-04-25 13:37:55

I am impressed and can't wait til we polish / enhance the last parts of it

deleted-U06C7A8PVLJ
2025-04-25 13:38:00

:headbanging_parrot:

James Turner (jturner@shield-legal.com)
2025-04-25 13:38:03

Nah- Honestly I want to change the name of tort-intake-professionals.FinancialLogDataset.BillableLeadsWithRatesand_lp because it was never meant to become the defacto where everything is pulled from

James Turner (jturner@shield-legal.com)
2025-04-25 13:38:10

but it kinda just did

James Turner (jturner@shield-legal.com)
2025-04-25 13:38:22

but changing the name now would effect ryans pipelines too much

deleted-U06C7A8PVLJ
2025-04-25 13:39:07

Yeah I see what you mean. We can see with him what pipelines are using it and should be a simple change (I am hoping) since to have field names and table names, etc consistency will long term be better

deleted-U06C7A8PVLJ
2025-04-25 13:39:14

in my opinion

James Turner (jturner@shield-legal.com)
2025-04-25 15:00:36

Hey there, won';t be able to make it to that meeting but please share any notes you get if it seems relevant. I got pulled into other things

deleted-U06C7A8PVLJ
2025-04-25 15:00:52

Hey James ! No worries. I can do that for sure

deleted-U06C7A8PVLJ
2025-04-25 16:28:43

Meeting Notes:

Litify Field Names: • Litify uses two types of "field names": a. A display field name — this can be changed and is visible to all users. b. A UI (User Interface) field name — this is a unique ID tied to the field that does not change, similar to how Law Ruler assigns an ID to each case type. • Best Practice Reminder: • Darrel mentioned it is best practice to only update the display name that users see, without creating a new field (which would generate a new UI ID). • Historically, D.L. hasn't always followed this practice, so Darrel advised us to be mindful when making field name changes going forward. • Custom Reports from Darrel: • Darrel has the ability to create and schedule custom reports in Litify. However, only individuals with Litify access (currently Darrel and MRT) can directly receive these reports. • To work around this, Darrel schedules the report to send to himself and then uses Google Forward to automatically forward the email to specific recipients. • How JP Processes Reports: • Darrel explained that JP likely receives the scheduled reports, uses Python to combine the separate .csv files into a single .xlsx workbook, creating: ◦ Separate tabs for each individual report • An "All" tab that consolidates everything ◦ This process results in many duplicate records, which explains the duplicates we currently have to filter out in our code. • Next Steps (per Brittany): • Brittany emphasized that we need to request Darrel to only send Flatirons case types moving forward, as that is what Abe agreed upon. • We are scheduling a follow-up meeting with Darrel on Monday to finalize the best method for ensuring that we only receive the necessary data, without any extra/unneeded information.

deleted-U06C7A8PVLJ
2025-04-25 16:29:36

Also the other day you sent me a google sheets doc for Doug's project. I went ahead and created a flow chart to help assist as well and shared that with you. I am not sure where is everyone in this process but I do want to help in any areas that I can

James Turner (jturner@shield-legal.com)
2025-04-25 16:39:25

Thank you so much!

In reference to the google sheetr doc for dougs project, I got pulled in on it, but it's primary a brittany and Mcfadden task so they know more than I do

deleted-U06C7A8PVLJ
2025-04-25 16:40:20

You're welcome. If that is the case then I shall put a pause to it and discuss it with them since I don't wanna overstep my boundaries with it.

deleted-U06C7A8PVLJ
2025-04-25 16:40:49

Also I sent you an optional invite for the next meeting with Darrel. This one is just about receiving specific case types fields only.

deleted-U06C7A8PVLJ
2025-04-25 17:32:04

Have a great weekend James 🙌:skintone2:

James Turner (jturner@shield-legal.com)
2025-04-28 13:09:55

I'm, working on figuring out why 717873 isn't showing up and it's weird..

James Turner (jturner@shield-legal.com)
2025-04-28 13:10:18

717287 showed up after a little bit which makes me think it got caught oddly in scheduled queries

James Turner (jturner@shield-legal.com)
2025-04-28 13:10:34

but 873 is still not, despite showing up in other things

James Turner (jturner@shield-legal.com)
2025-04-28 13:11:45

it's so odd

deleted-U06C7A8PVLJ
2025-04-28 13:12:26

Yeah I thought the same thing tbh. Since everything else you showed me I checked

deleted-U06C7A8PVLJ
2025-04-28 14:28:54

Good afternoon James. I wanted to see if we are still good for today for our 1:00 pm

James Turner (jturner@shield-legal.com)
2025-04-28 14:32:07

Hey there, I moved it to 1:30 but otherwise we're good!

deleted-U06C7A8PVLJ
2025-04-28 15:30:56

*Thread Reply:* Available whenever you are. I am in the google meet 🙌:skintone2:

deleted-U06C7A8PVLJ
2025-04-28 14:33:48

Sounds like a plan 🙌:skintone2:

James Turner (jturner@shield-legal.com)
2025-04-29 16:07:59

I love that ryan started using :fastparrot:

James Turner (jturner@shield-legal.com)
2025-04-29 16:08:13

You're a trend setter

deleted-U06C7A8PVLJ
2025-04-29 16:14:09

:meow_attention:

deleted-U06C7A8PVLJ
2025-04-29 16:14:13

my work here is done

deleted-U06C7A8PVLJ
2025-04-29 16:14:14

joking

deleted-U06C7A8PVLJ
2025-04-29 16:14:36

Yeah I feel like everyone may be serious all the time so these emoji's (in my opinion) makes me more relaxed (in a way) lol

deleted-U06C7A8PVLJ
2025-04-29 16:15:03

I also saw him use the cat one the other day

James Turner (jturner@shield-legal.com)
2025-04-29 16:22:32

I think you're right. it's difficult but staying calm through the chaos makes it so much more doable

James Turner (jturner@shield-legal.com)
2025-04-29 16:22:38

and honestly more enjoyable

James Turner (jturner@shield-legal.com)
2025-04-30 14:59:25

Hey there~ Let's scratch the 1:1 today but if you can, please send me an update with any progress on getting that postgresql and bigquery data into sheets

deleted-U06C7A8PVLJ
2025-04-30 15:06:55

Hey James ! Thanks for the info. I was about to ask about the 1:1. As for the progress, as per our previous conversation with you and I, let me know if this is still true.

I had talked to Dustin on how to get that table (Ryan's table that he uses for the dashboard) into BigQuery and Dustin stated it requires setting up a different connection (That requires Ryan's input) and the data is going through AWS which is done through lambdas, etc. Long story short, he (Dustin) stated it isn't a simple process to do; therefore, I thought we both agreed that a simple copy and paste into the spreadsheets would be most efficient for the use of our time. Is this still true?

James Turner (jturner@shield-legal.com)
2025-04-30 16:52:05

Sorry I think I misunderstood before, as long as you're okay with doing the check each day, that's totaly fine

James Turner (jturner@shield-legal.com)
2025-04-30 16:52:45

The reason I nudged tword code is so you can become familiar with more API connections, and linking data from multiple API connections, but ultimately as long as it gets done, it's all good

James Turner (jturner@shield-legal.com)
2025-04-30 16:53:06

By the way, I'm finally getting the PCTID into retool and wrapping my head around it

James Turner (jturner@shield-legal.com)
2025-04-30 16:53:09

It's really cool!

James Turner (jturner@shield-legal.com)
2025-04-30 16:53:16

Still very alpha but yee

deleted-U06C7A8PVLJ
2025-04-30 16:58:10

I appreciate you checking up on me on this 🙌:skintone2: Yeah that makes sense and I appreciate you looking out for me to obtain more experience :laptopparrot: I am up to look at that retool stuff if you want some feedback or just need someone to test it out, etc :catroombaexceptionallyfast:

deleted-U06C7A8PVLJ
2025-04-30 16:58:41

Yeah from what I am seeing the dashboard (one fin and new fin) is pretty much matching with the except of that "weird bug" that fixes itself later on

James Turner (jturner@shield-legal.com)
2025-04-30 16:58:47

Do you have access to the tort retool?

deleted-U06C7A8PVLJ
2025-04-30 16:58:48

old fin vs new fin **

deleted-U06C7A8PVLJ
2025-04-30 16:59:22

I may have access to it but don't recall the link for it and possibly the credentials that goes with it.

James Turner (jturner@shield-legal.com)
2025-04-30 17:01:27

It doesn't fully work yet, I'm sorting out the bugs on it while creating it but I am moving things over to a tag / array system so when you go to enter a law firm, it will display entrees that are already there and you can just select them.

James Turner (jturner@shield-legal.com)
2025-04-30 17:01:32

It helps prevent duplicates.

deleted-U06C7A8PVLJ
2025-04-30 17:07:06

That makes sense ! I don't think I created credentials for it. Did you sign in through your email? && I can take a look at it once you more things polished if you think things are not ready yet to be viewed?

James Turner (jturner@shield-legal.com)
2025-04-30 17:07:50

I did sign in through my shield email. I wouldn't show it to anyone else yet, but since you had such a big part of pctid_v1

James Turner (jturner@shield-legal.com)
2025-04-30 17:08:01

i want you to see how v2 is developing lol

deleted-U06C7A8PVLJ
2025-04-30 17:08:36

Oh okay if that is the case let me see if I can sign up / sign in through my email 😬

deleted-U06C7A8PVLJ
2025-04-30 17:09:07
deleted-U06C7A8PVLJ
2025-04-30 17:09:24

Might be because I just signed up through my email (work email) or maybe from your end

deleted-U06C7A8PVLJ
2025-04-30 17:10:08

I am in :meow_attention:

James Turner (jturner@shield-legal.com)
2025-04-30 17:11:00

Cool it's under personalized Casetype id

:eyes_3d: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-05-02 11:33:10

Hey there, do you have any idea what table Ryan is talking about?

deleted-U06C7A8PVLJ
2025-05-02 11:33:35

Good Morning James ☀️

deleted-U06C7A8PVLJ
2025-05-02 11:33:40

Reviewing :eyes_3d:

James Turner (jturner@shield-legal.com)
2025-05-02 11:33:55

tyyyyy

deleted-U06C7A8PVLJ
2025-05-02 11:41:06

He shares so many queries I don't recall using that one. But after looking into SL project I can see this: shield-legal-bi.sldashboard.orderfinancials I would go with field name lpcontractids (my best guess) since you are looking for leadspedia ids

James Turner (jturner@shield-legal.com)
2025-05-02 11:41:39

Yeah I'm looking for leadspedia contract ID's and the Lawruler campaign names so I can tie em together

James Turner (jturner@shield-legal.com)
2025-05-02 11:42:12

Im sadly not seeing anything with the lawruler data though

James Turner (jturner@shield-legal.com)
2025-05-02 11:42:20

lawruler campaign names or IDs

James Turner (jturner@shield-legal.com)
2025-05-02 11:42:21

ideally IDs

deleted-U06C7A8PVLJ
2025-05-02 11:42:27

I think that one I sent you all of them (live). I think for a full list I think this table may be better: orders_list

deleted-U06C7A8PVLJ
2025-05-02 11:42:50

Ohhhh I see

deleted-U06C7A8PVLJ
2025-05-02 11:43:04

For a primary key right

James Turner (jturner@shield-legal.com)
2025-05-02 11:43:09

Yee

James Turner (jturner@shield-legal.com)
2025-05-02 11:45:08

Closest I'm seeing is that orders_list so far, but the names on campaigns changed so most don't work anymore

deleted-U06C7A8PVLJ
2025-05-02 11:45:11

in orderfinancials table (sldashboard dataset) it says: cprlpcontract_name

Each campaign has it's own contract name (I believe a few many share 1-2) so that would be closest to primary key and passing over "lpcontractids"

deleted-U06C7A8PVLJ
2025-05-02 11:46:15

I could of sworn each campaign only has 1 contract name though so that may be the unique identifier you can use

James Turner (jturner@shield-legal.com)
2025-05-02 11:46:31

I think what we are looking for is "name"

James Turner (jturner@shield-legal.com)
2025-05-02 11:46:47

but they never updated it to include the right lawruler names after they change them

deleted-U06C7A8PVLJ
2025-05-02 11:50:15

Hmm thinking brain blast

😆 James Turner
deleted-U06C7A8PVLJ
2025-05-02 11:57:02

I feel like there might be more fields we can pull from leadspedia that can match with that may not be on that SL table such as case description # which can be used as a one for one match with our tip database

deleted-U06C7A8PVLJ
2025-05-02 11:57:27

My guess for this is we gonna need to match for one thing then match for another thing then pull data from both tables into one

👍 James Turner
deleted-U06C7A8PVLJ
2025-05-02 11:57:53

So match with one to find another unique identifier to match with and use that to match again and then we can pull the data for leadpedia ID (My guess)

deleted-U06C7A8PVLJ
2025-05-02 11:58:52

Or may have to have someone manually update something (such as a spreadsheet) that has case type (law ruler name) match with leadspedia ID # and pull from there (but sadly it is a manual thing) (worst case scenario)

James Turner (jturner@shield-legal.com)
2025-05-02 12:28:46

I think you're right. Probably going to have to pull all of the leadspedia ID's from my billable leads tables, pull all the contracts from the leads, and write the leads to the contracts that way

James Turner (jturner@shield-legal.com)
2025-05-02 12:28:57

we might miss a few contracts if they never got a billable lead but ehhh

James Turner (jturner@shield-legal.com)
2025-05-02 12:29:03

It's our best be\

deleted-U06C7A8PVLJ
2025-05-02 12:29:49

Yeah or we have to create our own "primary key" by using a google sheets which I would like to avoid lol

deleted-U06C7A8PVLJ
2025-05-02 12:30:04

Or may need to see what fields leadspedia has and see if we can pull more

James Turner (jturner@shield-legal.com)
2025-05-02 12:32:22

So about that primary key

James Turner (jturner@shield-legal.com)
2025-05-02 12:32:23

lol

deleted-U06C7A8PVLJ
2025-05-02 12:33:14

right

deleted-U06C7A8PVLJ
2025-05-02 12:33:25

"primary key"

James Turner (jturner@shield-legal.com)
2025-05-02 12:33:33

Once we get the Leadspedia contract ID's in we can move everything over to this table instead of the excel one

James Turner (jturner@shield-legal.com)
2025-05-02 12:41:33

Whatcha think? Pretty Fancy huh? lol

deleted-U06C7A8PVLJ
2025-05-02 12:59:38

Coming back from lunch

✅ James Turner
deleted-U06C7A8PVLJ
2025-05-02 12:59:42

:eyes_3d:

deleted-U06C7A8PVLJ
2025-05-02 12:59:47

I am liking what I am seeing

James Turner (jturner@shield-legal.com)
2025-05-02 13:19:26

Oh yeah? Lol

James Turner (jturner@shield-legal.com)
2025-05-02 13:19:30

Try editing it

James Turner (jturner@shield-legal.com)
2025-05-02 13:22:09

Try editing it- It uses entrees that were already entered to give suggestions

James Turner (jturner@shield-legal.com)
2025-05-02 13:31:35

I did a small brain

James Turner (jturner@shield-legal.com)
2025-05-02 13:31:56

My Billableleadswithratesandlp already has the contractids

James Turner (jturner@shield-legal.com)
2025-05-02 13:32:01

and all the pctid info

James Turner (jturner@shield-legal.com)
2025-05-02 13:33:02
deleted-U06C7A8PVLJ
2025-05-02 13:34:19

Well if it has it then we are good :meow_attention:

deleted-U06C7A8PVLJ
2025-05-02 13:34:24

let me see if I can edit it

deleted-U06C7A8PVLJ
2025-05-02 13:35:06

what parts should I try to edit?

James Turner (jturner@shield-legal.com)
2025-05-02 13:35:48

I'm sure there's still errors floating around, see what you can find quickly (I also used some machine learning stuff to normalize the data a little further)

James Turner (jturner@shield-legal.com)
2025-05-02 13:36:11

But check out the tagging system

James Turner (jturner@shield-legal.com)
2025-05-02 13:36:26

If people want to add tags like tv or flyer or timbukto or whatever

James Turner (jturner@shield-legal.com)
2025-05-02 13:36:36

they can add all the tags they want as an array system

James Turner (jturner@shield-legal.com)
2025-05-02 13:51:49

Interesting. So it looks like not every campaign actually has billable leads with a contract associated

James Turner (jturner@shield-legal.com)
2025-05-02 13:53:14

a lot to, but not all of them which is odd.

James Turner (jturner@shield-legal.com)
2025-05-02 14:25:13

Hell yeah it worked! A new campaign got created in Lawruler and it automagicly pulled it in!

deleted-U06C7A8PVLJ
2025-05-02 14:31:57

Sorry I shall check / test it out shortly. In a meeting to talk about outlining the entire flatirons process to ensure all departments are doing what they are supposed to be doing including having an outline process to send back to Abe from Flatirons

James Turner (jturner@shield-legal.com)
2025-05-02 14:32:06

No worries!

James Turner (jturner@shield-legal.com)
2025-05-02 14:32:20

Do what you gotta do, I'm just excited lol

:meow_attention: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-05-02 14:32:31

I think may be easier if I were to pop by so we can test those together since I am not familiar with how to use retool tbh haha

deleted-U06C7A8PVLJ
2025-05-02 14:32:41

I appreciate it 🙏:skintone2:

deleted-U06C7A8PVLJ
2025-05-02 15:16:45

Let me know when you are available James I can pop by :catroombaexceptionally_fast:

James Turner (jturner@shield-legal.com)
2025-05-02 15:17:22

I am OOO for the day, but it works out because I want you to watch something and let me know if it makes sense..

deleted-U06C7A8PVLJ
2025-05-02 15:18:16

Oh okay I can do so if needed to be 🙏:skintone2:

James Turner (jturner@shield-legal.com)
2025-05-02 15:23:26

Go to Primary Casetype ID tab, and scroll down to the bottom

deleted-U06C7A8PVLJ
2025-05-02 15:24:16

Ooo fancy

deleted-U06C7A8PVLJ
2025-05-02 15:24:26

You recorded the video too

deleted-U06C7A8PVLJ
2025-05-02 15:24:39

Notepad as the "words" ^^^

deleted-U06C7A8PVLJ
2025-05-02 15:24:46

Me back in 2010 with youtube

James Turner (jturner@shield-legal.com)
2025-05-02 15:24:49

Throwback to 2008

🤣 deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-05-02 15:24:53

yessss lmao

deleted-U06C7A8PVLJ
2025-05-02 15:25:16

Notepad me: Please like, subscribe and share will all your friends and family

deleted-U06C7A8PVLJ
2025-05-02 15:25:22

Looks nice !

deleted-U06C7A8PVLJ
2025-05-02 15:25:51

I wonder if we can include "links" to it. Since if that's the case we can use "loom" and that can also be a screen recorder if they want to hear "audio" version of it. But essentially looks nice

James Turner (jturner@shield-legal.com)
2025-05-02 15:26:31

It's going to be a small team of people that use this, but I needed to make a tutorial for mal anyway so i figured throw it on here

James Turner (jturner@shield-legal.com)
2025-05-02 15:26:52

More importantly though, do you feel like you could use this tool after watching it? At least to update case types as they come in

deleted-U06C7A8PVLJ
2025-05-02 15:27:15

Let me watch the video first to give you my Qs (if there are any) if that is the case

deleted-U06C7A8PVLJ
2025-05-02 15:27:29

:eyes_3d:

deleted-U06C7A8PVLJ
2025-05-02 15:28:37

I am assuming you have the data connected to gcp as a table right

deleted-U06C7A8PVLJ
2025-05-02 15:28:41

for retool

James Turner (jturner@shield-legal.com)
2025-05-02 15:28:49

Yeah pctid_v2

James Turner (jturner@shield-legal.com)
2025-05-02 15:29:35

I processed data out of the excel one, cleaned it up quite a bit, and then imported it column by column\

deleted-U06C7A8PVLJ
2025-05-02 15:30:47

Gotcha and a new case type comes in then fields will be blank except the "lawruler case type name"

deleted-U06C7A8PVLJ
2025-05-02 15:30:53

That's when we know we need to fill those out

James Turner (jturner@shield-legal.com)
2025-05-02 15:31:04

the name and ID but yee

deleted-U06C7A8PVLJ
2025-05-02 15:32:44

What if there is an option in the dropdown that doesn't match with anything. (Such as a new firm or a new tort type) we would need to update REF table?

deleted-U06C7A8PVLJ
2025-05-02 15:33:03

Having dropdown makes sense so that we don't select something that has "extra spaces" or extra "-" etc

James Turner (jturner@shield-legal.com)
2025-05-02 15:33:29

Nah you just type it in, and select what you just added from the dropdown

deleted-U06C7A8PVLJ
2025-05-02 15:34:12

Ah then in the future that new field value has been "created"

James Turner (jturner@shield-legal.com)
2025-05-02 15:34:36

I wasn't sure if that needed to be added or not, so I appreciate you asking

deleted-U06C7A8PVLJ
2025-05-02 15:36:49

What you showed makes sense to me (above) and in the retool website. In my opinion, I would probably just show how to select things and what to select in order to give us the info that we need and maybe which fields are optional.

Then have a separate video that goes over "common questions and good to know" that way one video is straight to the point showing how to use it (which once we know how we can skip through it / fast forward) and the next part of it covered "what is needed" for the pipeline

deleted-U06C7A8PVLJ
2025-05-02 15:37:07

Not sure if you can include "more videos" or "links" to more videos but my thoughts on that

deleted-U06C7A8PVLJ
2025-05-02 15:37:25

I know you recorded it just to get the process going but if you were to shoot a "new video" I think that is what I would do

James Turner (jturner@shield-legal.com)
2025-05-02 15:37:40

I appreciate the insight- I think you are right!

deleted-U06C7A8PVLJ
2025-05-02 15:37:42

Essentially you can do everything as "one video" and have "different sections" and "time stamps" too. Another idea

deleted-U06C7A8PVLJ
2025-05-02 15:38:08

1-2 min mark = how to use it; 2-5 min is what is required and 5-7 min mark is FAQ

deleted-U06C7A8PVLJ
2025-05-02 15:38:13

If one video

deleted-U06C7A8PVLJ
2025-05-02 15:38:42

But essentially makes sense, easy to work with and I think long run it will work well

James Turner (jturner@shield-legal.com)
2025-05-02 15:38:57

That's the goal~

🥅 deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-05-02 15:40:05

But I like it great job on this. Looks great :meow_attention:

deleted-U06C7A8PVLJ
2025-05-02 15:40:24

way to go

🦦 deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-05-02 15:40:49

Thanks man, actually could not have done it without you contributing so much to the v1 on excel..

🙌:skin_tone_2: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-05-02 15:41:18

and we aren't done yet. We gotta start moving our pipelines over to read from pctidv2 instead of pctidfrom_excel

deleted-U06C7A8PVLJ
2025-05-02 15:42:49

That makes sense. I am glad to be of help and let me know if you still need more help with it. Since from my understanding once we get that S1 stuff done and merge it with what we have in the bigquery table essentially it will be that "one big table" that ryan's wanted since day 1

James Turner (jturner@shield-legal.com)
2025-05-05 11:30:12

Hey there, what are the 4 leads that are not showing up?

deleted-U06C7A8PVLJ
2025-05-05 11:30:41

Hey James. Should be the ones that are not Yellow highlighted rows

deleted-U06C7A8PVLJ
2025-05-05 11:30:53

Note: At the time of the post they were not showing

James Turner (jturner@shield-legal.com)
2025-05-05 13:08:18

Testing it but I /think/ I got the timezone stuff figured out

James Turner (jturner@shield-legal.com)
2025-05-05 14:54:23

Heyo, I'll swing by to you in a few minutes

deleted-U06C7A8PVLJ
2025-05-05 14:55:01

Hey James. Just wrapping up some financial stuff for flatirons. Will be available once complete. Sorry for the delay

James Turner (jturner@shield-legal.com)
2025-05-05 14:57:38

No worries~

James Turner (jturner@shield-legal.com)
2025-05-05 14:58:17

I found what may have been causing some of the bugs and I think I fixed it.

James Turner (jturner@shield-legal.com)
2025-05-05 14:59:21

When you get back, let's run the numbers again for today and see what we find

James Turner (jturner@shield-legal.com)
2025-05-05 15:12:48

wait hold on that..

deleted-U06C7A8PVLJ
2025-05-05 15:12:48

Sounds good ! Going to take a quick lunch since time has been flying fast and haven't gotten the chance too

James Turner (jturner@shield-legal.com)
2025-05-05 15:12:59

tweaking- lemme know when you get back

deleted-U06C7A8PVLJ
2025-05-05 15:13:00

If that's cool with you

James Turner (jturner@shield-legal.com)
2025-05-05 15:13:03

Forsure

deleted-U06C7A8PVLJ
2025-05-05 15:14:09

Thank you 🙌 Ahsan is leaving next week so I gotta take all the notes I can about the financial stuff

James Turner (jturner@shield-legal.com)
2025-05-05 16:01:36

So I was looking through the data and I realized that despite declaring the data as pacific time, it was presenting it as UTC because that is the industry standard

:eyes_3d: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-05-05 16:02:03

Hmm.

deleted-U06C7A8PVLJ
2025-05-05 16:02:50

I wonder if it would be better to just do 1 for 1 comparison where it is 2 days from current date compared to yesterday so that we know it should match regardless of the UTC or PST, etc

James Turner (jturner@shield-legal.com)
2025-05-05 16:02:57

So we were feeding 5pm pacific time, and to keep ryans end from having to mess with timezones, we were doing the time zone call thing, which was skewing it, but still outputting UTC data.

👀 deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-05-05 16:03:08

Since when we do financials, we are not doing it on 2nd or 3rd but probably the 7th or 8th lol

James Turner (jturner@shield-legal.com)
2025-05-05 16:03:30

So I modified it to save as Pacific time data, but it will still spit out as UTC unless called otherwise

James Turner (jturner@shield-legal.com)
2025-05-05 16:03:34

but now the time stamps are correct

James Turner (jturner@shield-legal.com)
2025-05-05 16:04:56

Because the query "Shield Legal - Revenue Per Lead Query - Date Selectable" calls for a time zone conversion in where clause and not the select cause it pulls the right window of time

James Turner (jturner@shield-legal.com)
2025-05-05 16:05:02

but the time presented will be in UTC\

James Turner (jturner@shield-legal.com)
2025-05-05 16:05:58

I can tweak it to include a new column called "earliestesignpacific_time"

James Turner (jturner@shield-legal.com)
2025-05-05 16:07:11
deleted-U06C7A8PVLJ
2025-05-05 16:10:51

I see where this is leading

James Turner (jturner@shield-legal.com)
2025-05-05 16:11:51

So in your queries to count up the day- you'll still be solid using that scheduled query and column field

James Turner (jturner@shield-legal.com)
2025-05-05 16:12:10

but know that the time is now correct, but presented in UTC

deleted-U06C7A8PVLJ
2025-05-05 16:16:42

That makes sense. I think that thing that makes it "tricky" is that Ryan wants me to post first thing in the morning. Which it takes time for those "missing leads" to kick in so it will always be off in the morning since they are not in the database at all until later. So that's where the discrepancies kicks in. Another alternative it to push the "end date" to be 2 days ago instead of yesterday which by then all the leads should of been pushed through which wouldn't be an issue for the financials since we don't submit anything 7-10th based on my experience

James Turner (jturner@shield-legal.com)
2025-05-05 16:31:11

No changes needed for that post first thing in the morning as long as you use that scheduled query ( Shield Legal - Revenue Per Lead Query - Date Selectable ) to get the leads for any given time window.

That query has the time zone conversion to PST within the where statement so it makes sure that the time window it's searching for is accurate.

James Turner (jturner@shield-legal.com)
2025-05-05 16:33:01
James Turner (jturner@shield-legal.com)
2025-05-05 16:37:22

So in that statement, if I'm saying give me everything on May 4th PST in that where statement..

Even if it happened at 5am May 5th UTC.. It will still show up, because thats the correct window.

Make sense?

deleted-U06C7A8PVLJ
2025-05-05 16:49:13

Ahh I see what you are saying

deleted-U06C7A8PVLJ
2025-05-05 16:49:17

That makes sense !

James Turner (jturner@shield-legal.com)
2025-05-05 16:51:18
James Turner (jturner@shield-legal.com)
2025-05-05 16:52:10

see what I mean?

James Turner (jturner@shield-legal.com)
2025-05-05 16:54:12

Like that call states the 4th in Pacific time

deleted-U06C7A8PVLJ
2025-05-08 13:27:03

Good morning @James Turner Hows it going !

deleted-U06C7A8PVLJ
2025-05-08 13:27:20

I have a question for you. I believe we had a sheet that shows all "final statuses" ? I am trying to find where that is lol

James Turner (jturner@shield-legal.com)
2025-05-08 13:28:14

Hey there~

Not sure about the sheet, but the status table on the database has a boolian value for if a status is terminal

James Turner (jturner@shield-legal.com)
2025-05-08 13:28:19

Lemme try and grab that for ya..

James Turner (jturner@shield-legal.com)
2025-05-08 13:28:52

tort-intake-professionals.tipprodapplication.iotiplrstatusrates

James Turner (jturner@shield-legal.com)
2025-05-08 13:29:21

Has every status in Lawruler, and if it's a 'final status' terminal should be true

deleted-U06C7A8PVLJ
2025-05-08 13:29:25

Gotcha yeah I would figure there is a table or sheet for it since the table that pulls the financials only uses "finals"

deleted-U06C7A8PVLJ
2025-05-08 13:29:36

Thank you !! I shall take a look of that right now

deleted-U06C7A8PVLJ
2025-05-08 13:31:28

Ahhh it should be when it is true for: billable

James Turner (jturner@shield-legal.com)
2025-05-08 13:32:03

Ohh- you're looking for billable status's, not the "final status" that a lead ends up in

James Turner (jturner@shield-legal.com)
2025-05-08 13:32:09

I misunderstood

deleted-U06C7A8PVLJ
2025-05-08 13:32:14

Yes sorry I may of explained it wrong

James Turner (jturner@shield-legal.com)
2025-05-08 13:32:23

Luckily, that table has those as well!

deleted-U06C7A8PVLJ
2025-05-08 13:35:03

Ah I see ! that is good to know ! Are there any other tables or sheets that also updates those billable statuses that you are aware of?

deleted-U06C7A8PVLJ
2025-05-08 13:36:54

Hmm you know what, I think that table should be good enough. Thank you @James Turner

James Turner (jturner@shield-legal.com)
2025-05-08 13:37:23

What do you mean also updates those billable status's?

deleted-U06C7A8PVLJ
2025-05-08 13:37:33

My query if you need it but essentially just knowing which ones are billable are good

James Turner (jturner@shield-legal.com)
2025-05-08 13:37:37

Like other tables that determine if a status is billable?

deleted-U06C7A8PVLJ
2025-05-08 13:37:55

Sorry I had a typo; I was referring if you knew of any tables that also displays all statuses that are billable

James Turner (jturner@shield-legal.com)
2025-05-08 13:38:07

Ohh gotcha

deleted-U06C7A8PVLJ
2025-05-08 13:38:08

But this one if it is being updated then should be good enough

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-05-08 13:38:10

Nah that's the main source

deleted-U06C7A8PVLJ
2025-05-08 13:38:27

Thank you :headbanging_parrot:

James Turner (jturner@shield-legal.com)
2025-05-08 16:55:42
James Turner (jturner@shield-legal.com)
2025-05-08 16:56:03

lr_data + five9 data

deleted-U06C7A8PVLJ
2025-05-08 17:10:32

Thank you !!

deleted-U06C7A8PVLJ
2025-05-08 17:10:40

Just so you know I will be creating the query here:

deleted-U06C7A8PVLJ
2025-05-08 17:10:49

Currently working on the sql joining stuff but posting for your and mine reference

James Turner (jturner@shield-legal.com)
2025-05-14 14:51:21

Heyo~ With you moving to the shield side and going fully into flatirons, what do you think about canceling our 1:1 and making it a as needed thing? I'm still always happy to help, I just know we are both busy now haha

deleted-U06C7A8PVLJ
2025-05-14 14:52:25

Hey James 🙌 I am down for that. Once I get the flatirons in a nicer place then I think being able to meet just to all be on the same page about things may be a good thing to have 😬

James Turner (jturner@shield-legal.com)
2025-05-14 14:52:38

Sounds good!

:meow_attention: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-05-14 15:06:53

Also I am thinking of creating a sticker / t-shirt website with a friend of mine. I wanted to pick your brain of ideas (during your free time) you think may make good content? lol

deleted-U06C7A8PVLJ
2025-05-14 15:07:07

Also not sure if you liked any of the ones I showed you today

James Turner (jturner@shield-legal.com)
2025-05-14 15:07:16

Lol I really did like those, those are really cool!

:meow_attention: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-05-14 15:07:42

Thanks 🤓

James Turner (jturner@shield-legal.com)
2025-05-14 15:08:03

For sure! I used to draw with alchol markers and get the big clear packing tape and make my own stickers

:meow_attention: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-05-14 15:08:54

That sounds awesome tbh

James Turner (jturner@shield-legal.com)
2025-05-14 15:08:57

I liked the select ** from feelings WHERE reason IS null

James Turner (jturner@shield-legal.com)
2025-05-14 15:09:14

actually- was that WHERE reason = NULL or IS NULL?

deleted-U06C7A8PVLJ
2025-05-14 15:11:07

Thank you !! & It was = Null

James Turner (jturner@shield-legal.com)
2025-05-14 15:16:35

I liked that one lol

If you do sell em, I think it would be SELECT ** from feelings WHERE reason IS NULL

James Turner (jturner@shield-legal.com)
2025-05-14 15:16:49

because = is for numeric values

James Turner (jturner@shield-legal.com)
2025-05-14 15:16:59

but that's just be being really dorky about it lol

🤣 deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-05-14 15:19:22

Ah you right you right haha

deleted-U06C7A8PVLJ
2025-05-14 15:19:29

I appreciate the feedback on that one

deleted-U06C7A8PVLJ
2025-06-09 10:59:46

Good Morning James. Happy Mondays ☀️

deleted-U06C7A8PVLJ
2025-06-09 10:59:57

I wanted to reach out to you to see if you can reach out to Rose for this:

deleted-U06C7A8PVLJ
2025-06-09 11:00:17

Ryan had asked me to see if you can. 🙏:skintone2:

James Turner (jturner@shield-legal.com)
2025-06-09 11:18:47

Hey good morning! I would be happy to reach out to Rose, but I need a comprehensive explanation of how he would like it done on the 'other revenue' page. Is Rose ONLY adding up revenue from staffing? What does he mean by " new system operating expenses and bee other revenue" ?

deleted-U06C7A8PVLJ
2025-06-09 11:19:33

Yeah honestly I am not 100% sure what he means by that and was hoping you may know what he is referring too lol

deleted-U06C7A8PVLJ
2025-06-10 11:51:16

Good morning James. Happy Tuesday. Were you able to get more clarity on this above / know what to do for Rose part? As a friendly check

James Turner (jturner@shield-legal.com)
2025-06-10 12:10:27

You're good, I let her know, and ryan sent a message about what to put on there in the chat

deleted-U06C7A8PVLJ
2025-06-10 12:17:18

Oh okay perfect. Yeah it is basically three spreadsheets that has $ values on there and she has to add May's #s on there

deleted-U06C7A8PVLJ
2025-06-11 13:13:27

Does this stuff make sense to you

deleted-U06C7A8PVLJ
2025-06-11 13:13:39

In the terms of TIP going negative in order to profit 🤣

deleted-U06C7A8PVLJ
2025-06-11 13:14:06

Take from TIP to give to SL = profitable is what I am hearing

James Turner (jturner@shield-legal.com)
2025-06-11 13:23:28

That's what I'm getting out of it

James Turner (jturner@shield-legal.com)
2025-06-11 13:24:01

Smaller companies (less employees) generally have more tax forgiveness due to 'small buisness'

deleted-U06C7A8PVLJ
2025-06-11 13:24:13

Rob from peter and give to paul 🤣

James Turner (jturner@shield-legal.com)
2025-06-11 13:24:13

so move all the profit from tip to shield to bring home more money.

deleted-U06C7A8PVLJ
2025-06-11 13:29:09

Yeah probably due to taxes and company size I get it

deleted-U06C7A8PVLJ
2025-06-11 13:29:40

Also I confirmed with him twice knowing my question is a yes so that when I do it and if something goes wrong it isn't my fault completely since i followed and confirmed twice lol

James Turner (jturner@shield-legal.com)
2025-06-11 13:43:06

Smart lol

deleted-U06C7A8PVLJ
2025-06-11 13:43:52

Yup plus I keep a .csv backup before the changes and I confirm it before updating and post the updated .csv as well. Since there is no "backup" I gotta create a temp one lol

James Turner (jturner@shield-legal.com)
2025-06-11 13:53:16

I'm doing the same thing but a little tweaked. I just created snapshots of the rev rates and rev rates history tables so in case I nuke it, I have backups

deleted-U06C7A8PVLJ
2025-06-11 13:53:41

Yes that makes sense. But may I pick your brain James?

deleted-U06C7A8PVLJ
2025-06-11 13:53:56

Are you understanding the "calculation" parts of how gross revenue and net revenue is calculated?

deleted-U06C7A8PVLJ
2025-06-11 13:54:19

I pretty much use a google spreadsheet he shares with me to calculate that so I wonder if I just need to zero out the formula for those

James Turner (jturner@shield-legal.com)
2025-06-11 13:54:23

Honestly not really- That's what I kept trying to ask Ryan about but he kept interrupting me.

James Turner (jturner@shield-legal.com)
2025-06-11 13:55:21

On my new system, I know that I need to go into my iolrcasetypesrevenuerates table, and update all rows to existing case types to have an iocalltimeflatfee of 0 for may going forward. The way these tables work, is iolrcasetypesrevenuerates is the "current" pricing of everything, while the tort-intake-professionals.tipprodapplication.iolrcasetypesrevenuerateshistory is the price of each item, with multiple rows that cover different time windows depending on when the lead became billable

👀 deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-06-11 13:55:27

I feel like if I ask him a question he is going to yell or get frustrated when I am trying to do a task to make his life easier since I was told he wanted me & zek to help him so that one day he can take a vacation where he doesn't have to work & it is kinda hard to do that if I don't understand it exactly since I didn't build it lol

deleted-U06C7A8PVLJ
2025-06-11 13:55:45

Gotcha !

James Turner (jturner@shield-legal.com)
2025-06-11 13:56:18

Correction- all of the campaigns where the iocasetypecategory is ret

James Turner (jturner@shield-legal.com)
2025-06-11 13:56:42

and in your case, I believe it's all campaigns where the iocasetypecategory is RET, and the marketing source for the campaign is also shield legal

deleted-U06C7A8PVLJ
2025-06-11 13:57:33

Yeah that makes sense. I just trying to figure out how to calculate gross revenue and net revenue

deleted-U06C7A8PVLJ
2025-06-11 13:58:03

I think I will ask Ryan if I zero out talk time on his spreadsheet if it will give me the answer I need

James Turner (jturner@shield-legal.com)
2025-06-11 13:59:26

another correction, I meant iotipservice_type not case type category

James Turner (jturner@shield-legal.com)
2025-06-11 13:59:28

lol

James Turner (jturner@shield-legal.com)
2025-06-11 13:59:31

good luck

deleted-U06C7A8PVLJ
2025-06-11 14:01:01

Ahhh gotcha. thank you. And to confirm the five9 table (I can get the name if you need me too) but where it has all the talk time history that one isn't going away?

deleted-U06C7A8PVLJ
2025-06-11 14:01:13

I ask since I think you posted earlier ago about updating to a new table

James Turner (jturner@shield-legal.com)
2025-06-11 14:01:40

We are keeping all of the storing of talk time as is, just changing the cost from $2 flat rate to 0

James Turner (jturner@shield-legal.com)
2025-06-11 14:02:03
James Turner (jturner@shield-legal.com)
2025-06-11 14:02:28

Just in case you didn't see that

deleted-U06C7A8PVLJ
2025-06-11 14:05:47

Thank you James. That is the exact post I was looking at and still confused

deleted-U06C7A8PVLJ
2025-06-11 14:06:00

When I asked him that he said the other two fields needs to be recalculated

deleted-U06C7A8PVLJ
2025-06-11 14:06:16

I do not understand how those are calculated since he does that for me when I simply input the data

deleted-U06C7A8PVLJ
2025-06-11 14:06:41

I run a query to get the values and I paste them and I get the answer so I am confirming with him if me changing the formula for talk time 0 will give me the proper output.

deleted-U06C7A8PVLJ
2025-06-11 14:07:05

But what is confusing me is when I ask him that he talked about a different bigquery SQL code I run which now makes no sense lol

deleted-U06C7A8PVLJ
2025-06-11 14:27:57

I think I will simply remove the 2 calculation from it and I will simply send him the before and after changes and ask if it looks correct to him and if not I can reupdate it later on.

James Turner (jturner@shield-legal.com)
2025-06-11 16:31:58

Hey there' I talked to Ward and he said you needed a little extra help? I don't have access to the PG financial log but after stepping away for a few minutes, I think I understand what He's asking you to do

James Turner (jturner@shield-legal.com)
2025-06-12 19:55:02

Did u ever get the ones from Tony??

deleted-U06C7A8PVLJ
2025-06-12 20:06:45

I did not actually

deleted-U06C7A8PVLJ
2025-06-12 20:07:08

I just confirming with him to be on the same page and once we get that info (price + case types names) it will be easy change

James Turner (jturner@shield-legal.com)
2025-06-13 13:23:42

Note that nobody ever actually told me what campaigns specifically, just that super vague name and 'filter' so I went through every campaign with those phrases in the name and did what was NOT a secondary, and what already had pricing to indicate it was active

deleted-U06C7A8PVLJ
2025-06-13 13:24:36

Yeah that is what I would of done too. I appreciate you finding those and getting the answer for pricing 🙏

James Turner (jturner@shield-legal.com)
2025-06-13 13:25:17

Ryan ended up giving the pricing. I messaged tony 3 times, and finally talked to him in person where he said he would send it

James Turner (jturner@shield-legal.com)
2025-06-13 13:25:36

I waited an hour, got no response, told ryan and he came up with the 216

deleted-U06C7A8PVLJ
2025-06-13 13:26:45

Ahhh I see but the ones you posted should be correct for me to follow right

James Turner (jturner@shield-legal.com)
2025-06-13 13:26:54

I believe so!

James Turner (jturner@shield-legal.com)
2025-06-13 13:27:12

If not, we have the record of what to change/add, that's why I threw it in there

deleted-U06C7A8PVLJ
2025-06-13 13:33:16

Yes that makes sense. He will let us know if it needs to get updated again haha

James Turner (jturner@shield-legal.com)
2025-06-13 15:29:29

You all good going back and updating all those to 196?

deleted-U06C7A8PVLJ
2025-06-13 15:34:22

Yes I updated all June to current date with 196

deleted-U06C7A8PVLJ
2025-06-13 15:34:26

Thank you for checking

James Turner (jturner@shield-legal.com)
2025-06-13 15:34:58

Cool, glad to hear it!

🙌:skin_tone_2: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-07-02 12:26:50

Wanted to let you know Ryan gave you some big shout outs this morning on our meeting

James Turner (jturner@shield-legal.com)
2025-07-02 12:27:06

He seemed super happy with the work you did while he was gone

deleted-U06C7A8PVLJ
2025-07-02 12:36:33

Aw thank you for letting me know ! I appreciate being appreciated haha :meow_attention:

James Turner (jturner@shield-legal.com)
2025-07-09 17:13:24

Hey there, do you know anything about this new 'Outbound' Call type? It looks like Tony's team may have made a new 'call_type' in Five9 and started using it the day that Ward went on Vacation.

deleted-U06C7A8PVLJ
2025-07-09 17:14:09

Hey James 👋 That is new news to me 😅

James Turner (jturner@shield-legal.com)
2025-07-10 16:25:48

> Can we please make a looker enterprise account for Anthony Sobo and Christian Rodgers

James Turner (jturner@shield-legal.com)
2025-07-10 16:26:14
James Turner (jturner@shield-legal.com)
2025-07-10 16:26:33
deleted-U06C7A8PVLJ
2025-07-10 16:34:54

Tell them I said maybbeee

deleted-U06C7A8PVLJ
2025-07-10 16:35:10

Joking. What type of access they need ? Viewer and editor or ?

James Turner (jturner@shield-legal.com)
2025-07-10 16:36:50

viewer and editor yeah

deleted-U06C7A8PVLJ
2025-07-10 16:51:29

Okay going to do that now. Sorry had my hands full

deleted-U06C7A8PVLJ
2025-07-10 16:53:39

Okay sent one out to Christian so he will receive email to get his login stuff

deleted-U06C7A8PVLJ
2025-07-10 16:53:49

Sobo already has one set up for him

James Turner (jturner@shield-legal.com)
2025-07-10 17:58:29

You're golden

deleted-U06C7A8PVLJ
2025-07-14 13:08:16

@James Turner Are you hoping onto the meeting?

James Turner (jturner@shield-legal.com)
2025-07-14 13:31:03

Oh shoot- for some reason it never sent the slack notification

deleted-U06C7A8PVLJ
2025-07-14 14:00:53

Oh no worries. I think he rescheduled it for a different day

James Turner (jturner@shield-legal.com)
2025-07-14 14:05:27

Did he not show

James Turner (jturner@shield-legal.com)
2025-07-14 14:05:28

?

deleted-U06C7A8PVLJ
2025-07-14 14:05:38

Oh he did.

James Turner (jturner@shield-legal.com)
2025-07-14 15:18:06

Hey there, for some reason Christian is missing a dev mode? He can edit dashboards though?

James Turner (jturner@shield-legal.com)
2025-07-14 15:18:34
deleted-U06C7A8PVLJ
2025-07-14 15:20:53

Hmm let me check. I shall screenshot you what options I am allow to give him and what he has

deleted-U06C7A8PVLJ
2025-07-14 15:21:42
deleted-U06C7A8PVLJ
2025-07-14 15:21:54

What options I can give him

deleted-U06C7A8PVLJ
2025-07-14 15:22:02

From the looks of it, I am guessing maybe developer ?

deleted-U06C7A8PVLJ
2025-07-14 15:22:55

I am thinking yes to this

deleted-U06C7A8PVLJ
2025-07-14 15:23:23

I granted that to him so he may need to refresh

James Turner (jturner@shield-legal.com)
2025-07-14 15:33:03

I appreciate- thank you!

deleted-U06C7A8PVLJ
2025-07-14 15:37:14

You're welcome 🙌

James Turner (jturner@shield-legal.com)
2025-07-16 15:55:02

*Thread Reply:* Hey there, I am here with Ward and Carter

James Turner (jturner@shield-legal.com)
2025-07-16 15:55:07

*Thread Reply:* We can call you on here

James Turner (jturner@shield-legal.com)
2025-07-22 13:14:55

I can give you synopsis later

deleted-U06C7A8PVLJ
2025-07-22 13:20:19

Thank you James

James Turner (jturner@shield-legal.com)
2025-07-22 14:05:05

So far it's mostly just people who haven't read the doc, talking about things that are explained later in the doc

deleted-U06C7A8PVLJ
2025-07-22 14:06:13

Ah gotcha. That does make sense haha. Thank you for the update James on this

James Turner (jturner@shield-legal.com)
2025-07-22 14:08:14

And Ryan wanting to now add 2 more pieces of software to be replaced (Copper and PandaDocs)

deleted-U06C7A8PVLJ
2025-07-22 14:08:58

That is a good catch too since I overheard they wanting to build this as one unified system. I think we need majority of the systems off this system and we can ping from postgres / GCP

James Turner (jturner@shield-legal.com)
2025-07-23 17:28:24

Data Set Update: • contactdob and contactcellphone from the Lawruler Contact Card has been added to the alllawrulerleadswithenrichment, and 'leads with five9' datasets

deleted-U06C7A8PVLJ
2025-07-23 17:50:19

Woot woot great job @James Turner and once again thank you for your assistance with this as well 🙏

🙏 James Turner
James Turner (jturner@shield-legal.com)
2025-07-23 17:55:46

For sure!

🙌:skin_tone_2: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-07-29 12:51:51

Hey James. I wanted to give you an update on the LookML issue I had. I manually did one at a time and not create the model and view both and then try to commit and that helped.

👍 James Turner
deleted-U06C7A8PVLJ
2025-07-29 12:51:59

I think it is some weird bug from enterprise

👍 James Turner
deleted-U06C7A8PVLJ
2025-07-29 12:57:37

Sharing with you my notes just in case it may benefit you

James Turner (jturner@shield-legal.com)
2025-07-30 11:23:44

Appreciate

:meow_attention: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-08-05 13:44:51

Hi James. Can you let Ward know about the situation since you guys are in the same office? Ryan tagged me to let ward and tony know but if you are the same office as him you can probably explain it better than I can if that is okay

James Turner (jturner@shield-legal.com)
2025-08-05 13:45:27

I'm confused where people are getting a billable date of yesterday? These got signed back in 2022..

deleted-U06C7A8PVLJ
2025-08-05 13:45:57

It is because law ruler changes the sign e-sign date based on the latest status change date

deleted-U06C7A8PVLJ
2025-08-05 13:46:08

Since these were never in the tip system (my guess) that is why it is showing yesterday date

deleted-U06C7A8PVLJ
2025-08-05 13:46:15

If they were in the system then the date shouldn't have changed

deleted-U06C7A8PVLJ
2025-08-05 13:46:17

That is my guess

James Turner (jturner@shield-legal.com)
2025-08-05 17:53:01

Hell yeah it worked

James Turner (jturner@shield-legal.com)
2025-08-05 17:53:34

(( Wait- Is it still okay to make "Hell yeah Brother" jokes since he passed away?? ))

deleted-U06C7A8PVLJ
2025-08-05 18:13:53

Thank you @James Turner I appreciate you !!

James Turner (jturner@shield-legal.com)
2025-08-06 15:40:05

'iscurrentlybillable' and 'billable_date'is based on a few factors.

What it looks at, is the current status of the lead, and if that current status is a TRUE for 'billable' on the iostatusrates table.

To determine the 'billable date' of the lead, it first finds the earliest instance of that lead becoming e-signed and uses that timestamp for the billable date. IF the lead is somehow billable, but never got an e-signed status (Think secondaries, or outsourced leads) it goes by the date that the earliest 'billable' status was set. IF the lead is currently in a billable status, but we have no record of when it got into that status, then the billable date becomes the lead creation timestamp in Lawruler (Very rare, but it does happen on leads that were copied from a billable lead and the previous lead was deleted)

deleted-U06C7A8PVLJ
2025-08-06 15:43:41

Ahhh that makes sense. Thank you for this James.

James Turner (jturner@shield-legal.com)
2025-08-06 15:44:23

Little complex sounding at first, but really it's pretty simple, and just has a couple of fail safes built in

deleted-U06C7A8PVLJ
2025-08-06 15:46:05

Yeah I recall you mentioning this and I will save this as a note

James Turner (jturner@shield-legal.com)
2025-08-13 18:30:01

1879

James Turner (jturner@shield-legal.com)
2025-08-13 18:36:45

631908

James Turner (jturner@shield-legal.com)
2025-08-13 18:39:17
deleted-U06C7A8PVLJ
2025-08-13 18:51:13

Thank you james !

deleted-U06C7A8PVLJ
2025-08-13 18:51:40

I have one last one actually that I need your assitance on finding.

James Turner (jturner@shield-legal.com)
2025-08-13 18:52:50

Sure thing- What is all the info we have on the lead?

deleted-U06C7A8PVLJ
2025-08-13 18:53:23

Let's do same time frame but for CPAP DL Flatirons

deleted-U06C7A8PVLJ
2025-08-13 18:53:35

CPAP - DL - Flatirons - Shield Legal

deleted-U06C7A8PVLJ
2025-08-13 18:53:42

04/28/2025 to 05/04/2025

James Turner (jturner@shield-legal.com)
2025-08-13 18:54:07

Potentially a very old campaign?

deleted-U06C7A8PVLJ
2025-08-13 18:55:03

Sorry I am looking at the wrong one

James Turner (jturner@shield-legal.com)
2025-08-13 18:55:11

Potential campaigns could be:

1,842 - CPAP Settlement Package - DL - Flatirons 643 - CPAP - Flatirons CSP Medical Records - Dicello Levitt 598 - CPAP - DL - Flatirons - Shield Legal

James Turner (jturner@shield-legal.com)
2025-08-13 18:55:36

That makes sense, I was wondering why we were looking at such an old campaign

James Turner (jturner@shield-legal.com)
2025-08-13 18:55:38

Whatcha got?

deleted-U06C7A8PVLJ
2025-08-13 18:56:10

Give me one moment I think I might be okay sorry my mind is all over the place with my notes since I have to explain what is going on to Nancy and explain it a different way for zek to update and notes for myself too lol

deleted-U06C7A8PVLJ
2025-08-13 18:56:20

Give me about 5 minutes to confirm if I need another search if that is okay

James Turner (jturner@shield-legal.com)
2025-08-13 18:56:52

You're all good- I can hang out a little late tonight til like 5:15ish if needed

deleted-U06C7A8PVLJ
2025-08-13 18:57:22

Thank you James. I will message you in 5-ish minutes if needed

deleted-U06C7A8PVLJ
2025-08-13 18:57:31

I just re-reading everything to be on safe side

James Turner (jturner@shield-legal.com)
2025-08-13 19:13:08

I gotta head on out but here is that query I used with comments so it's easy to re-use

WITH status_log AS ( SELECT ** FROM `tort-intake-professionals.lr_data.lead_history_status` WHERE DATE(`date`) BETWEEN DATE '2025-04-28' AND DATE '2025-05-04' -- Edit date range here ), case_type_info AS ( SELECT lawruler_lead_id, lawruler_casetype_id FROM `tort-intake-professionals.tip_ops_dashboards.All_LawRuler_Leads_With_Enrichment` WHERE lawruler_casetype_id = "1879") -- Edit Campaign ID here SELECT s.**, c.** FROM status_log AS s JOIN case_type_info AS c ON s.leadid = c.lawruler_lead_id;

deleted-U06C7A8PVLJ
2025-08-13 19:13:18

Thank you for this James !!

deleted-U06C7A8PVLJ
2025-08-13 19:13:25

I think I am fine for now but if needed I will use that code 🙂

👍 James Turner
deleted-U06C7A8PVLJ
2025-08-13 19:46:27

Hi James. I think I am good now. I sent my email to them and I let them know I will have those updated tomorrow (zek isn't here anymore to update those). Thank you once again for your help on this

James Turner (jturner@shield-legal.com)
2025-08-13 19:47:01

Happy to help! Lemme know if you need help finding anything else

🙌:skin_tone_2: deleted-U06C7A8PVLJ
:meow_attention: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-08-14 11:36:33

Good morning! Sorting through the shared folders in Looker enterprise and I see we have three different folders for Flatirons. Is there any way we can consolidate all of that into a single root folder? We can still add Subfolders as needed

deleted-U06C7A8PVLJ
2025-08-14 11:38:02

Good Morning James ! Currently I am still thinking about how to go about that for Flatirons. I like separating certain folders for specific coding so that I don't mix them together but I am open to your ideas as well

deleted-U06C7A8PVLJ
2025-08-14 11:44:08

But yeah I didn't think of subfolders so I think that part may just work

James Turner (jturner@shield-legal.com)
2025-08-14 11:47:23

Mocking something up for you now

James Turner (jturner@shield-legal.com)
2025-08-14 11:53:44
🙌:skin_tone_2: deleted-U06C7A8PVLJ
James Turner (jturner@shield-legal.com)
2025-08-14 11:54:33

This covers how the structure for each primary firm should be set up, that way we can do permissions at the folder level

deleted-U06C7A8PVLJ
2025-08-14 11:55:16

I am liking it thanks for building the visual for me !

James Turner (jturner@shield-legal.com)
2025-08-14 11:55:27
🙌:skin_tone_2: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-08-14 11:55:46

The Dev order summary example I am assuming that one is ryans but I think that folder name does sound good

deleted-U06C7A8PVLJ
2025-08-14 11:56:35

That looks correct to me for the second screenshot I agree it is based on the folder level

James Turner (jturner@shield-legal.com)
2025-08-14 11:56:54

And here is how we set up the permissions... I'm making roles and group blueprints right now.

👀 deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-08-14 11:58:38

It is looking good so far great job on this !!

James Turner (jturner@shield-legal.com)
2025-08-14 11:58:44

Let me know if you can think of anything else before I start implementing

James Turner (jturner@shield-legal.com)
2025-08-14 11:58:47

I appreciate!

James Turner (jturner@shield-legal.com)
2025-08-14 12:00:23

So permissions for things like being able to explore or save a dataset is given at the role level, but you can group individual users into a 'group' for easy adding

deleted-U06C7A8PVLJ
2025-08-14 12:01:17

That does make a lot of sense ! I think it actually looks very organize and I am impressed

deleted-U06C7A8PVLJ
2025-08-14 12:01:25

Nothing I can think of

deleted-U06C7A8PVLJ
2025-08-14 12:01:31

But if that changes I will let you know

deleted-U06C7A8PVLJ
2025-08-14 12:02:07

Only thing I would comment, as far as "reporting team" if you are referring to Brittany's team, they do not handle financials like us but if you are mentioning "report team" as a general thing then I would say yes to that

deleted-U06C7A8PVLJ
2025-08-14 18:42:13

Hey James. I wanted to pick your brain. Is it possible the "app" aka retool that mal uses can eventually have these features or do you think it is a limitation of retool in general ?

Malissa Phillips (https://tortintakepros.slack.com/team/U076CKFGXTM)
James Turner (jturner@shield-legal.com)
2025-08-15 13:01:57

It might be a little tricky to implement, but I don't see any reason it couldn't. Depends what shes trying to bulk upload, and select multiple of

James Turner (jturner@shield-legal.com)
2025-08-15 13:10:05

By the way, check this out-

```# Within a lookml .view file:

EXTERNAL PERMISSIONS

Raw array handle (hidden)

dimension: allfirmsarrayraw { hidden: yes sql: ${TABLE}.allfirms_array ;; }

Matches the logged-in user's client_code, OR returns 'ALL' to bypass filtering

dimension: clientcodematch { type: string group_label: "Access / Ownership" description: "Row-level access: equals the user's client code if present, or 'ALL' for override users."

sql:
  {% assign cc = _user_attributes["client_code"] %}
  {% if cc == "ALL" %}
    'ALL'
  {% else %}
    (SELECT ANY_VALUE(f)
     FROM UNNEST(${all_firms_array_raw}) AS f
     WHERE f = {{ cc | sql_quote }})
  {% endif %} ;;

}``` If I set this up right, we can make it so we can set up row level permissions on models, where if their law firm exists within all_firms, it gives them permission to see that row..

So when we set up user profiles.. we set their client_code For internal people like Marc, we set as "ALL", for the company external people, we just set the client code to whatever the company name is in PCTID

deleted-U06C7A8PVLJ
2025-08-15 13:15:34

That looks pretty cool ! I don't know the coding to it unless I see it on action but what you are saying makes sense

deleted-U06C7A8PVLJ
2025-08-15 13:15:42

Great job on this James !!

James Turner (jturner@shield-legal.com)
2025-08-15 13:15:56

I haven't tested it yet, so I can't guarantee it works yet lol,

deleted-U06C7A8PVLJ
2025-08-15 13:37:46

Oh okay that is a good idea to do

😆 James Turner
James Turner (jturner@shield-legal.com)
2025-08-15 13:48:40

Are you available for me to head over there for a few minutes and test something with you??

deleted-U06C7A8PVLJ
2025-08-15 13:50:15

Not at the moment but will be around 12ish

👍 James Turner
James Turner (jturner@shield-legal.com)
2025-08-15 13:55:41

cool, I'll head over in a few- I appreciate

James Turner (jturner@shield-legal.com)
2025-08-18 16:08:52

Hey there, i am attempting to build a map like you have for the abuse states, but I have over 5k leads.. I remember you had a really cool summary measure thing of how many leads per zipcode, how did you set that up?

deleted-U06C7A8PVLJ
2025-08-18 16:11:09

Hey James. Are you trying to build a map where it looks at what city they are in?

James Turner (jturner@shield-legal.com)
2025-08-18 16:11:25

I was gonna go by zip code but anything like that yeah

deleted-U06C7A8PVLJ
2025-08-18 16:13:16

If so I think a better approach would be to go for states since it is more simpler. I had to manually look up the longitude and latitude for each city through ML and then input that into a table. Ideally it isn't scalable unless there is some type of table out there that gives us those things where we can pull from through an API then I think yes

James Turner (jturner@shield-legal.com)
2025-08-18 16:16:22

Hmm dang- Yeah that's not really scalable to realtime without heavy backend work..

Even if I go for state, I'm still going to have 1 row per lead which will only give us the first 5000 leads max

James Turner (jturner@shield-legal.com)
2025-08-18 16:17:51

How did you get the interactable map? was that googlemaps visualization?

deleted-U06C7A8PVLJ
2025-08-18 16:19:52

Yeah it would require backend work which make take some time. Yeah that is true about the 5k limit It is one of looker enterprises visualization the map part where it is interactable by default when they click on it

deleted-U06C7A8PVLJ
2025-08-18 16:21:20

I will look into how to get that data though since I think having the city level looks pretty cool but I think that may just be an overkill. Maybe just do 5k and anything that doesn't show up may not be so significant. Ideally how they like me to do the dashboards is one dashboard per a campaign (each campaign includes intake and secondary) so with that you won't have to worry about the 5k limit for most campaigns

👍 James Turner
deleted-U06C7A8PVLJ
2025-08-18 16:21:23

That might help

James Turner (jturner@shield-legal.com)
2025-08-18 16:40:57

I set it up in a way that asks for and supports selecting a broad tort type or campaign first and I think that works pretty well

James Turner (jturner@shield-legal.com)
2025-08-18 16:41:18
deleted-U06C7A8PVLJ
2025-08-18 16:43:24

It's looking good so far! Great job on this :meow_attention:

James Turner (jturner@shield-legal.com)
2025-08-18 16:49:59

Thank you- It's taken HEAVY inspo from your mormon page

:meow_attention: deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2025-08-18 17:24:30

From one inspiration to another inspiration is sometimes the way of the warrior 🥷:skintone2:

:fastparrot: James Turner
James Turner (jturner@shield-legal.com)
2025-08-26 12:28:32

Hey there- is the information that feeds into ryans 1.3 in Looker enterprise? I want to build something out to compare new and old systems

deleted-U06C7A8PVLJ
2025-08-26 12:31:21

Good morning James. Looks like that one is Looker studio

James Turner (jturner@shield-legal.com)
2025-08-26 12:34:27

I know the actual dashboard is- for info I'm trying to find a way to reconsile between the old financial systems and newfin. I saw July closed yesterday with around 3545, but my newfin system said 3575 so I wanted to find the differences

deleted-U06C7A8PVLJ
2025-08-26 12:39:26

I see. My guess is you want to find the tables associate with it so that you can compare it against the newfin with a code to spit out the differences huh

James Turner (jturner@shield-legal.com)
2025-08-26 12:41:14

Yeah- I want to find the data that shows the leads deemed billable in the old system\

deleted-U06C7A8PVLJ
2025-08-26 12:43:17

Yeah I would make a copy of the dashboard and play around with the internal table settings is my suggestion since I am not too familiar with where he is pulling it from

James Turner (jturner@shield-legal.com)
2025-08-27 11:45:50

Hey there' I need access to Ryans postgres so I can start doing data verification- Do you know how to set up that connection in Pycharm, and what table the finalized leads are?

deleted-U06C7A8PVLJ
2025-08-27 11:54:13

Hey James 👋

deleted-U06C7A8PVLJ
2025-08-27 11:54:30

I don't have pycharm installed 🫠

James Turner (jturner@shield-legal.com)
2025-08-27 12:26:18

You connect to it through PGadmin?

deleted-U06C7A8PVLJ
2025-08-27 12:29:15

Yes

deleted-U06C7A8PVLJ
2025-08-27 12:29:52

I believe he sent us creditials for it a while back I would probably do a slack search for pgadmim or creditials

deleted-U06C7A8PVLJ
2025-08-29 14:11:33

Hi @James Turner. May I ask for your associate when it comes to finding some leads where it went from s&d status to any other status between specific campaigns?

deleted-U06C7A8PVLJ
2025-08-29 14:11:49

I have a deadline to send to cameron for flatirons and currently having some struggles

James Turner (jturner@shield-legal.com)
2025-08-29 14:13:54

Happy to help where I can, just to make sure I understand- you're looking for all leads that were "Signed and Declined" and went into a different status?

James Turner (jturner@shield-legal.com)
2025-08-29 14:14:21

Send me: casetype ID

James Turner (jturner@shield-legal.com)
2025-08-29 14:36:47
James Turner (jturner@shield-legal.com)
2025-08-29 16:55:35
James Turner (jturner@shield-legal.com)
2025-08-29 17:14:00

WITH statuslog AS ( SELECT ** FROM <a href="http://tort-intake-professionals.lr">tort-intake-professionals.lr</a>_data.lead_history_status WHERE DATE(date) BETWEEN DATE '2024-06-10' AND DATE '2024-06-16' -- Edit date range here ), casetypeinfo AS ( SELECT lawrulerleadid, lawrulercasetypeid FROM tort-intake-professionals.tip_ops_dashboards.All_LawRuler_Leads_With_Enrichment WHERE lawrulercasetype_id = "605" ), -- Edit Campaign ID here

enrichedleaddata AS ( SELECT iscurrentlybillable, lawrulerleadid FROM tort-intake-professionals.tip_ops_dashboards.All_LawRuler_Leads_With_Enrichment ) SELECT s., c., en.iscurrentlybillable FROM status_log AS s

JOIN casetypeinfo AS c ON s.leadid = c.lawrulerleadid JOIN enrichedleaddata AS en ON c.lawrulerleadid = en.lawrulerleadid --WHERE fromstatus LIKE "%DEC%" --AND WHERE iscurrentlybillable = TRUE

James Turner (jturner@shield-legal.com)
2025-08-29 17:14:18
James Turner (jturner@shield-legal.com)
2025-08-29 17:49:33

505123 502902