-
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
Allow task type summary to identify task type when creating tasks in bulk #6486
Conversation
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.
Backend LGTM. @philippotto could you have a quick look at the frontend changes?
@@ -5,7 +5,7 @@ import models.user.Experience | |||
import play.api.libs.json.{Format, Json} | |||
|
|||
case class TaskParameters( | |||
taskTypeId: String, | |||
taskTypeIdOrSummary: String, |
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.
could you add a comment here explaining that after initial processing this will only contain ids?
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.
Overall, the changes lgtm 👍 I only added two suggestions for communicating to the user that id and summary are both valid.
However, while reading the code, I had another thought: Would it make sense to rename "Summary" to "Name"? A summary as an identifying feature seems a bit weird to me. A name would make more sense in my opinion. What do you think?
Co-authored-by: Philipp Otto <[email protected]>
Thanks!
Yes I think that would make sense. Not high priority, though |
True, but it could fit well with this PR, I think :) /edit: however, I don't know how much work this would be. so, no worries if not.
I added a form validation to the summary field so that commas may not be included for future creations/edits. |
Ok, cool 👍 |
…jects-created * 'master' of github.com:scalableminds/webknossos: (337 commits) Fix docs for the annotation download file format (#6546) Added total runtime information to VX reports (#6543) fix VX report for completed + skipped tasks (#6540) Avoid allocating spire uint objects during apply agglomerate (#6532) Explore remote N5 datasets (#6520) Fix MeshChunk byteOffset (Long, not Int) (#6536) update browserslist (#6505) Support new Mesh File (v3) (#6491) makes workflow_yamlContent optional (#6518) Always return 404 for Failures in Zarr Streaming (#6515) Poll wk version to notify during upgrade (#6451) add script which extracts newest changelog and creates GH release for it (#6504) release 22.10.0 (#6500) voxel³ -> voxel (#6501) Allow task type summary to identify task type when creating tasks in bulk (#6486) Fix sql evolution 090 (defer not null constraint) (#6498) SQL schema cleanup (#6492) Fix validation of layer selection when trying to start globalization of floodfills (#6497) Add "shift + w" shortcut to cycle backwards through tools (#6493) Fix filtering for public datasets in dataset table (#6496) ...
URL of deployed dev instance (used for testing):
Steps to test (end-to-end):
Note that by summary does not work if the task type summary contains commas, since that breaks the frontend csv parsing (quote escaping is not implemented there). However, we checked two large wk instances and nobody had task types with commas anyway
Steps to test (backend only):
Issues: