This message was deleted.
# questions
b
This message was deleted.
1
s
@millions-army-64326 We do, if you mean having a conditional role. I think your issue is https://stacker-customers.slack.com/archives/C026T10EBFZ/p1639649444067300
m
@sticky-night-20812 possibly, my configuration is similar. Is your role assignment always the first role? My user starts with the role where checkbox is false (the second one in my order). It should then change to where checkbox is true (first one in my order). The initial role assignment is correct, just doesn't refresh immediately.
s
If you always specify the checkbox then it’s not an issue. The issue is when you have 2 rules like: • role is X • role is X and checkbox is false In this case, “role is X” is always true, whether checkbox is true or false, so the second rule is never applied
m
Ah okay, thats not my case. Mine is; • ROLE A: checkbox is true • ROLE B: checkbox is false (this being the default)
s
Then it shouldn’t be an issue 🙂
As for the “refresh” latency, I have no idea, but I’m interested to know if it causes any latency 😬
m
Yeah, There are a lot of caveats when it comes to data sync working for User creation and Roles. It's getting frustrating as even the right configuration doesn't work and then have to chase Support to figure out why.
@elegant-eve-85294 @freezing-car-89097 @loud-traffic-28412 Can you please let me know what is the expected behaviour for Role change? Does it happen immediately or is there a lag time? This issue has been open for a long time and I'm not getting any clear answer.
e
Hi @millions-army-64326. I’m sorry that it feels like you have to chase us—that is not our intention, and we want to do better. I’d like to give you a bit of background about why getting seemingly straight answers sometimes takes longer than we would want to. Stacker currently has 2 vastly different major versions, and a few sub-variants. It also allows very complex setups that where you can get to the same place in a few different ways. In order for us to give you answers, we need to identify at which exact point your setup is, confirm that behavior with development, and then try to find a way that would work for you. To try finding a way that could work for you, we need to fully understand your setup and what you would like to do. The tricky part is that the constraints you’re looking to get can change depending on many factors. This is by no means an excuse, but rather a window in the current situation. We got ourselves in it, and we’re working hard to make both our product and supporting you easier. Looking at the ticket, it seems like we now have means to see the behavior you are seeing for ourselves. We’ll follow up in the ticket as we make progress, and then update this thread so others have an answer too.
👍 1
Here’s an update: When you use the built-in edit record button, there should be no lag or delay. This is because we’re automatically getting updated records. Action buttons—that Ruchika is using—do not have this logic. Because of that, there will be a delay in recognizing the roles until the data syncs. We plan to add the same logic to action buttons, but this will most likely happen some time in the new year.
s
@elegant-eve-85294 As I use action button specifically to update the current record, I find the above explanation either wrong, or not always true. See https://stacker-customers.slack.com/archives/C01CH3HCZR9/p1631974141014800
e
@sticky-night-20812 I’m sorry, I should have clarified this further—this is the case only for related records, and by extension the case with role assignments. So Ruchika’s specific case with the role change If I understand your video correctly, you’re updating a formula field with the action button.
m
As @sticky-night-20812 mentioned, updating a checkbox using an action button has always worked. As in, it has always resulted in an immediate sync with Airtable for that record. @elegant-eve-85294 What I'm taking away from what you said is that while there will be an immediate sync, if the sync results in a Role change that will take time (It seems internally it's handled through related records for this role change?) As discussed in email, would like to understand whether the role change is delayed regardless of whether checkbox is updated on Action Button or updated through edit.
e
@millions-army-64326 The role change is indeed treated as a related record. It isn’t delayed if the checkbox is updated through edit. You can see this Loom for a demo of the role being updated immediately: https://www.loom.com/share/636b9b3e76504294ad01f5f9e6ca2407
s
Thanks for the details, I understand better. I never fell into that since most my roles are updated through automations, hence I always suffer from the delay.
m
@elegant-eve-85294 Thanks, yes I just checked the update in Edit mode and it does change the Role. Though, I still can't use this because while the Role changes, I need to refresh the browser to see the UX components reflected as per the role 🤷🏽‍♀️😅. Thanks anyways for the clarification.
👍 1