Bug 749702 - skynet list -c to list all content specs on server
Summary: skynet list -c to list all content specs on server
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 751253
TreeView+ depends on / blocked
 
Reported: 2011-10-28 00:56 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
2 users (show)

Fixed In Version: 0.17.0
Clone Of:
Environment:
Last Closed: 2012-02-22 03:02:28 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Wulf 2011-10-28 00:56:25 UTC
Implement a list -c command to return a list of Content Specs on the server in the following format:


ID    Title

Comment 1 Joshua Wulf 2011-10-28 13:54:00 UTC
It should return:

ID    Title      Product     Version



If there are more than 50 Content specs in the database, then it should return:

There are <COUNT> Content Specs on this server. You should probably use "skynet search -c" if you have an idea what you are looking for. Otherwise, rerun the list command, and this time use the --force

Comment 2 Lee Newson 2011-11-20 23:35:16 UTC
Added the list -c and search -c functionality.

The list -c will list all content specifications on the server unless there are more then 50. If there are more then 50 then you can use the --force command to list all of them. This isn't recommended however and if I have time I'll implement a pagination feature that will allow you to view so many at a time then then request the previous or next list of content specs.

The search -c command takes in one extra argument which is the search query. This query will be matched against the title, product or version fields inside of the database. The search query uses the SQL LIKE command with the % wildcards matched on both ends of the query. As such the query is case insensitive but won't be broken down into specific words.

Comment 3 Joshua Wulf 2012-02-22 03:02:28 UTC
[jwulf@radhe Content_Spec_Processor]$ csprocessor list -c
CSProcessor client version: 0.17.0
Loading configuration from /home/jwulf/.config/csprocessor.ini
Web Service at http://csprocessor.cloud.lab.eng.bne.redhat.com:8080/ version: 0.21.4

    ID                                          TITLE                                PRODUCT  VERSION  CREATED BY
  6177                      EDS Getting Started Guide                               Internal        5     dlesage
  6178  JBoss Enterprise Data Grid Beta Documentation             JBoss Enterprise Data Grid        6    mhusnain
  6179                            Writing with Topics                               Internal        5       jwulf
  6180                 Guide to Topic-based Authoring           Engineering Content Services        1       jwulf
  6181            Data Services Getting Started Guide         JBoss Enterprise Data Services      5.3    elestran
  6182              Red Hat Engineers Guide to Zanata                      Engineering Tools        1       jwulf
  6183             Data Services Administration Guide         JBoss Enterprise Data Services      5.3    elestran
  6192                   Content Spec Processor Guide           Engineering Content Services        1       jwulf
  6198                          CDI Development Guide  JBoss Enterprise Application Platform        1    mstanley
  6199                          CDI Development Guide  JBoss Enterprise Application Platform        1    mstanley
  6200                          CDI Development Guide  JBoss Enterprise Application Platform        1    mstanley
  6226                            Your Name Test Book                                Testing        1       jwulf


Note You need to log in before you can comment on or make changes to this bug.