Oi, that was stupid (DBO)
Okay, so… Cody was right. That little hiccup was an issue with "not enough testing" on my end before publishing. For those who even care about such things, here's the skinny…
There is a "FTB settings" table in the database exclusively for storing information related to your FTB preferences. Right now it only contains the filtering options, but later it will hold RSVP info and, maybe, other things.
Here's the rub… the system only creates a database row for you only if you've bothered to set any preferences at all. If you don't have preferences, it returns a null
data set with empty placeholders for various options. This is how the rest of the code knows whether or not you've set preferences or not. The first time you do set a preference, it's supposed to create a new row for you that's populated with data instead of null
values, and the code reacts accordingly.
Only that whole "return the empty placeholders" thing wasn't actually working for everybody else but me. Because I tested the system immediately after publishing, there were no rows in the database before me and everything worked as planned. But when everyone else tried to set preferences, the database was returning my account's preferences instead of a blank row. This meant that the database thought it didn't need to insert a record, so it was attempting to run UPDATE
operations on rows that didn't exist. Thus, no data got saved.
Turns out I forgot to insert two characters (a =
and a 0
, in that order) at the proper place in the SQL query. After I finally tracked down what was happening, the fix was easy.
Complete thread:
- Platform Filters! (read: You'll need to force-reload) -
Beorn,
2015-05-21, 19:36
- User Interface: Bungie: 0. DBO: 1. - iconicbanana, 2015-05-21, 19:37
- Platform Filters! (read: You'll need to force-reload) -
CyberKN,
2015-05-21, 19:38
- +1 - unoudid, 2015-05-21, 19:40
- Persistence -
Beorn,
2015-05-21, 19:49
- Persistence -
CyberKN,
2015-05-21, 19:58
- Try force-refreshing and/or manual cache clear - Beorn, 2015-05-21, 20:01
- I'm seeing the same thing -
Earendil,
2015-05-21, 20:02
- Have to agree. Keeps resetting on my end. -
iconicbanana,
2015-05-21, 20:04
- Very strange -
Beorn,
2015-05-21, 20:06
- Very strange -
Claude Errera,
2015-05-21, 20:29
- I see the post going out when I click the button. - dogcow, 2015-05-21, 20:30
- Safari, too - Claude Errera, 2015-05-21, 20:34
- Very strange -
ZackDark,
2015-05-21, 20:50
- Very strange -
Ragashingo,
2015-05-21, 20:58
- Where is Cody? -
Earendil,
2015-05-21, 21:07
- Haha! Wow! Great suggestion! :p - Ragashingo, 2015-05-21, 21:48
- Where is Cody? -
Earendil,
2015-05-21, 21:07
- Very strange -
Ragashingo,
2015-05-21, 20:58
- Very strange -
Claude Errera,
2015-05-21, 20:29
- Very strange -
Beorn,
2015-05-21, 20:06
- Have to agree. Keeps resetting on my end. -
iconicbanana,
2015-05-21, 20:04
- Persistence is working for me now. -
MacAddictXIV,
2015-05-21, 21:29
- Ditto. Thanks, Beorn! - CyberKN, 2015-05-21, 21:31
- Same. You rock, Beorn! -
Claude Errera,
2015-05-21, 21:36
- +1 - DreadPirateWes, 2015-05-21, 21:37
- It's good on mobile too. - iconicbanana, 2015-05-21, 21:36
- Working here too. Thanks, Cody! ;) -
Ragashingo,
2015-05-21, 21:49
- LOL! [nt] - Earendil, 2015-05-21, 21:58
- Working here too. Thanks, Cody! ;) - Cody Miller, 2015-05-21, 22:50
- Beorn: I didn't do anything - ZackDark, 2015-05-21, 22:42
- Oi, that was stupid -
Beorn,
2015-05-21, 23:05
- Totally called it - ZackDark, 2015-05-21, 23:17
- Persistence -
CyberKN,
2015-05-21, 19:58
- Platform Filters! (read: You'll need to force-reload) - MacAddictXIV, 2015-05-21, 19:38
- Sweet! <disables PS3> -
dogcow,
2015-05-21, 19:44
- lol - CruelLEGACEY, 2015-05-21, 19:54
- Why bother? - Kermit, 2015-05-21, 21:17
- Awesome! Thanks for yet another great feature :) - CruelLEGACEY, 2015-05-21, 19:54
- wooo! Nice! - slycrel, 2015-05-21, 20:38
- Nice! - DiscipleN2k, 2015-05-21, 20:58
- Platform Filters! (read: You'll need to force-reload) - SteelGaribaldi, 2015-05-21, 22:34
- Awesome! Thank you for all your efforts! - Oholiab, 2015-05-22, 02:40