Atlas-Assistance-Dogs / atlas-dogs

Repository for Atlas Dogs flows in Salesforce
1 stars 1 forks source link

430 add dog as a column in tf and client logs #434

Closed deb761 closed 1 year ago

deb761 commented 1 year ago

Critical Changes

Changes

  1. Modified LogController to check object type from recordId and return only the logs for the dog and client for teams.
  2. Fixed the breadcrumbs in view all related items.
  3. Removed the relatedTeamLogs LWC as no longer needed.

Issues Closed

430

atlasjen commented 1 year ago

I tested a few use cases.

deb761 commented 1 year ago
  1. I think it makes sense to link the logs to teams rather than matching client and dog. We can still show the Client, TF, and dog in the list if needed, but showing the Team name with a link is about the same thing as Client and Dog.
  2. The bug with the TF log is not expected. I'll look into it.
atlasjen commented 1 year ago
  1. TF logs look like they are populating well now, thanks!
  2. Let's update the Logs "all" and "recent" views to include Team image
  3. The "new" and "edit" buttons on Logs (when viewed from logs list view, not team) needs to be overloaded to bring up the form that uses team vs client and dog image
  4. you will want to update the sample data for logs to add team
  5. Facilitator should be required on the TF Logs (both if set from the contact, team or "logs")
deb761 commented 1 year ago
  1. I had updated the sample data, but you must have used skipped loading it.
  2. How about we replace Client and Dog in those list views with Team?
  3. How about we hide the Client and Dog fields? Would the default new dialog work then? We would definitely need a custom form if Facilitator is required in TF logs but not on Client logs.
atlasjen commented 1 year ago
  1. I did a pull and then pushed so maybe that skipped loading data ; I bet it did
  2. Yes team only works
  3. Ah if it requires a diff form them just leave it optional. Tf’s should be smart enough to put their name in as it is their log.
deb761 commented 1 year ago

I've updated the list views. Need to update the PostInstall script to populate the new Team field for each log. Overriding the new button for log is a lot of work, much better to use the default form for now.

Question: Do we want to remove Handler from the Log, since the handler is part of the Team object?

atlasjen commented 1 year ago

Pulled the latest to a new scratch org.

  1. The "log" NEW form still uses client and dog vs team (for both client and tf logs). if accessed via Logs. If accessed via contacts/teams, it is fine. image image
  2. I am getting an error on the data load [02/20/23 16:39:00] Prepared 10 rows for DataOperationType.INSERT to ContinuingEducationUnitc. Running step: Insert npe4Relationshipc Creating DataOperationType.INSERT Operation for npe4Relationshipc using smart Prepared 0 rows for DataOperationType.INSERT to npe4Relationshipc. Running step: Insert DogRelationshipc Creating DataOperationType.INSERT Operation for DogRelationshipc using smart Prepared 50 rows for DataOperationType.INSERT to DogRelationshipc. [02/20/23 16:39:01] Running step: Insert Logc Extracting Record Types for Logc Exception in task config_dev.load_dataset

Error: 'Team__c_sf_ids'

Everything else is looking great !

deb761 commented 1 year ago

I think the problem with the default New dialog is that the dev_org flow updates the Admin profile to have access to everything. If you modify the Admin profile to remove access to Log.Client and Log.Dog, they won't be in the new dialog.

image
atlasjen commented 1 year ago

Agree on pulling handler from Log as, you are right, they are part of team. Let's drop them from the log.

I changed the admin profile in my scratch org. I think one thing that confused me is team was all the way on the bottom of the form and i didn't even see it. Can we move it to the top? Maybe right above handler? The new client and new facilitator forms you get from w/in the related lists are great. Team is up top. So if we could have them be consistent when accessed through Log that would rock.

Everything else tests out, so all that is left is move Team up higher in the New Log form that is accessed from Log and drop Handler from the log. Woot!!

deb761 commented 1 year ago

Sadly, we can't change the default new dialog. How important is it to move the Team input in the form?

atlasjen commented 1 year ago

I can get people used to going down there, it’s just super non-intuitive..

From: Deborah Engelmeyer @.> Sent: Wednesday, February 22, 2023 7:47 AM To: Atlas-Assistance-Dogs/atlas-dogs @.> Cc: Jennifer Kolar @.>; Assign @.> Subject: Re: [Atlas-Assistance-Dogs/atlas-dogs] 430 add dog as a column in tf and client logs (PR #434)

Sadly, we can't change the default new dialog. How important is it to move the Team item?

— Reply to this email directly, view it on GitHubhttps://github.com/Atlas-Assistance-Dogs/atlas-dogs/pull/434#issuecomment-1440286286, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APYTKLLBWM4YDESAGFNKZGTWYYYG7ANCNFSM6AAAAAAU6LVMKY. You are receiving this because you were assigned.Message ID: @.**@.>>

deb761 commented 1 year ago

Thankfully, I was able to improve those dialogs:

image image
atlasjen commented 1 year ago

looks good to me!