-
Notifications
You must be signed in to change notification settings - Fork 26
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
Check as Done in Habitica #7
Comments
@ofekmiz Power Up currently works only one way, actions on cards in Trello affect todos in Habitica. |
@alexktzk So I've been thinking... maybe we can use Habitica's Webhooks feature? it might work, what do you think? |
@ofekmiz the power-up is served as a static content, not from the server. This means that we do not have a place where the Habitica request can be processed and used to generate the correct request for the Trello API to change the properties of the card.
I personally think it's better to keep the power-up as simple as possible and stick to the one way flow from Trello to Habitica. The easiest solution for you could be to use Trello from mobile web browser. Please let me know if you find a simple solution. |
That's what I do for now, far from perfect but I guess that's the best solution so far :) |
Yeah, it sucks, but I could not come up with a better solution either :) |
Hi @alexktzk :) If I got it right, the powerup saves in storage a list of all the Habitica task ids and the card related to them. The powerup updates Habitica only when a card is moved to or from the "Doing"/"Done" list. A solution for this can be adding a Sync button in the powerup settings that will go over all the Task IDs of the cards in the "Doing" lists and check if the task ID exists in the User Data from Habitica. If the task is not found or marked as "Done" in Habitica - archive it. This solution also works for syncing deleted tasks in Habitica. (We already get the user data with all the tasks anyway to get the user stats). The Sync button can also solve the "Stats out of sync" issue. Since syncing with Habitica can be a heavy and slow operation sometimes it makes sense that the syncing is manual by demand of the user. Maybe we can also add an option in the settings to enable auto sync on page load once a day / every few hours, so if you checked a task in Habitica today, when you open Trello the next day it will be synced. What do you think? |
Hi @ofekmiz! Sorry for the late answer. Yeah, you've got it right, it works exactly like that :) I'm aware of the "login error" issue. It's because Habitica responds with 401 "Unauthorized" when you send request without user id and api token, which is totally ok. But it responds with 401 as well when you perform the steps which you described above. With the different error message though. Maybe it's better to distinguish errors by messages, not status codes. I'm not a big fan of the manual sync but I suppose it's how Habitica works :) They have sync button in the official app so we probably should make one as well. Have you tried to add it already? If so please send PR. I can add you to the trello board of this power-up to discuss the features there. Send me your trello username to [email protected] if interested and I'll invite you. |
Suggestion: When a To-do in "doing" list is checked as done in Habitica, move it to "done" list
The text was updated successfully, but these errors were encountered: