Closed atlasjen closed 2 months ago
The fields are hidden by the user has access. If we want to hide fields based on position, we need to move them into an action, like we did for the position-specific data.
i'm not sure what moving to an action involves. would they still be on the main page or would they be moved to a separate tab? I should also clarify anyone who is in the Volunteer permission set you are working on.. not based on position.
So you want these fields to be visible in the permission set for contacts with certain positions, but not others? That's the challenging part.
How about we use sharing rules to hide the non-volunteer contacts, and create a LWC that shows emergency contact information? Or is that even necessary? If we share the emergency contacts with the volunteers?
Using Dev branch in a scratch org:
I created new user w Atlas Minimum Access Profile. Note, i did not make them marketing users. I manually added them to AtlasBase and AtlasVolunteer permissions sets
Verified good:
Will need to test in prod
We are missing related people, for example, their emergency contacts
I was able to delete a lead owned by someone else. I am ok w/ them deleting leads owned by them, but not by someone else.
Volunteer files don't show (blank and NA category do). Note, files classified as Trainer properly don't show. i think keeping blank and NA is good, but we should also include Volunteer.
Here is what i uploaded for a user:
Here is what i see as the volunteer user:
let me know when this is ready to retest :)
Sigh, I suspect including the groups in the package will be problematic.
It's ready to test, I have a PR for it. But you will need to enable the relationship trigger.
Tested again.
I created new user (tuser@atlasdog.org) w Atlas Minimum Access Profile. Note, i did not make them marketing users.
I manually added them to AtlasBase and AtlasVolunteer permissions sets from the visual code terminal
sfdx force:user:permset:assign -n AtlasVolunteer -o tuser@atlasdog.org sfdx force:user:permset:assign -n AtlasBase -o tuser@atlasdog.org
I went to Setting, Apex Triggers, and activated the Relatipnship Trigger
I logged in as my test user:
I didn't see any contacts at all. [Note they are there for my default user and there are plenty w position of volunteer] I also don't see Accounts. I can see Program Assignments, Programs, Leads.
I created a test user "bob brown" bbrown@user.com
I got a popup error about a duplicate user but it made it anyway. I was able to create another contact who was a relationship and see them. So I think we can mark off relationships as working ok. I went back and checked as my scratch user and no other email matched, so not sure what is going on there.
Error: Could not process MDAPI response: Update of SharingCriteriaRule Contact.Volunteer: Error on line 3, col 27: Deploying sharing rule Volunteer not supported for object Contact since it's org wide default is 'Controlled By Parent'
reopening in 1.8
Closing this because it is addressed in PR #536. If there are more things to address, please open a new issue. This re-opening of issues makes it hard for me to keep track of what I've worked on. We can always reference closed issues when creating new if we need to refer to history.
Its frustrating when an issue is reopened because I forgot to setup something in a scratch org.
And yes, I might change my mind about this, too.
let's also hide any contact info fields for anyone who is not a volunteer is this doable? i know salesforce uses these to dedupe, so not sure if that is an issue. this would apply to contact and account.
i am thinking we hide these on contact: email, personal email, phone, other phone, alternate email , birthdate, pronoun, specified pronoun, mailing address, other address and hide these on account: phone, billing address, shipping address