Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
I've built a tool to let students work a bit more directly with their planner items. Problem is, I'm running into a problem toggling planner items complete and incomplete. No matter how I've sliced it, I run out of bites at the apple -- eventually it just gets stuck in a state that I can't change.
Here are the two approaches that I've taken:
First approach.
Second approach.
Is there a third, workable, workflow that I'm somehow missing here?
Thanks!
Solved! Go to Solution.
This is me (as in: I posted this). I found, after a bunch of experimentation, that the issue was something in my own script (of course). I think it was perhaps not passing the correct Content-Type header. In any event: the Planner Item API endpoint _does_ work as expected.
This is me (as in: I posted this). I found, after a bunch of experimentation, that the issue was something in my own script (of course). I think it was perhaps not passing the correct Content-Type header. In any event: the Planner Item API endpoint _does_ work as expected.
Yeah, I ran into something similar. It sounds like there's some weird caching or stale state issue going on, like the system thinks the override still exists even after you delete it. What worked for me was making sure the deletion is actually confirmed on the backend before trying to recreate the override. I added a small delay or a refresh of the planner state after deletion and before creating a new one, and that seemed to help. Maybe try forcing a refetch of the item's status before the second "complete" action?
@Quander That makes a lot of sense. I had a pretty long delay in between deletion and re-creation -- but I also didn't _confirm_ that the deletion had actually happened. And if the deletion was compromised by whatever thumb-fingered error I made that compromised the toggling overrides, they could well have not actually been deleted. Thanks!
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In