I have a date coming from a backendless table (“ad” object retrieved via data api block, as you can see below), and would like to format it as a date string with one of your provided blocks:
Hi Mark - Thanks for the suggestion. I went to go and test this theory out, but when I went to drag a block into the editor window, it somehow deleted most of the blocks/ code in the function.
I can see the deployed version’s code is intact (via the code tab), but the tab in the designer has it scrubbed. Is there any way to get the “working copy” of the function restored to that code that is deployed? (So I don’t have to waste time re-creating all the blocks?)
As far as the syntax goes, it is now correct and will not throw an error. But, the results are not correct … the custom conversion function + backendless string convert returns a date of “Sat Apr 25 2065”, when it is “1501567200000” (via rest) or “Aug 1, 2017” in backendless console, in this example.
I do however see some more inconsistencies with codeless when there are new releases.
When I opened my codeless service to check out the new block, I noticed some of my string values (the simple green block where you specify a string) were all missing.
I cleared cache, and then they came back to the version that was deployed.
I then made the change to use the new block, and deployed. When I went back into the service to make some more changes, I noticed most of the blocks were then missing after the deploy.
Is there a way to get the version of the code from like a day ago, so I don’t have to reassemble the entire function? (I remember Mark also saying at one point in the past to check out the code tab in BL to see if the logic is indeed gone … I did check this time, and it seems to be gone from there as well).
It was not supposed to happen because of new features.
We just added a new blocks and did not remove any other blocks.
Anyway, accept our apologies for the inconveniences. We’ll try to reproduce the problem to avoid it in the future.
And yes, we have backup files for you, how would you like to get it?
I can make an archive and deploy it to your app in Files Service, lets say to the root directory.
I’ve noticed that you have only 2 changed files, so you have to replace exists file contents (xml files) with content from backup. then go to Codeless tab, open the logic and do some manipulation (just shift root block) for trigger code generation, new js code must be regenerated according to xml file and then deploy the new logic.
or if you want I can try to do it for you
and just remind:
when you do some changes in one method of service, lets say MyServiceA, and then do some changes in another method of the same service MyServiceA and when you click to “Deploy” button you actually deploy all changes for service MyServiceA
It’s no problem at all, and I appreciate your help with this
Would you mind restoring the service? Right now, it would just be the “AnalyticsService” / Model that I’m concerned with.
I’m also not sure if this extra context would help with your investigation, but a few weeks ago (in my “RegistrationService”), simply just opening the function would mark it as a “change” - went from no change (from deploy) to being green in the sidebar (changed), simply on opening it in the designer window (with no manipulation to any of the blocks). Also any of the weird “disappearing” issues i’ve had is almost always surrounding the string blocks (or other blocks using string blocks).
when/if you noticed that some of your blocks are disappeared, don’t deploy the changes, just create a new support topic and we’ll help you, and also it will really help us to catch/fix the problem
I was able to do the final testing with the new block now, and everything works great!
I will definitely continue to keep an eye out for any oddities with disappearing blocks (and try to pay more attention with steps to reproduce) and will report them if anythign else comes up!