Issue Details (XML | Word | Printable)

Key: KUSU-961
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Kunal Chowdhury
Reporter: Felix Möller
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Kusu

[PATCH] ngedit should display version information

Created: 17/Oct/08 03:27 PM   Updated: 15/Jan/09 01:02 AM
Component/s: ngedit
Affects Version/s: 1.0
Fix Version/s: 1.2
Security Level: public

Time Tracking:
Not Specified

GreenHopper Ranking:
78     


 Description  « Hide
I tried to update a kit on a nodgroup with ngedit. Sadly ngedit does not display the version information and therefore one cannot really see which version is assigned to a nodegroup. The following patch fixes it for me.

[root@master var]# diff -u /opt/kusu/sbin/ngedit.orig /opt/kusu/sbin/ngedit
--- /opt/kusu/sbin/ngedit.orig 2008-10-13 17:50:07.000000000 +0200
+++ /opt/kusu/sbin/ngedit 2008-10-13 17:58:23.000000000 +0200
@@ -641,7 +641,7 @@

         self.screenGrid = snack.Grid(1, 2)

- query = '''SELECT c.kid,k.rname,c.cid,c.cname FROM components c, kits k,
+ query = '''SELECT c.kid,k.rname,k.version,c.cid,c.cname FROM components c, kits k,
                    repos_have_kits rk, repos r WHERE c.kid = k.kid AND k.kid = rk.kid
                    AND rk.repoid = r.repoid AND r.repoid = %s AND (r.ostype like
                    concat(c.os,'%%') OR isnull(c.os)) ORDER BY c.kid''' % curNG['repoid']
@@ -675,19 +675,19 @@

         self.__ct = snack.CheckboxTree(height = 10, scroll = 1)
         curkid = rv[0][0]
- self.__ct.append(rv[0][1])
+ self.__ct.append(rv[0][1]+'-'+rv[0][2])
         i = 0
- for kid,rname,cid,cname in rv:
+ for kid,rname,version,cid,cname in rv:
             if kid <> curkid:
                 #new kid encountered - append it
                 i += 1
                 curkid = kid
- self.__ct.append(rname)
+ self.__ct.append(rname+'-'+version)
             if cid in cidlst:
                 isSel = 1
             else:


 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Tsai Li Ming added a comment - 15/Jan/09 01:02 AM
Schedule for 1.2