Datamal Blog

Friday, April 07, 2006

Editing Worklog entries in Jira

The worklog entry maintains a record of the amount of work spent on an issue/ task/ bug etc.

By default you cannot edit a worklog entry. This is a real problem if an incorrect or bogus entry has been made.

The workaround is to look for the file editworklog.jsp from the internet and put it in the directory ${jira_home}/secure/admin

Now you can enter this jsp's address and then enter the WorkID of the entry that you want to edit.

If a bogus entry has been made then this can be deleted by editing the database.

Delete the row in the table JIRAACTION which has an 'actiontype' of 'worklog' and the 'actionbody' field contains the text that was entered in the work log entry.

Tuesday, April 04, 2006

JarAnalyser and GraphViz

JarAnalyser identifies the dependencies between jar files. It's all explained in the link but I am going to write about getting started really quickly by giving a few concrete examples; always helps. Lets say you've downloaded and installed JarAnalyser and GraphViz.


Enter :
rundotsummary.bat
path.to.lib
output.file.name


This generates the dot/ graph file. You then need to run GraphViz on this file. E.g. :


dot -Tpng -Nshape=box -Nfontsize=30 -Nwidth=1.5 -Nheight=1.25 .\output.file.name.from.last.step .\graphic.file.name.png

Monday, April 03, 2006

OAI Harvesting Implementation Overview

I have been doing some work on the "Open Archives Initiative - Protocol for Metadata Harvesting".
From the servers point of view, it has the responsibility to respond to a number of requests - called verbs.








VerbDescription
IdentifyIdentifies a repository
ListMetadataFormatsLists the formats that the repository provides; examples include Dublin Core and LOM
ListIdentifiersThis verb is an abbreviated form of ListRecords, retrieving only headers rather than records.
ListRecordsThis verb is used to harvest records from a repository. Optional arguments permit selective harvesting of records based on set membership and/or datestamp
ListSetsThis verb is used to retrieve the set structure of a repository, useful for selective harvesting.
GetRecordUsed to retrieve an individual metadata record from a repository.

The order of operation is usually the client coming along and making the following requests :







    RequestDescription
  • Identify
  • The client finds out the identify of the server.
  • ListMetadataFormat
  • The client finds out what formats are available.
  • ListRecords
  • The client gets a truncated list of records (say 10) and a resumption token.
  • GetRecord
  • For each of the records in the list obtained from the ListRecords request, the client makes a GetRecord request to get the contents.
  • Repeat last 2 steps
  • The client continues to ListRecords, passing in the resumption token, and gets the next list of 10 records; on each of which it does a GetRecord. This is repeated until the list is expired, at which point the server does not return a resumption token.