Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content: 1.1.12 #109

Merged
merged 3 commits into from
Oct 8, 2024
Merged

content: 1.1.12 #109

merged 3 commits into from
Oct 8, 2024

Conversation

esmeetewinkel
Copy link
Collaborator

@esmeetewinkel esmeetewinkel commented Oct 7, 2024

Use preview URL to see that highlighted task group populates correctly initially, but then disappears on refresh.

Screenshot:
image

Screen video:

Screenity.video.-.Oct.7.2024.webm

Copy link

github-actions bot commented Oct 7, 2024

Visit the preview URL for this PR (updated for commit d4122f8):

https://parenting-for-respectability--pr109-content-1-1-12-nliq0ibu.web.app

(expires Tue, 22 Oct 2024 15:37:01 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: fadc6f41d770cf5a50996f703271c184e2fae6fe

@esmeetewinkel
Copy link
Collaborator Author

esmeetewinkel commented Oct 8, 2024

@jfmcquade on Mattermost

Hi. I tracked down the source of the task completion bug. It was indeed a change I made in the sprint before the Kuwait meeting. I could go into lots of detail, but the issue is that this commit essentially made "completed" be the default name for the column that tracks task completion via dynamic data. I didn't realise at the time, but that was a breaking change because it means that data lists that use that column name are automatically assumed to be using dynamic data. But for some older deployments, we use that column name without using dynamic data.

If I remember correctly, the use of that column name, and its assignment to the value @[email protected]_field was essentially an authoring convention to make it easier to grab the completed value of a given task in the app: rather than getting the value by looking up a field like @field.{@data.my_data_list.my_task_row.completed_field}, we can just use @data.my_data_list.my_task_row.completed, and since that value references the field, it would grab the current field value. This is essentially a shorthand, and completely separate from the dynamic data implementation of tasks, which uses a completed column to store a boolean value that gets updated via a set_item action.

So my proposal for a fix:
Re-author deployments that make use of a completed column in this way (to reference a @field. value) to rename that column, e.g. completed -> completed_value. This avoids using the now protected column name "completed", which should only be used for dynamic data tasks. This will also involve updating all references throughout the deployment to refer to @data.my_data_list.my_task_row.completed_value (or whatever name is best) instead of @data.my_data_list.my_task_row.completed.

Does that seem sensible? At some point we will probably want to update the old deployments to make use of the dynamic data feature when handling tasks, but I think this intermediary fix would be worth it.

@esmeetewinkel esmeetewinkel merged commit f779a47 into main Oct 8, 2024
3 checks passed
@esmeetewinkel esmeetewinkel deleted the content/1.1.12 branch October 8, 2024 15:50
@esmeetewinkel esmeetewinkel mentioned this pull request Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant