ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

ModifyTaskInTaskwarrior has wrong conditionals for updates

Open sternj opened this issue 2 years ago • 7 comments

escapedStatus is checked against "completed" and "deleted", when the sprintf that creates it prepends status:

sternj avatar Sep 22 '24 02:09 sternj

	escapedStatus := fmt.Sprintf(`status:%s`, strings.ReplaceAll(status, `"`, `\"`))
	if escapedStatus == "completed" {
		cmd = exec.Command("task", taskuuid, "done", "rc.confirmation=off")
		cmd.Run()
	} else if escapedStatus == "deleted" {
		cmd = exec.Command("task", taskuuid, "delete", "rc.confirmation=off")
		cmd.Run()
	}

Yes so, It should use status here instead of escapedStatus.

SGI-CAPP-AT2 avatar Nov 18 '24 07:11 SGI-CAPP-AT2

Is this issue open for all @sternj ?

SGI-CAPP-AT2 avatar Nov 18 '24 08:11 SGI-CAPP-AT2

are you interested in working on it? @SGI-CAPP-AT2

its-me-abhishek avatar Nov 18 '24 08:11 its-me-abhishek

yes, Do you think it's beginner friendly?

SGI-CAPP-AT2 avatar Nov 18 '24 08:11 SGI-CAPP-AT2

What do you think about this (https://github.com/CCExtractor/ccsync/issues/52#issuecomment-2482140387) ? @its-me-abhishek

SGI-CAPP-AT2 avatar Nov 18 '24 08:11 SGI-CAPP-AT2

i have assigned this to you..

What do you think about this (https://github.com/CCExtractor/ccsync/issues/52#issuecomment-2482140387) ?

this seems to be correct, either you can replace with status, or prepend a 'status:' in the escapedStatus check

its-me-abhishek avatar Nov 18 '24 08:11 its-me-abhishek

@its-me-abhishek While docker compose up I am getting following error. How can I resolve ? , beacause I've followed all setup from here Error:

PS D:\CCExtractor Repos\ccsync> docker-compose up

[+] Running 1/1
 ✘ syncserver Error pull access denied for taskchampion-sync-server, repository does not exist or may require...                   2.2s 
Error response from daemon: pull access denied for taskchampion-sync-server, repository does not exist or may require 'docker login'

EDIT: Error has been RESOLVED By installation of taskchampion-sync-server

Sorry for ping

SGI-CAPP-AT2 avatar Nov 18 '24 13:11 SGI-CAPP-AT2