Task #1506

Use JSON for UI/DB data exchanges

Added by Davide Principi almost 9 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:10/19/2012
Priority:HighDue date:10/22/2012
Assignee:-% Done:

100%

Category:nethserver-nethgui
Target version:v1.5.0

Description

The db command has been recently improved with

  • getjson
  • showjson

commands. Use JSON output formats to read data from db.

Associated revisions

Revision bd040877
Added by Davide Principi almost 9 years ago

EsmithDatabaseTest: fixed byref parameter value passing. All tests green. Refs #1506 -- Use JSON for UI/DB data exchanges

Revision b054be28
Added by Davide Principi almost 9 years ago

EsmithDatabaseTest: added StaticPolicyDecisionPoint to improve code coverage. Refs #1506 -- Use JSON for UI/DB data exchanges

Revision 9e658b86
Added by Davide Principi almost 9 years ago

EsmithDatabaseTest: full code coverage. Refs #1506 -- Use JSON for UI/DB data exchanges

Revision 3db962c0
Added by Davide Principi almost 9 years ago

EsmithDatabase (getAll): parse DB printjson command output. Refs #1506 -- Use JSON for UI/DB data exchanges

Revision 59b6f405
Added by Davide Principi almost 9 years ago

EsmithDatabase (getKey): parse DB getjson command output. Refs #1506 -- Use JSON for UI/DB data exchanges

Revision 35d31b1c
Added by Davide Principi almost 9 years ago

/sbin/e-smith/db: Implemented printjson command; now JSON output format share the same codebase. Refs #1506 -- Use JSON for UI/DB data exchanges

Revision a0ffc693
Added by Davide Principi almost 9 years ago

db.pm (db_prepare_json): Return (int) 1 on key-not-found. If no key is given always return an array type. Refs #1506 -- Use JSON for UI/DB data exchanges

Revision 5541b0dc
Added by Davide Principi over 8 years ago

/sbin/e-smith/db: json commands print raw utf8 strings. Refs #1506

History

#1 Updated by Davide Principi almost 9 years ago

See commit nethserver-lib:commit:e77f657d94f3 by Giacomo

#2 Updated by Davide Principi almost 9 years ago

  • Status changed from NEW to ON_DEV
  • Start date set to 10/19/2012
  • % Done changed from 0 to 20

#3 Updated by Davide Principi almost 9 years ago

  • Due date set to 10/22/2012
  • Category set to 2
  • Status changed from ON_DEV to CLOSED
  • % Done changed from 20 to 100

#5 Updated by Davide Principi over 7 years ago

  • Target version deleted (DEV133)

Also available in: Atom PDF