en:dev:modules:core:draft
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:dev:modules:core:draft [2017/10/25 00:16] – [CAVE entries] +fixme, remove redundant stuff nerdoc | en:dev:modules:core:draft [2018/07/22 19:19] (current) – move datapacks into own module nerdoc | ||
|---|---|---|---|
| Line 90: | Line 90: | ||
| * State/ | * State/ | ||
| - | All of these database tables should be updatable | + | All of these database tables should be upgradable |
| Considerations: | Considerations: | ||
| - | ==== DataPacks ==== | ||
| - | FIXME This should go into a separate module. | ||
| - | Provides a central format for downloading/ | ||
| - | |||
| - | E.g. as source for ZIP codes, countries, cities etc. could be taken geonames.org which provides an excellent web api with XML output. | ||
| - | A possible datapack could be e.g.: | ||
| - | Datapack { | ||
| - | uid: „5c87644a-5082-426c-ae4a-39e4a245ecf9“ | ||
| - | label: „zipcodes“ | ||
| - | description: | ||
| - | license: „CC-BY-SA“ | ||
| - | version: „1.0“ | ||
| - | created: „2014-03-02 23:10:24“ | ||
| - | lastUpdated: | ||
| - | resource: „medux.masterdata.zipcodes“ | ||
| - | data: { | ||
| - | {5020, „Salzburg“}, | ||
| - | {8010, „Graz“} | ||
| - | // ... | ||
| - | } | ||
| - | } | ||
| - | |||
| - | The format should be able to handle diffs, so that incremental updates are possible to reduce download and database update time: | ||
| - | DataPackDiff { | ||
| - | uid: " | ||
| - | datapackUid: | ||
| - | label: „zipcodes update 2014-04“ | ||
| - | description: | ||
| - | license: „CC-BY-SA“ | ||
| - | version: „1.0“ | ||
| - | created: „2014-04-01 20:12:13“ | ||
| - | lastUpdated: | ||
| - | resource: „medux.masterdata.zipcodes“ | ||
| - | addedData: { | ||
| - | {8020, „Graz“} | ||
| - | } | ||
| - | changedData: | ||
| - | deletedData { | ||
| - | {" | ||
| - | } | ||
| - | } | ||
| - | |||
| - | Consider: Strings in datapacks should be translatable: | ||
| - | * separate files per language | ||
| - | * add .po files | ||
| - | * add languages in one JSON/XML DataPack | ||
| ==== Audits ==== | ==== Audits ==== | ||
| Every action that any module takes must have an audit trail. The core module should provide a central API for logging actions, and log actions automatically wherever possible. | Every action that any module takes must have an audit trail. The core module should provide a central API for logging actions, and log actions automatically wherever possible. | ||
en/dev/modules/core/draft.1508883381.txt.gz · Last modified: 2017/10/25 00:16 by nerdoc