Permalink
Browse files

minor bug fixes and issue tracking

  • Loading branch information...
1 parent d6a6b40 commit 0614f542c151aa0532284565daaf4f79b7c182ae @billymoon committed Sep 24, 2012
View
4 .klog/2012-09-12_08-24-38.053381.862e.log
@@ -12,3 +12,7 @@ e.g.
klog 1 # view first klog
klog b4cd # view klog with UID b4cd
+
+
+Modified: 2012-09-19_04-30-20.370
+Status: closed
View
5 .klog/2012-09-12_08-27-08.268863.0a8f.log
@@ -18,4 +18,7 @@ also...
Modified: 2012-09-16_03-23-57.424
-started adding (with new `setup` command)
+started adding (with new `setup` command)
+
+Modified: 2012-09-19_04-32-36.182
+Status: closed
View
4 .klog/2012-09-12_08-34-55.611522.16d6.log
@@ -5,3 +5,7 @@ Added: 2012-09-12_08-34-55.611522
Status: open
it is too easy to delete an issue - and although they are tracked in theory via git - a confirmation would be nice. Probably enough to have default answer of Y - just meaning you must double tap enter, and with some details about the bug - like title etc... first.
+
+
+Modified: 2012-09-19_04-32-53.774
+Status: closed
View
5 .klog/2012-09-12_13-15-52.196.67f2.log
@@ -5,4 +5,7 @@ Added: 2012-09-12_13-15-52.196
Author: Billy Moon
Status: open
-currently all commands have to be issued from within the initialized directory, which is not handy on a project wide tracking system. It should work like git.
+currently all commands have to be issued from within the initialized directory, which is not handy on a project wide tracking system. It should work like git.
+
+Modified: 2012-09-19_04-33-09.606
+Status: closed
View
4 .klog/2012-09-12_16-23-03.680318.2136.log
@@ -8,3 +8,7 @@ although perl is quite prevelant on development machines, php is the dominant la
Modified: 2012-09-13_19-36-06.514960
also make windows exe, and msi via jsc and nullsoft
+
+
+Modified: 2012-09-19_04-33-45.533
+Status: closed
View
4 .klog/2012-09-12_16-37-50.517216.b35f.log
@@ -5,3 +5,7 @@ Added: 2012-09-12_16-37-50.517216
Status: open
this can be done in both php, and javascript. I doubt I will do it in perl, but it could be done. the underlying api should remain the same, as in the web-interface should be cosmetic only, abstracting away both the interface, and the underlying api calls, which will be simple command line commande. the job of the web server, is to interpret the gui commands, and execute appropriate klog commands, passing back the output to the user.
+
+
+Modified: 2012-09-19_04-35-25.972
+Status: closed
View
14 .klog/2012-09-12_17-00-05.276213.e4e2.log
@@ -6,4 +6,16 @@ Status: open
comments should be part of the system, possibly allowing code, using markdown. comments shuld be listed in the search view, and should track who has seen them so that they can work like an unread count, and other people can see who has read the comments
-it should be easy to reference commit hashes from comments
+it should be easy to reference commit hashes from comments
+
+Modified: 2012-09-19_04-39-09.435
+
+This can be handled purely by append - so maybe comment should be an alias of that
+
+Modified: 2012-09-19_04-40-59.455
+comments should be shown as clearly distinct in the web view
+
+
+
+Modified: 2012-09-19_04-42-02.117
+Status: closed
View
5 .klog/2012-09-12_17-03-53.609142.4e02.log
@@ -5,3 +5,8 @@ Added: 2012-09-12_17-03-53.609142
Status: open
there should be a funciton handling the calling of hooks, allowing for it to develop further in the future, possibly to include pre and post action hooks, maybe separated by action name
+
+
+
+Modified: 2012-09-19_04-42-40.576
+Status: closed
View
5 .klog/2012-09-16_20-07-32.391.caa6.log
@@ -19,3 +19,8 @@ Status: closed
Modified: 2012-09-16_22-02-19.481
Status: open
+
+
+
+Modified: 2012-09-19_04-43-10.302
+Status: closed
View
2 .klog/2012-09-17_19-21-37.814.837c.log
@@ -1,5 +1,5 @@
UID: 837c
-Type: bug
+Type: feature
Title: templates for issues based on type
Added: 2012-09-17_19-21-37.814
Author: undefined
View
17 .klog/2012-09-19_04-18-09.204.6d0f.log
@@ -0,0 +1,17 @@
+UID: 6d0f
+Type: feature
+Title: command to view base directory
+Added: 2012-09-19_04-18-09.204
+Author: undefined
+
+Maybe also general info about the project, maybe replacing the `klog` command on it's own showing help info, instead showing something more like...
+
+ $ klog
+
+ Project root: /home/user/my-project
+ User: Joe Bloggs (joe@blogs.com)
+ Open Issues: 45
+
+ Usage info: klog --help
+
+ $
View
7 .klog/2012-09-19_04-26-39.057.f2ec.log
@@ -0,0 +1,7 @@
+UID: f2ec
+Type: strategy
+Title: merging of klog files is hard
+Added: 2012-09-19_04-26-39.057
+Author: undefined
+
+The merging of klog files, editied separately is trivial for klog to do (just use date ordering) but requires user intervention if handled by git. Maybe there is a way to deal with this with hooks. ALl klog files should be merged by klog before or after commits.
View
7 .klog/2012-09-19_04-34-15.681.2d0e.log
@@ -0,0 +1,7 @@
+UID: 2d0e
+Type: feature
+Title: allow multiple close in one command
+Added: 2012-09-19_04-34-15.681
+Author: undefined
+
+allow `klog close eefc effa e433 566c` for example to close four bugs in one shot
View
37 nodejs/src/klog.coffee
@@ -256,12 +256,12 @@ changeBugState = ($value, $state) ->
exit 1
# Now write out the new status section.
- content = """\r\n
+ content = """\r\n\r\n
Modified: #{opts.date}
Status: #{$state}\r\n
"""
- fs.appendFileSync opts.store+$bug.file, content
+ fs.appendFileSync opts.path+opts.store+$bug.file, content
# If there is a hook, run it.
hook $state, $bug.file
@@ -440,14 +440,14 @@ cmd.append = (args) ->
# If we were given a message add it, otherwise spawn the editor.
if args.message
$out = "\r\nModified: #{opts.date}\r\n#{opts.args.message}\r\n"
- fs.appendFileSync opts.store+$bug.file, $out
+ fs.appendFileSync opts.path+opts.store+$bug.file, $out
return
else
$out = "\r\nModified: #{opts.date}\r\n\r\n"
- fs.appendFileSync opts.store+$bug.file, $out
+ fs.appendFileSync opts.path+opts.store+$bug.file, $out
# Allow the user to make the edits.
- editFile opts.store+$bug.file
+ editFile opts.path+opts.store+$bug.file
## BROKEN due to separate process ##
# # Once it was saved remove the lines that mention "# klog: "
@@ -668,7 +668,6 @@ cmd.view = (args) ->
# Close a given bug.
cmd.close = (args) ->
- print args
# Get the bug.
$value = args.id
@@ -765,8 +764,8 @@ cmd.delete = (args) ->
# Inititalise a new .klog directory.
cmd.init = ->
- if ! fs.existsSync opts.store
- fs.mkdirSync opts.store
+ if ! fs.existsSync opts.path+opts.store
+ fs.mkdirSync opts.path+opts.store
print "#{glob.clrs.gunmetal}Now you have klogs on#{glob.clrs.reset}#{glob.clrs.red}!#{glob.clrs.reset}"
cmd.setup()
else
@@ -777,14 +776,14 @@ cmd.setup = ->
if opts.user && opts.email
settings = """
{
- "user":"#{opts.user || 'John Doe'}",
- "email":"#{opts.email || 'john@thedoughfactory.com'}"
+ "user":"#{opts.path+opts.user || 'John Doe'}",
+ "email":"#{opts.path+opts.email || 'john@thedoughfactory.com'}"
}
"""
- fs.writeFileSync "#{opts.store}.gitignore","local"
- fs.mkdirSync "#{opts.store}local"
- fs.writeFileSync "#{opts.store}local/settings.json", settings
- print "Wrote settings to local file: #{opts.store}local/settings.json\r\n\r\n#{settings}\r\n"
+ fs.writeFileSync "#{opts.path+opts.store}.gitignore","local"
+ fs.mkdirSync "#{opts.path+opts.store}local"
+ fs.writeFileSync "#{opts.path+opts.store}local/settings.json", settings
+ print "Wrote settings to local file: #{opts.path+opts.store}local/settings.json\r\n\r\n#{settings}\r\n"
else
get_user_details cmd.setup
@@ -800,7 +799,8 @@ cmd.server = ->
command = (data) ->
# POST = JSON.parse POST
# opts.args._.push data.command.split ' '
- args = data.command.split ' '
+ args = data.command.trim().split ' '
+ print args
while process.argv.length > 2
process.argv.pop()
_.each args, (v) ->
@@ -881,6 +881,7 @@ get_command = ->
args: get_id
append:
required: ['id']
+ valid: ['message']
args: get_id
reopen:
required: ['id']
@@ -982,14 +983,14 @@ path = process.cwd().split /\//
for folder in path
sep = if opts.win then "\\" else "/"
tpath = (path.join sep)+sep
- if fs.existsSync "#{tpath}#{opts.store}"
+ if fs.existsSync "#{tpath+opts.store}"
opts.path = tpath
break
path.pop()
# Read settings (including `user` and `email`)
-if fs.existsSync "#{opts.path}#{opts.store}/local/settings.json"
- buffer = fs.readFileSync "#{opts.path}#{opts.store}/local/settings.json"
+if fs.existsSync "#{opts.path+opts.store}/local/settings.json"
+ buffer = fs.readFileSync "#{opts.path+opts.store}/local/settings.json"
settings = JSON.parse buffer.toString()
opts = _.extend opts, settings

0 comments on commit 0614f54

Please sign in to comment.