-
Notifications
You must be signed in to change notification settings - Fork 248
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
Subtask aded in detailedView #931
base: master
Are you sure you want to change the base?
Conversation
First of all, thanks for your efforts. I appreciate that. I really like the idea of using quick add to add subtasks.
I hope to get this sorted over the holidays. In the meantime I have only a few comments on your PR. |
@@ -77,9 +79,10 @@ | |||
/** | |||
* The maximum time to add for the first time the "Task completed" info is shown. | |||
*/ | |||
private final static int COMPLETION_DELAY_MAX = 1500; // ms | |||
private final static int COMPLETION_DELAY_MAX = 1000; // ms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to keep this delay a bit longer so new users will notice the confirmation. Please note that the actual delay gets shorter with every confirmation shown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I did not notice that, that's fine
@NonNull RowReference<Tasks> parentTask) | ||
{ | ||
super(new QueryRowSet<>(view, projection, new ReferringTo<>(Tasks.PARENT_ID, parentTask))); | ||
super(new QueryRowSetSorting<>(view, projection, new ReferringTo<>(Tasks.PARENT_ID, parentTask), new Present(Tasks.STATUS + ", " + Tasks.TITLE))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The custom QueryRowSetSorting
is not necessary. You can apply the Sorted
decorator to view
giving you the same result. Check this out:
super(
new QueryRowSet<>(
new Sorted<>(Tasks.STATUS + ", " + Tasks.TITLE, view),
projection,
new ReferringTo<>(Tasks.PARENT_ID, parentTask)));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, that's awesome, thank you, I will adjust these changes tomorrow
I rebased from the original PR #469, included your suggestions and have a few further ideas/bugs:
|
Please see my comments regarding your points:
I'd also like to reconsider deleting subtasks when deleting the parent. This may not always be the best choice. It might be better to ask the user whether subtasks should be kept and converted to "top-level" tasks or if they should be deleted too. |
Ok, all of your points sound reasonable. Is there something I could further do? |
As mentioned in #443, I made some changes to the PR #469 including quicker adding/checking/deleting of subtasks