Hi all
I’m having some issues with my User type, which drives some drop downs for filtering a tasks list. Any user should be able to see a list of other users to choose from.
If I set privacy so that any logged in user can view / list, it works only intermittently. Sometimes I can only list myself, sometimes all users and sometimes nothing.
If I set it so that default private is view / list, it always works.
At first I thought it was something to do with login / cookies but it can happen on a new incognito page with fresh login. I’ve also added a login timeout to force re-login which doesn’t help.
Not sure on the next steps to debug this.
I’ve just had the same thing happen even though “everyone” now has view and list access. One user, working fine all day, suddenly no data loading to populate dropdowns.
I can’t seem to find how I can get help for this directly from Bubble. It’s blocking my progress, I’m not sure how to proceed. Can anyone steer me?
Here is the problem - AssignedTo should show a list of names and normally does, then randomly just doesn’t. I can’t see to relate when it happens to permissions, login, cookies.
Hi!
- Yes, as mentioned it is in use then suddenly doesn’t list the users. Sometime refresh or log back in shows them again.
3. Data is the users list which I would rather not post here, but clearly being logged and used must have at least one user (in fact there are 5 testers)
4.
Privacy rules are evaluated on page load - could that be the issue here (if a user is logging in without a page refresh, for example?)
I assume has an account
is a yes/no and is yes for the relevant users?
Has an account is built in, I added it trying different things. It used to be only “current user is logged in” and still had the issue.
I can try adding a page refresh but given it can work just for some time before stopping working, I’m not sure how that will help.
I had something very similar happening to me. I’ll share what I did, it might help you out sort your problem.
So, I had to populate the RG on page load - so every time page loaded I checked if the RG was finished loading (RG is loading is no) AND if the list had the amount of items I expected. In your case you could expect that the RG:count > 0.
If the amount of users is 0 then you trigger the second action: Display list in RG.
This way, I re-assured the page was reloaded with the data correctly populated.
In your case, I see list has to be displayed every time you press the filter button. So, on button click, you could add the step “Display list in RG” with the conditions I previously mentioned to re-populate the users lists in case it fails to fetch a first time.
PS: I find it hard to believe it has anything to do with privacy rules.
Thanks for the idea. Funnily enough this is a drop down powering an RG. When the problem occurs, the drop down itself does not populate (based on the user query) resulting in being empty. As such the RG, because it has ignore empty constrains set, then shows ALL items successfully. So the RG works no issues even when the dropdown stops working.
I have added both a login timeout as well as a forced refresh after login (it is an SPA). Since then I don’t think we have seen the issue. So maybe this was some random timing issue with permissions and login time / page load performance or something.
Then it does seem like an issue affected by the above. It’s advisable to refresh or navigate to a new page after a login action. This ensures the correct privacy rules apply.
1 Like
Quick update - this does seem to have resolved the issue (the page reload after login). It does make sense especially in an SPA I suppose!
1 Like