govuk_document_types 0.1.11 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c69050edab6c791a73b7879cb0202e5a82dddeff
4
- data.tar.gz: 8b2b21f40873ff15eed3ea8004c6e1210130250c
3
+ metadata.gz: 13692a98e376dd7f97c8e0e2f29c1243a42a80b6
4
+ data.tar.gz: cff39162f651255bd4355e8f22e198887ee87c09
5
5
  SHA512:
6
- metadata.gz: f7049a04a1e395d4409b079b28e8ef0706454847dcf1dbfda59370b9d052d8875cb54342d21bdbaa7d46ce167a91fdf6b024fdc58590c0446b9562c8638ccb0b
7
- data.tar.gz: c8756847388dac2fa7a373aee0bae55df34cf71cb3381c0f613699da247e0128066d29b9d95427c8b6ec124071ac8fac4a84c435692aace7de95600314a5cb83
6
+ metadata.gz: 6655ecf82588d51a485534a304fcb0fc73c260c627d4d5201ff21c398e4f59fd1ef96db3703820117ad543d573728ff7765b8cf1a993c0ebd101e48adf0b5163
7
+ data.tar.gz: 07b75f95bf395b06395dab4fd4efb447d71f24de39d753b924e736296496cabd87a448f703d841c2f396bf4564a47bd48f387c296964a126d4a590d60108adba
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.2.0
2
+
3
+ * Replace `user_need_document_supertype` by `content_purpose_document_supertype`
4
+ * Updates to `content_purpose_document_supertype`
5
+
1
6
  # 0.1.11
2
7
 
3
8
  * Add travel_advice_index document type to search_user_need_document_supertype
data/README.md CHANGED
@@ -8,6 +8,10 @@ https://docs.publishing.service.gov.uk/document-types.html
8
8
  This gem is only to be used in [publishing-api][publishing-api] and
9
9
  [rummager][rummager]. **Don't use it in your project**.
10
10
 
11
+ ## Long term vision
12
+
13
+ This gem is used to share the canonical list of supertypes between rummager and publishing-api. We're currently migrating to a new system of indexing where rummager gets all data from the publishing-api (via a message queue). Once that work is completed this repo should be retired and the canonical list should be moved to either [govuk-content-schemas][] for use in the publishing-api, or be moved into publishing-api directly.
14
+
11
15
  ## How to add a supertype
12
16
 
13
17
  1. Add it to [data/supertypes.yml](data/supertypes.yml) in this gem and release a new version
@@ -33,6 +37,7 @@ bundle exec rake
33
37
  [MIT License](LICENSE.txt)
34
38
 
35
39
  [rummager-pr]: https://github.com/alphagov/rummager/pull/756
40
+ [govuk-content-schemas]: https://github.com/alphagov/govuk-content-schemas
36
41
  [schemas-pr]: https://github.com/alphagov/govuk-content-schemas/pull/551
37
42
  [content-store-pr]: https://github.com/alphagov/content-store/pull/268
38
43
 
data/data/supertypes.yml CHANGED
@@ -17,7 +17,6 @@ navigation_document_supertype:
17
17
  - manual
18
18
  - map
19
19
  - place
20
- - programme
21
20
  - promotional
22
21
  - regulation
23
22
  - simple_smart_answer
@@ -26,45 +25,48 @@ navigation_document_supertype:
26
25
  - transaction
27
26
  - travel_advice
28
27
 
29
- user_need_document_supertype:
30
- name: "User need"
28
+ content_purpose_document_supertype:
29
+ name: "Content purpose"
31
30
  description: "As defined by the Frontend & Navigation team in Q3-2017 - https://gov-uk.atlassian.net/wiki/spaces/GFED/pages/187564388/Grouping+document+types+by+need"
32
31
  default: other
33
32
  items:
34
33
  - id: updates-and-alerts
34
+ description: To provide time-based information on a new thing (alert) or something that's already happened (update)
35
35
  document_types:
36
36
  - drug_safety_update
37
37
  - fatality_notice
38
38
  - medical_safety_alert
39
39
  - national_statistics_announcement
40
40
  - official_statistics_announcement
41
- - press_release
42
41
  - staff_update
43
42
  - statistics_announcement
44
43
  - vehicle_recalls_and_faults_alert
45
44
 
46
- - id: news-promotions
45
+ - id: news
46
+ description: To communicate what government is doing (non-urgent)
47
47
  document_types:
48
- - authored_article
49
- - campaign
50
48
  - case_study
49
+ - correspondence # Also used for other things
51
50
  - news_article
52
51
  - news_story
52
+ - press_release
53
53
  - world_location_news_article
54
54
  - world_news_story
55
55
 
56
- - id: marketing
56
+ - id: resources
57
57
  document_types:
58
+ - map
58
59
  - promotional
59
- - coming_soon
60
60
 
61
- - id: speeches
61
+ - id: speeches-and-statements
62
62
  document_types:
63
+ - authored_article
63
64
  - oral_statement
64
65
  - speech
65
66
  - written_statement
66
67
 
67
68
  - id: guidance
69
+ description: To provide information that prepares the user for doing a thing (without the need to share any personal information).
68
70
  document_types:
69
71
  - answer
70
72
  - calendar
@@ -76,6 +78,8 @@ user_need_document_supertype:
76
78
  - html_publication
77
79
  - manual
78
80
  - manual_section
81
+ - policy_paper
82
+ - regulation
79
83
  - statutory_guidance
80
84
  - travel_advice
81
85
 
@@ -84,10 +88,12 @@ user_need_document_supertype:
84
88
  - contact
85
89
 
86
90
  - id: transactions
91
+ description: To provide specific information and tools that enables the user to do a thing, based on information they provide during the transaction.
87
92
  document_types:
88
93
  - calculator
89
94
  - completed_transaction
90
95
  - form
96
+ - licence
91
97
  - local_transaction
92
98
  - place
93
99
  - simple_smart_answer
@@ -95,20 +101,19 @@ user_need_document_supertype:
95
101
  - transaction
96
102
 
97
103
  - id: reports
104
+ description: To share in detail the outcome of investigations, research and changes in regulation (government and independent bodies).
98
105
  document_types:
99
106
  - aaib_report
100
107
  - consultation_outcome
101
- - financial_release
102
108
  - impact_assessment
103
109
  - independent_report
104
110
  - maib_report
105
- - procurement
106
111
  - raib_report
107
- - regulation
108
112
  - research
109
113
  - service_standard_report
110
114
 
111
115
  - id: decisions
116
+ description: To share decisions and/or reports made by government on a specific thing.
112
117
  document_types:
113
118
  - asylum_support_decision
114
119
  - decision
@@ -121,26 +126,26 @@ user_need_document_supertype:
121
126
  - utaac_decision
122
127
 
123
128
  - id: engagement-activities
129
+ description: To enable bodies and people to comment on government policy and provide evidence.
124
130
  document_types:
125
131
  - closed_consultation
126
132
  - cma_case
127
133
  - consultation
128
- - licence
129
134
  - notice
130
135
  - open_consultation
131
136
 
132
137
  - id: data
138
+ description: To provide data that enables people to hold government to account (both raw data and data with analysis).
133
139
  document_types:
134
- - correspondence
135
140
  - foi_release
136
141
  - national_statistics
137
- - need
138
142
  - official_statistics
139
143
  - statistical_data_set
140
144
  - statistics
141
145
  - transparency
142
146
 
143
147
  - id: organising-entities
148
+ description: Things that exist in the real world
144
149
  document_types:
145
150
  - working_group
146
151
  - organisation
@@ -148,33 +153,33 @@ user_need_document_supertype:
148
153
  - worldwide_organisation
149
154
  - world_location
150
155
  - topical_event
151
- - policy_area
152
156
  - field_of_operation
153
157
  - ministerial_role
154
- - topical_event_about_page
155
-
156
- - id: support
157
- document_types:
158
- - countryside_stewardship_grant
159
- - esi_fund
160
- - international_development_fund
161
158
 
162
159
  - id: navigation
160
+ description: Pages that enable users to get to content pages
163
161
  document_types:
164
- - finder_email_signup
165
- - homepage
162
+ # "Tags"
163
+ - document_collection
166
164
  - mainstream_browse_page
167
- - search
168
- - take_part
165
+ - policy
166
+ - policy_area
169
167
  - taxon
170
168
  - topic
171
169
 
172
- - id: finder
173
- document_types:
174
- - document_collection
170
+ # Hardcoded pages to let users navigate
175
171
  - finder
172
+ - homepage
173
+ - search
176
174
  - travel_advice_index
177
175
 
176
+ - id: grants-and-funding
177
+ document_types:
178
+ - countryside_stewardship_grant
179
+ - esi_fund
180
+ - international_development_fund
181
+ - business_finance_support_scheme
182
+
178
183
  - id: corporate-info
179
184
  document_types:
180
185
  - about
@@ -189,12 +194,14 @@ user_need_document_supertype:
189
194
  - our_energy_use
190
195
  - our_governance
191
196
  - personal_information_charter
197
+ - petitions_and_campaigns
198
+ - procurement
192
199
  - publication_scheme
200
+ - recruitment
193
201
  - services_and_information
194
202
  - social_media_use
195
203
  - terms_of_reference
196
204
  - welsh_language_scheme
197
- - petitions_and_campaigns
198
205
 
199
206
  - id: service-manual
200
207
  document_types:
@@ -1,3 +1,3 @@
1
1
  module GovukDocumentTypes
2
- VERSION = "0.1.11".freeze
2
+ VERSION = "0.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_document_types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-30 00:00:00.000000000 Z
11
+ date: 2017-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake