Thanks to all who helped me on this. Faye, Mishav and Marc have been very helpful.
I am “closing” this topic and removing the sample app. The problems I encountered have not been resolved, but I have learned enough from this discussion to pull back and take an entirely different approach to the page that has given me so much trouble.
Because this problem is not going away and is terribly slippery, I’m updating the topic with current info in this opening post.
There are currently three distinct problems. One happens consistently. The other two come and go. They are not necessarily repeatable.
At this point, the solution @mguerrasio applied isn’t a complete solution. Today, the action-detail page fails to run the Page is loaded workflow on some Actions selected from the list (index page.) I cannot identify the conditions under which the workflow does not run. It is unpredictable.
When the Page is loaded workflow runs, one of its last actions is to Set state isDirty of action-detail to “no”.
The state isDirty controls the conditional dimming of several buttons to signify that they shouldn’t be used.
(note: for testing, the buttons are dimmed but not disabled.)
There is no reason for the buttons to be dimmed on a freshly loaded page since isDirty would be set to “no” in the Page is loaded workflow.
- In all circumstances, even when the page loads correctly, it takes far longer than I would expect. In the best of circumstances, it is about five seconds to load. I realize there is a lot going on with the page, but I don’t understand what is taking so long. As far as I know, Bubble doesn’t provide tools for diagnosing timing issues.
Original post on 9/7/18:
I’ve experienced a myriad of problems with this app for more than a month. I need help figuring out what is going wrong.
For most of this year, a rudimentary version of the app has been working just fine. I’ve made minor enhancements periodically, and things have worked pretty much as expected. In early August, I undertook a major enhancement, implementation of one-to-many relationship between Project and Action. Previously, I had been using Project Name in Action records to identify the Project each Action belonged to.
I’ll explain more about this later in the message.
Today’s problem seems to happen consistently and is preventing me from getting back to diagnosing other problems that cropped up as I worked to make the new referential integrity work and to diagnose various problems.
Here’s a picture of what the page looks like after loading. It is incomplete, and the Save button is an odd shade.
Project, Verb, Context and Due date should be showing values from the database record.
The Save button should be the same color as the Save + Copy button. It’s shade is almost as though the button is being hovered, but not quite.
In short, it appears that Bubble simply left the page without finishing the load process. It doesn’t appear to have started the Page is loaded workflow.
There is a lot more I could say about what should be happening under the covers. For now, I’ll just provide a link to the editor.
It is based on the live app where things started to go wrong a month ago. I’ve added logging in the workflows to help determine what is happening. Perhaps that has made things worse, but I don’t know.
It may be helpful to take a look at my previous post with a lively discussion of problems I’ve encountered that led me to create this scaled down app for public viewing.
All help is appreciated.