Task #1506
Use JSON for UI/DB data exchanges
Status: | CLOSED | Start date: | 10/19/2012 | |
---|---|---|---|---|
Priority: | High | Due 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
EsmithDatabaseTest: fixed byref parameter value passing. All tests green. Refs #1506 -- Use JSON for UI/DB data exchanges
EsmithDatabaseTest: added StaticPolicyDecisionPoint to improve code coverage. Refs #1506 -- Use JSON for UI/DB data exchanges
EsmithDatabaseTest: full code coverage. Refs #1506 -- Use JSON for UI/DB data exchanges
EsmithDatabase (getAll): parse DB printjson command output. Refs #1506 -- Use JSON for UI/DB data exchanges
EsmithDatabase (getKey): parse DB getjson command output. Refs #1506 -- Use JSON for UI/DB data exchanges
/sbin/e-smith/db: Implemented printjson command; now JSON output format share the same codebase. Refs #1506 -- Use JSON for UI/DB data exchanges
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
/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)