-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
Hooks run on task import
#3314
Comments
task import
messed up when upgrade to 3.0task import
I didn't realize that was the case -- I know very little about hooks, actually. But, it does seem that hooks should not run on an import! Since import is critical to upgrading to 3.x, I'll see if we can't fix this in the next release. I've added a note to the release and will also update the updating instructions. |
In GothenburgBitFactory/tw.org#789 I added After looking at the code for hooks, I'm less confident that we should change this default right now, while fixing 3.0 things. Maybe people have workflows that expect hooks to run on import? @tbabej were you involved in the design of hooks? What do you think about disabling hooks for all |
I do remember the hooks discussions, currently the implementation does not differentiate between the command used that triggered the modification. I don't think users rely on hooks running on import too much, although that interface is sometimes used to ingest JSON-formatted tasks from other sources / integrations. So it is not unfeasable someone uses it in that way. That said I would be ok with disabling hooks by default and then observing if any users complain, or introducing an explicit setting |
OK, thanks! Given that information, let's leave it as-is for now and just expect users to use |
task import all-tasks.json
Get all my tasks unchanged prior version 3.0.0
I've got 1637 tasks to import
task import
stop running and did not import all tasks :task count
return 183rerun
task import
import more tasks in skip the already imported ones and seems to import more, but I've done that multiple times.During import process I've encountered this error :
jq: error (at <stdin>:1): null (null) cannot be tsv-formatted, only array
And finally I stopped the process when I realized that import was working with hooks that achieved to messed up everything.
It should be mentioned in the release doc upgrade that hooks are processed during the import process, and must be deactivated if not needed to re-modify your tasks again
Thank you for your fantastic work, I stick on task 2.6.2 for the moment, don't have too much time and enough confident to fix the problems I encountered.
The text was updated successfully, but these errors were encountered: