screwdriver-data-schema 22.2.0 → 22.3.1

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.
@@ -12,9 +12,7 @@ module.exports = {
12
12
  table,
13
13
  'group',
14
14
  {
15
- type: Sequelize.TEXT('medium'),
16
- defaultValue: 'on-prem',
17
- allowNull: false
15
+ type: Sequelize.TEXT('medium')
18
16
  },
19
17
  { transaction }
20
18
  );
@@ -34,10 +34,9 @@ const MODEL = {
34
34
  weightage: Joi.number().min(0).max(100).description('Weight percentage for build cluster').example(20),
35
35
 
36
36
  group: Joi.string()
37
- .valid('on-prem', 'aws', 'gcp')
38
- .default('on-prem')
37
+ .default('default')
39
38
  .description('Group of the build cluster')
40
- .example('aws')
39
+ .example(('aws', 'gcp', 'on-prem', 'default'))
41
40
  };
42
41
 
43
42
  module.exports = {
@@ -74,10 +73,9 @@ module.exports = {
74
73
  'isActive',
75
74
  'managedByScrewdriver',
76
75
  'maintainer',
77
- 'weightage',
78
- 'group'
76
+ 'weightage'
79
77
  ],
80
- ['description']
78
+ ['description', 'group']
81
79
  )
82
80
  ).label('Get BuildCluster'),
83
81
 
@@ -114,7 +112,7 @@ module.exports = {
114
112
  mutate(
115
113
  MODEL,
116
114
  ['name', 'scmOrganizations', 'managedByScrewdriver', 'maintainer'],
117
- ['description', 'isActive', 'weightage', 'scmContext']
115
+ ['description', 'isActive', 'weightage', 'scmContext', 'group']
118
116
  )
119
117
  ).label('Create Build'),
120
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "22.2.0",
3
+ "version": "22.3.1",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {