ccs-digitalmarketplace-frameworks 1.9.1 → 2.0.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.
Files changed (16) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/requirements-dev.txt +2 -2
  4. package/schema_generator/validation.py +34 -8
  5. package/tests/test_content.py +3 -3
  6. /package/frameworks/digital-outcomes-and-specialists-7/manifests/{edit_evaluation.yml → edit_additional_lot_questions.yml} +0 -0
  7. /package/frameworks/digital-outcomes-and-specialists-7/manifests/{evaluation.yml → evaluations.yml} +0 -0
  8. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → additional-lot-questions}/deliverCapability.yml +0 -0
  9. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → additional-lot-questions}/deliverCapabilityComment.yml +0 -0
  10. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → additional-lot-questions}/deliverCapabilityScore.yml +0 -0
  11. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → additional-lot-questions}/describeCapabilityPartner.yml +0 -0
  12. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → additional-lot-questions}/describeCapabilityPartnerComment.yml +0 -0
  13. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → additional-lot-questions}/describeCapabilityPartnerScore.yml +0 -0
  14. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → additional-lot-questions}/provideCapability.yml +0 -0
  15. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → additional-lot-questions}/provideCapabilityComment.yml +0 -0
  16. /package/frameworks/digital-outcomes-and-specialists-7/questions/{evaluation → additional-lot-questions}/provideCapabilityScore.yml +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Records breaking changes from major version bumps
4
4
 
5
+ ## 2.0.0
6
+
7
+ Rename evaluations to additional lot questions
8
+
5
9
  ## 1.9.0
6
10
 
7
11
  Add the Digital Outcomes and Specialists 7 framework
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccs-digitalmarketplace-frameworks",
3
- "version": "1.9.1",
3
+ "version": "2.0.0",
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"
@@ -115,7 +115,7 @@ govuk-country-register==0.5.0
115
115
  # via
116
116
  # -r requirements.txt
117
117
  # ccs-digitalmarketplace-utils
118
- hypothesis==6.108.2
118
+ hypothesis==6.108.5
119
119
  # via -r requirements-dev.in
120
120
  idna==3.7
121
121
  # via
@@ -189,7 +189,7 @@ pyjwt==2.8.0
189
189
  # notifications-python-client
190
190
  pyparsing==2.4.7
191
191
  # via packaging
192
- pytest==8.2.2
192
+ pytest==8.3.2
193
193
  # via -r requirements-dev.in
194
194
  python-dateutil==2.9.0.post0
195
195
  # via
@@ -21,6 +21,14 @@ MANIFESTS = {
21
21
  'question_set': 'briefs',
22
22
  'manifest': 'award_brief'
23
23
  },
24
+ 'additional-lot-questions': {
25
+ 'question_set': 'additional-lot-questions',
26
+ 'manifest': 'edit_additional_lot_questions'
27
+ },
28
+ 'evaluations': {
29
+ 'question_set': 'additional-lot-questions',
30
+ 'manifest': 'evaluations'
31
+ }
24
32
  }
25
33
 
26
34
  LEGACY_GCLOUD_LOTS = [
@@ -111,7 +119,7 @@ BRIEF_EXCLUDED_FRAMEWORKS = [
111
119
  ]
112
120
 
113
121
 
114
- def _get_schema_title_and_slugs(schema_type, framework_family=None, exclude_lot=None, exclude_frameworks=[]):
122
+ def _get_schema_title_and_slugs(schema_type, framework_family=None, exclude_lots=[], exclude_frameworks=[]):
115
123
  titles_and_slugs = []
116
124
  for family, framework_list in FRAMEWORKS_AND_LOTS.items():
117
125
  if framework_family:
@@ -123,10 +131,8 @@ def _get_schema_title_and_slugs(schema_type, framework_family=None, exclude_lot=
123
131
  if framework['framework_slug'] in exclude_frameworks:
124
132
  continue
125
133
  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
134
+ if lot_slug in exclude_lots:
135
+ continue
130
136
 
131
137
  titles_and_slugs.append(
132
138
  (
@@ -143,20 +149,40 @@ SCHEMAS = {
143
149
  'briefs': _get_schema_title_and_slugs(
144
150
  "Brief",
145
151
  "digital-outcomes-and-specialists",
146
- exclude_lot="user-research-studios",
152
+ exclude_lots=["user-research-studios"],
147
153
  exclude_frameworks=BRIEF_EXCLUDED_FRAMEWORKS
148
154
  ),
149
155
  'brief-responses': _get_schema_title_and_slugs(
150
156
  "Brief Response",
151
157
  "digital-outcomes-and-specialists",
152
- exclude_lot="user-research-studios",
158
+ exclude_lots=["user-research-studios"],
153
159
  exclude_frameworks=BRIEF_EXCLUDED_FRAMEWORKS
154
160
  ),
155
161
  'brief-awards': _get_schema_title_and_slugs(
156
162
  "Brief Award",
157
163
  "digital-outcomes-and-specialists",
158
- exclude_lot="user-research-studios",
164
+ exclude_lots=["user-research-studios"],
159
165
  exclude_frameworks=BRIEF_EXCLUDED_FRAMEWORKS
166
+ ),
167
+ 'evaluations': _get_schema_title_and_slugs(
168
+ "Evaluate additional lot questions",
169
+ "digital-outcomes-and-specialists",
170
+ exclude_lots=[
171
+ "digital-outcomes",
172
+ "digital-specialists",
173
+ "user-research-studios",
174
+ "user-research-participants",
175
+ ],
176
+ ),
177
+ 'additional-lot-questions': _get_schema_title_and_slugs(
178
+ "Additional lot questions",
179
+ "digital-outcomes-and-specialists",
180
+ exclude_lots=[
181
+ "digital-outcomes",
182
+ "digital-specialists",
183
+ "user-research-studios",
184
+ "user-research-participants",
185
+ ],
160
186
  )
161
187
  }
162
188
 
@@ -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": "additional-lot-questions",
37
+ "edit_additional_lot_questions": "additional-lot-questions"
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
@@ -48,7 +48,7 @@ QUESTION_SET_CONTEXT = {
48
48
  'item': 'essential requirement'
49
49
  },
50
50
  'services': {'lot': 'context-lot'},
51
- 'evaluation': {'lot': 'context-lot'}
51
+ 'additional-lot-questions': {'lot': 'context-lot'}
52
52
  }
53
53
 
54
54
  EXCLUDED_FRAMEWORKS = [