I’m having an interesting issue and I’m hoping it’s user error. I can save a date range into a state but the date range will no longer save to my database.
Also, all of my date range entries in my database show as ["",""]. I’ve tested multiple apps.
@lantzgould yes it is. It’s worked for the last 3 months when I set it up. I just noticed it was not working anymore. I created a new app and I am getting the same issue with number ranges, as well. Is the date range working for you fine?
@emmanuel, @josh Please can you look into this. Date range has stopped working and its broken a lot of my client’s app.
I’m guessing there has already been some bug reports filed on this.
Filed as Bubble bug report #7629 (with prejudice). You can clearly see the problem here:
Use the CG Pro element to pick a range. Now click “store that range in the db”. Note how the newly constructed range is [null, null] (as shown in the text element and in the RG).
Worth noting: It’s RETRIEVAL of date ranges that is verifiably broken. The repeating group on the page I link to contains (or, perhaps, DID contain) valid date ranges. However, a query (“Do a search for…”) as well as the App Data tab show them as [null, null]. App Data screencap:
I’m sure it’ll get rectified fairly quickly, but it’s a bit baffling how this could happen. That it did happen indicates that Bubble has no automated tests configured around “higher order” Bubble data types. It’s not a minor issue – they broke the language, not just some random user-created API to the platform. It shouldn’t be possible to push an update that breaks the language.
(But in a way this is no surprise: Date ranges are red-headed stepchldren. You’ll note that there’s no way for [for example] the API Connector to return a higher-order “data type” like date ranges. It only supports pure JavaScript data types and core JavaScript API objects [e.g., dates, which are not a data type in JS, but might as well be]. Date Range objects are, at their core, a 2-element array of JavaScript date objects [date_1, date_2].)
Yeah I’ll be honest, its a little worrying something like this can slip through the cracks. I just hope this gets addressed promptly and future precautions are setup to avoid this kind of disruptions.