Package Exports
- klog
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (klog) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NAME
klog - A simple distributed bug tracking system and time management tool
ABOUT
klog is an intentionally simple system which allows bugs to be stored inside projects, and merged in along with all other changes in exactly the way that a user of a distributed revision control system would expect.
In short a project will have any and all bugs stored beneath the .klog directory. These issues will be stored using a hash of the user's details and the exact time (microsecond precise) of the issue being created such that multiple people merging and commiting will be unlikely to ever see conflicts.
Issues always have one of two states:
- Open
- Closed
They will also have a type:
- Bug
- Feature
- Enhancement
- Etc...
Each bug will have an associated UID, which is derived form the first bits of a hash of the user details (optained form git or command line) and the exact moment the issue is generated.
USING IT
Usage of klog is divided into several distinct cases:
- Initialising a new project.
- Adding a bug.
- Searching for bugs.
- Viewing a specific bug.
- Updating a bug, or appending to an existing bug report.
- Closing or re-opening a bug.
- Deleting a bug (only for mistakes, necessary when it can be closed)
These actions all work in a consistent manner, to avoid unpleasant suprises.
USAGE EXAMPLES
To initialise a bug database within your project run:
klog initOnce you've initialised your klog database you will need to ensure that you add the .klog database to your revision control system.
To add a new bug, optionally specifying a title for it, please run:
klog add This is my bug titleIf no title is specified a bug report will be created with a default title. This will open an editor for you to enter the bug report text.
The editer may be specified with the --editor flag, the EDITOR environmental variable, and will otherwise default to vim.
Once a bug report has been created you should find that it is visible in the output of "klog list" or "klog open". In both cases you'll see output which looks something like this:
%edda [closed] [bug] testing me
%e45c [closed] [feature] This is atest
%22af [open] [bug] This is my bug titleThis listing report shows several things: The unique id of the issue, the state of the issue ("open" vs. "closed"), the type of issue (bug/feature/etc...) and the title of the issue.
Each of the operations that is specific to a single bug report will allow you to specify the number of the bug. For example if you wished to update the last bug, to append some text to it, you could run:
klog append eddaSimilarly you could close the bug by running:
klog close 22afNote that to close a bug you do not need to give a justification, or add any content. A bug may go from freshly opened to closed with no need for further updates.
BUG FILE FORMAT
Internally each bug is stored in a file, beneath the .klog directory.
Each bug file has a random name (first bits of a hash including user details, and exact time of generation) which is designed to avoid potential collisions if a repository is shared between many users, upon different systems, as is common with distributed revision controls.
Each bug report will have several fixed fields at the beginning, as this example shows:
Title: This is atest
UID: ed46
Added: Sun sept 16 22:45:42 2012
Status: open
I like klogs, but I have none.The UID is essentially random, but should be unique, and is the portable sane way to refer to bugs. When running klog list you'll see the UID lsited along with the other details of the bug. This should be the only reference used to identify bugs.
CUSTOMIZATION
The template which is presented to the user when they report a new bug may be replaced. If the file ".klog/new-bug-template" is present the contents of that file will be inserted in new reports, rather than the default message.
If the file .klog/hook exists, and is executable, it will be invoked when new bugs are added, bugs are closed, or comments are updated.
The hook will be invoked with two arguments, the first will be a string defining the action which has caused the invocation, the second will be the UID of the bug file. For example you might use this to auto-add new bug reports to the repository with a hook like this:
#!/bin/sh
if [ "$1" = "add" ]; then
git add "$2"
fiPLANS
There are many ideas in the pipeline to develop this project further, but nothing is yet set in stone. The goals currently, are to maintain flexibility, remove dependencies, develop feature rich command line interface, and allow tight integration with distributed version control systems.
We eat our own dog-food!
Here is a list generated by klog itself, for the current issue list of the klog project:
%f06e [open] [bug] editor runs as background process
%25c3 [open] [bug] process does not wait for editor
%dc9b [open] [feature] work calculator
%590b [open] [feature] generate html and flot data
%96ba [open] [feature] messages input unquoted
%862e [open] [feature] reduce necessary flags and options
%0a8f [open] [feature] possible firm input commands
%16d6 [open] [feature] confirmation for delete
%c86c [open] [feature] simple gui interface
%5c5a [open] [feature] only edit messages and not header
%2918 [open] [feature] validate all input
%c4c8 [open] [feature] add email address of the author
%2136 [open] [feature] port to nodejs and php
%c8b6 [open] [feature] include klog binary in the .klog directory
%b35f [open] [feature] create server interface
%deb0 [open] [feature] seperate source into concatable files
%5408 [open] [feature] optimize web interface for phones
%0d02 [open] [feature] optimize html reports for printing
%66e9 [open] [feature] use gitub style tags
%6b91 [open] [feature] add asignee to head
%353a [open] [feature] add priority
%e4e2 [open] [feature] allow comments on issues
%4e02 [open] [enhance] remove repeating code for hook
%9c2e [open] [feature] add attachments to issues
%f830 [open] [bug] firstbits interpreted as exponential