You’ve got a lot of users with similar-sounding emails and names ‘steph’ ‘stephan’ ‘steve stevens’ which makes this somewhat difficult to troubleshoot when cross-referencing with your DB lol.
Here’s the output from your example.
[
{
"course": "Something reallyl long that takes up a few words",
"level": "Graduate Certificate",
"institute": "A big wordy institute, probably somewhere that's overseeas",
"user": {
"name": "Stephan Oberton"
}
},
{
"course": "Workplace Leadership",
"level": "Graduate Diploma",
"institute": "Stott's Colleges",
"user": {}
},
{
"course": "Engineering (Mechanical)",
"level": "Bachelor Degree",
"institute": "Royal Melbourne Institute of Technology (RMIT)"
},
{
"course": "Agricultural Sciences",
"level": "Bachelor Degree (Honours)",
"institute": "Royal Melbourne Institute of Technology (RMIT)"
},
{
"course": "Agricultural Sciences",
"level": "Associate Degree",
"institute": "Academy of Information Technology",
"user": null
},
{
"course": "Agricultural Sciences",
"level": "Bachelor Degree (Honours)",
"institute": "Acknowledge Education",
"user": {
"name": "Steph Maynard"
}
},
{
"course": "Adolescent Health and Wellbeing",
"level": "Certificate",
"institute": "Acknowledge Education"
}
]
]
-
One of the users has been deleted, which explains user:null value
-
Stephan Oberton and Steph Maynard seem to be correct. Which explains your finding of one user returns the correct value
-
Having several different Qualifications things referencing the same user thing Steve Stevens and failing in this way … that is certainly more puzzling.
I would try:
- Running this without any customization JSON
- temporarily turning off all privacy rules for the
user and the Qualifications even if it looks like they are set correctly.
- Try multiples of a different
user
- is it
Steve Stevens that is the issue or all users?
- Creating a dummy type (not a
user) and try putting the same type in multiple Qualifications and see if this happens again, but with a different type.
- In other words, is it looking up the
user that is failing or is it looking up any thing multiple times that is failing?
- try using the same thing for all
Qualifications, then try adding in a 2nd thing, does the behavior change?
Not to put the cart before the horse, but I’m concerned that bubble might be failing to return a result from the database when the plugin repeatedly queries the same user thing over and over–in this case 4+ times in a row. This isn’t behavior I’ve seen before, but there is a first time for everything.
It could be a bug, in which case we can reach out to bubble support, however their support for plugin developers is pretty poor in my experience and so I wouldn’t expect to see this get resolved in a timely manner, but things are changing so who knows.
I could try to modify the plugin to account for this new quirky behavior with the db lookup, but I’m not inclined to do so if this is bad behavior on bubble’s part, should things change again in the future and cause my fix to break something else. In any case, more information is needed to troubleshoot.