... | @@ -57,27 +57,27 @@ Server reads "message files" based on rules above. These files are named to cont |
... | @@ -57,27 +57,27 @@ Server reads "message files" based on rules above. These files are named to cont |
|
|
|
|
|
#### Example of message naming:
|
|
#### Example of message naming:
|
|
|
|
|
|
**type**_**id**_**comment**.md
|
|
**type_id_comment**.md
|
|
|
|
|
|
update_5_20151211.md
|
|
update_5_20151211.md
|
|
|
|
|
|
- type is *update* version
|
|
- type is *update* version
|
|
- message *id* is 5
|
|
- message *id* is 5
|
|
- *comment* tells about what the message is about without opening it. **for update it's also to compare and filter update messages**
|
|
- *comment* tells about what the message is about without opening it. **For update it's also to compare and filter update messages**
|
|
|
|
|
|
info_6_new-genomes-dec-2015.md
|
|
info_6_new-genomes-dec-2015.md
|
|
|
|
|
|
- type is *info*
|
|
- __type__ is *info*
|
|
- message *id* is 6
|
|
- __message__ *id* is 6
|
|
- comment is about new genomes released
|
|
- __comment__ is about new genomes released
|
|
|
|
|
|
warning_3_el-capitan-breaks-client-2015-10.md_archive
|
|
warning_3_el-capitan-breaks-client-2015-10.md_archive
|
|
|
|
|
|
- type is *warning*
|
|
- __type__ is *warning*
|
|
- message *id* is 3
|
|
- __message__ *id* is 3
|
|
- it's about El Capitan breaking the client.
|
|
- __comment__: it's about El Capitan breaking the client.
|
|
|
|
|
|
This way we can easily control the content shown to the client. Rename obsolete messages and they are not processed anymore. The efficiency of the script isn't that crucial as there should not be more than few active messages at any time.
|
|
This way we can easily control the content shown to the client. Rename or delete obsolete messages and they are not processed anymore. The efficiency of the script isn't that crucial as there should not be more than few active messages at any time.
|
|
|
|
|
|
### Functionality of the server script
|
|
### Functionality of the server script
|
|
|
|
|
... | | ... | |