Skip to content
Snippets Groups Projects
Commit d3a2d720 authored by Peter Rotich's avatar Peter Rotich
Browse files

DefaultData: Active vs. Archive

Commit 3944b51d added ability to archive help topics and departments but
failed to port changes default data (yaml files) loaded on install.

This commits adds the correct bits to flags field for both help topics and
departments. It also removes retired 'isactive' field for help topics.
parent 4a9d6b92
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# #
# Fields: # Fields:
# id - (int:optional) id number in the database # id - (int:optional) id number in the database
# flags - (bitmask: 0x0004 Active 0x0008 Archived)
# name - (string) Short name of the department # name - (string) Short name of the department
# signature - (string) Descriptive name of the department # signature - (string) Descriptive name of the department
# #
...@@ -17,6 +18,7 @@ ...@@ -17,6 +18,7 @@
signature: | signature: |
Support Department Support Department
ispublic: 1 ispublic: 1
flags: 0x0004
group_membership: 1 group_membership: 1
- id: 2 - id: 2
...@@ -24,6 +26,7 @@ ...@@ -24,6 +26,7 @@
signature: | signature: |
Sales and Customer Retention Sales and Customer Retention
ispublic: 1 ispublic: 1
flags: 0x0004
sla_id: 1 sla_id: 1
group_membership: 1 group_membership: 1
...@@ -32,4 +35,5 @@ ...@@ -32,4 +35,5 @@
signature: | signature: |
Maintenance Department Maintenance Department
ispublic: 0 ispublic: 0
flags: 0x0004
group_membership: 0 group_membership: 0
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Fields: # Fields:
# id - (int:optional) id number in the database # id - (int:optional) id number in the database
# topic - (string) descriptive name of the help topic # topic - (string) descriptive name of the help topic
# isactive - (bool:0|1) if the help topic should be initially usable # flags - (bitmask: Active | Disabled | Archived)
# ispublic - (bool:0|1) true or false if end users should be able to see the # ispublic - (bool:0|1) true or false if end users should be able to see the
# help topic. In other words, true or false if the help topic is _not_ # help topic. In other words, true or false if the help topic is _not_
# for internal use only # for internal use only
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
# #
--- ---
- topic_id: 1 - topic_id: 1
isactive: 1 flags: 0x02
ispublic: 1 ispublic: 1
priority_id: 2 priority_id: 2
forms: [2] forms: [2]
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
notes: | notes: |
Questions about products or services Questions about products or services
- isactive: 1 - topic_id: 2
flags: 0x02
ispublic: 1 ispublic: 1
priority_id: 1 priority_id: 1
forms: [2] forms: [2]
...@@ -36,7 +37,7 @@ ...@@ -36,7 +37,7 @@
Tickets that primarily concern the sales and billing departments Tickets that primarily concern the sales and billing departments
- topic_id: 10 - topic_id: 10
isactive: 1 flags: 0x02
ispublic: 1 ispublic: 1
dept_id: 3 dept_id: 3
priority_id: 2 priority_id: 2
...@@ -46,7 +47,7 @@ ...@@ -46,7 +47,7 @@
Product, service, or equipment related issues Product, service, or equipment related issues
- topic_pid: 10 - topic_pid: 10
isactive: 1 flags: 0x02
ispublic: 1 ispublic: 1
sla_id: 1 sla_id: 1
priority_id: 3 priority_id: 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment