-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add all csv info to displayed table on successful task creation #5491
Conversation
@fm3 As you created the issue for this: Do you have an opinion about my thought about whether the changes actually make sense? Or do you have some suggestions to improve these changes? |
Thanks for looking into this! You are quite right, these changes create somewhat weird behavior. I wrote a message to the original requesting user asking to clarify, let’s see what they reply :) Should have done that immediatly when writing the issue, I’m sorry if this created redundant work! |
The expected changes have been clarified, see https://discuss.webknossos.org/t/show-task-ids-for-created-tasks-miss-filename/1621/6. |
tbh I’d slightly deviate from the I also don’t like hiding the short success list, as I still believe it to be useful when creating few tasks. But maybe we can make the CSV download button more prominent even if the short list is there. And maybe the list can be styled differently to more obviously be something different than the CSV. That way, users who want to use the CSV workflow can always do that, and users who like instant feedback on (few) created tasks can still get it. What do you think? |
Yes, looks nice :) but that might not even be necessary if the real problem is the accessability of the CSV download button.
I agree. I think it is always visible already, but should be moved above the list, so the user does not have to scroll to get there. |
Thank you two for already discussing the issue 👍. |
I just pushed the following changes:
With that I think I covered all points @daniel-wer :) |
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.
Very nice, works well 👍
How would I go about testing the "failed" path, so that some of the tasks fail during creation? If I change the dataset name, taskTypeId, or projectName I only end up with error toasts, but not with the popup and "the creation of x tasks failed".
Also, I noticed that when I try to create a task for a project that is not existing, I end up with an unhelpful error toast Couldn't find the requested resource.
without further details. @fm3 Would it be easy to improve that? Otherwise, I'll create a follow up issue :)
@daniel-wer I’ll have a look at the too-generic message, but I’d still track it in a separate issue. To add a failed task to the report, you can modify line 426 in TaskCreationService.scala to |
Co-authored-by: Daniel <[email protected]>
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.
Great, works very well 👍
This PR unifies the information that is displayed in the table that is shown upon successful task creating with the information of the CSV.
Imo this change does not make so much sense. Maybe I misunderstood something but to me, the display information in the modal is far too much to be easily understood/is not clearly arranged. Additionally, the file name might get too huge if all IDs (like suggested) are added to the file name. Thus I limited this to a maximum of 3 task ids.
I think some general input on my points is needed before we start a code review :)
URL of deployed dev instance (used for testing):
Steps to test:
testProject
.You created tasks for multiple projects at a time: sampleProject, testProject
. Below the error list there should be the CSV download button and then the short list for successfully created tasks.task_id_sampleProject_testProject_2021-05-21_14-43.csv
.Issues:
[ ] Updated (unreleased) migration guide if applicable[ ] Updated documentation if applicable[ ] Adapted wk-connect if datastore API changes[ ] Needs datastore update after deployment