ccs-digitalmarketplace-frameworks 1.9.1 → 1.9.2

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.
Files changed (14) hide show
  1. package/package.json +1 -1
  2. package/schema_generator/validation.py +20 -8
  3. package/tests/test_content.py +2 -2
  4. /package/frameworks/digital-outcomes-and-specialists-7/manifests/{edit_evaluation.yml → edit_evaluations.yml} +0 -0
  5. /package/frameworks/digital-outcomes-and-specialists-7/manifests/{evaluation.yml → evaluations.yml} +0 -0
  6. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → evaluations}/deliverCapability.yml +0 -0
  7. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → evaluations}/deliverCapabilityComment.yml +0 -0
  8. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → evaluations}/deliverCapabilityScore.yml +0 -0
  9. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → evaluations}/describeCapabilityPartner.yml +0 -0
  10. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → evaluations}/describeCapabilityPartnerComment.yml +0 -0
  11. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → evaluations}/describeCapabilityPartnerScore.yml +0 -0
  12. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → evaluations}/provideCapability.yml +0 -0
  13. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → evaluations}/provideCapabilityComment.yml +0 -0
  14. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → evaluations}/provideCapabilityScore.yml +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccs-digitalmarketplace-frameworks",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Data files for Digital Marketplace’s procurement frameworks",
5
5
  "repository": "git@github.com:Crown-Commercial-Service/ccs-digitalmarketplace-frameworks",
6
6
  "author": "enquiries@digitalmarketplace.service.gov.uk"
@@ -21,6 +21,10 @@ MANIFESTS = {
21
21
  'question_set': 'briefs',
22
22
  'manifest': 'award_brief'
23
23
  },
24
+ 'evaluations': {
25
+ 'question_set': 'evaluations',
26
+ 'manifest': 'edit_evaluations'
27
+ }
24
28
  }
25
29
 
26
30
  LEGACY_GCLOUD_LOTS = [
@@ -111,7 +115,7 @@ BRIEF_EXCLUDED_FRAMEWORKS = [
111
115
  ]
112
116
 
113
117
 
114
- def _get_schema_title_and_slugs(schema_type, framework_family=None, exclude_lot=None, exclude_frameworks=[]):
118
+ def _get_schema_title_and_slugs(schema_type, framework_family=None, exclude_lots=[], exclude_frameworks=[]):
115
119
  titles_and_slugs = []
116
120
  for family, framework_list in FRAMEWORKS_AND_LOTS.items():
117
121
  if framework_family:
@@ -123,10 +127,8 @@ def _get_schema_title_and_slugs(schema_type, framework_family=None, exclude_lot=
123
127
  if framework['framework_slug'] in exclude_frameworks:
124
128
  continue
125
129
  for lot_slug, lot_name in framework['lots']:
126
- if exclude_lot:
127
- # Some lots don't have briefs/brief response/brief award schemas
128
- if exclude_lot == lot_slug:
129
- continue
130
+ if lot_slug in exclude_lots:
131
+ continue
130
132
 
131
133
  titles_and_slugs.append(
132
134
  (
@@ -143,20 +145,30 @@ SCHEMAS = {
143
145
  'briefs': _get_schema_title_and_slugs(
144
146
  "Brief",
145
147
  "digital-outcomes-and-specialists",
146
- exclude_lot="user-research-studios",
148
+ exclude_lots=["user-research-studios"],
147
149
  exclude_frameworks=BRIEF_EXCLUDED_FRAMEWORKS
148
150
  ),
149
151
  'brief-responses': _get_schema_title_and_slugs(
150
152
  "Brief Response",
151
153
  "digital-outcomes-and-specialists",
152
- exclude_lot="user-research-studios",
154
+ exclude_lots=["user-research-studios"],
153
155
  exclude_frameworks=BRIEF_EXCLUDED_FRAMEWORKS
154
156
  ),
155
157
  'brief-awards': _get_schema_title_and_slugs(
156
158
  "Brief Award",
157
159
  "digital-outcomes-and-specialists",
158
- exclude_lot="user-research-studios",
160
+ exclude_lots=["user-research-studios"],
159
161
  exclude_frameworks=BRIEF_EXCLUDED_FRAMEWORKS
162
+ ),
163
+ 'evaluations': _get_schema_title_and_slugs(
164
+ "Evaluation",
165
+ "digital-outcomes-and-specialists",
166
+ exclude_lots=[
167
+ "digital-outcomes",
168
+ "digital-specialists",
169
+ "user-research-studios",
170
+ "user-research-participants",
171
+ ],
160
172
  )
161
173
  }
162
174
 
@@ -33,8 +33,8 @@ MANIFEST_QUESTION_SET = {
33
33
  "services_search_filters": "services",
34
34
  "download_results": "services",
35
35
 
36
- "evaluation": "evaluation",
37
- "edit_evaluation": "evaluation"
36
+ "evaluations": "evaluations",
37
+ "edit_evaluations": "evaluations"
38
38
  }
39
39
 
40
40
  # `item` property wouldn't usually be part of a brief response but is included here as the dynamic list child question