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

Ability to duplicate tasks #2931

Open
Tracked by #3111
KatrinIhler opened this issue Dec 20, 2023 · 14 comments
Open
Tracked by #3111

Ability to duplicate tasks #2931

KatrinIhler opened this issue Dec 20, 2023 · 14 comments

Comments

@KatrinIhler
Copy link

I've thought a couple of times that it would be neat if we were able to do right-click -> "Duplicate Task" on an existing task to create a new task with all the same properties (project association, tags, description and so on).

This might be useful if the new task is very similar to the old one (e.g. same task for a different project, different day, ...), because you can just duplicate and then amend the new one slightly. And yes, I'm lazy. :D

Copy link

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

Copy link

Hello there KatrinIhler! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

For more open ended discussions and/or specific questions, please visit the discussions page. 💖

@johannesjo
Copy link
Owner

Just for reference: #2184 #1579

@KatrinIhler
Copy link
Author

Just for reference: #2184 #1579

Ah dammit, overlooked that closed issue...

Copy link

This issue has not received any updates in 90 days. Please comment, if this still relevant!

@github-actions github-actions bot added the Stale label Apr 20, 2024
@KatrinIhler
Copy link
Author

Still relevant!

@github-actions github-actions bot removed the Stale label Apr 23, 2024
@wammar
Copy link

wammar commented Jun 17, 2024

Just +1ing this because it's much needed.

@TeguSolutions
Copy link

+1

@RomanMIzulin
Copy link

+1, especially when working in schedule mode

@johannesjo
Copy link
Owner

Thank you @MikeTheSapien !!!

Most of the relevant code should be here:
https://github.com/johannesjo/super-productivity/tree/master/src/app/features/tasks
Having a look at addTask and other ngrx actions will probably help to understand the current code.

From the technical side I would start with listing the edge cases that need to be considered and possibly excluded (e.g. repeating task or issue task instances). Next step would be to add an ngrx action (and maybe add unit tests :)). For the list stuff you need to consider the project and tag reducers.

To wire up saving the data you would need to add the action to task-db.effects.ts.

As duplicating tasks potentially touches a lot of areas we need to test this very carefully :)

@johannesjo
Copy link
Owner

2. What do you mean by tag reducers?

tag.reducer.ts and project.reducer.ts

  1. Should the edge cases to be considered be listed in this thread? Or some place else? Perhaps in Discussions thread?

If you think there is something we should discuss, then here in this thread is the right place I think. Alternatively, if it is more technical, we can also discuss stuff in your upcoming PR. Apart from that it is not necessary to document everything. Thank you for asking! That's very considerate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@johannesjo @wammar @RomanMIzulin @KatrinIhler @TeguSolutions and others