Skip to content

Commit 54443dd

Browse files
authored
Fix incorrect link in overview.md, bug in populateStd.js (#134)
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 5020bd0 commit 54443dd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

populateStds.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ filenames.forEach((filename) => {
3434
id: filename.substring(0, filename.length - 3),
3535
adrId: components[1],
3636
version: components[2],
37-
status: {},
37+
state: {},
3838
}
3939
// now calculate the properties for the columns (plus stable0 as a helper)
40-
obj.status.draft = obj.stabilized_at === undefined
41-
obj.status.stable0 = !obj.status.draft && obj.stabilized_at <= today
42-
obj.status.deprecated = obj.obsoleted_at !== undefined && obj.obsoleted_at < today
43-
obj.status.stable = !obj.status.draft && !obj.status.stable0 && !obj.status.deprecated
44-
obj.status.effective = obj.status.stable0 && !obj.status.deprecated
40+
obj.state.draft = obj.stabilized_at === undefined
41+
obj.state.stable0 = !obj.state.draft && obj.stabilized_at <= today
42+
obj.state.deprecated = obj.obsoleted_at !== undefined && obj.obsoleted_at < today
43+
obj.state.stable = !obj.state.draft && !obj.state.stable0 && !obj.state.deprecated
44+
obj.state.effective = obj.state.stable0 && !obj.state.deprecated
4545
var track = obj.track
4646
if (track === undefined) return
4747
if (tracks[track] === undefined) tracks[track] = {}
@@ -105,7 +105,7 @@ ${headerLegend}
105105
Object.entries(trackEntry[1]).forEach((standardEntry) => {
106106
var versions = standardEntry[1].versions
107107
var ref = versions[versions.length - 1]
108-
var effectiveVersions = versions.filter((v) => v.status.effective)
108+
var effectiveVersions = versions.filter((v) => v.state.effective)
109109
if (effectiveVersions.length) {
110110
ref = effectiveVersions[effectiveVersions.length - 1]
111111
}
@@ -131,7 +131,7 @@ ${headerLegend}
131131
slines.push('| -------- | ----- | ------- | ---------- | --------- |')
132132
var link = `[scs-${adrId}](/standards/${track.toLowerCase()}/scs-${adrId})`
133133
var versionList = ['draft', 'stable', 'effective', 'deprecated'].map(
134-
(column) => mkLinkList(versions.filter((v) => v.status[column])) || '-'
134+
(column) => mkLinkList(versions.filter((v) => v.state[column])) || '-'
135135
).join(' | ')
136136
lines.push(`| ${link} | ${track} | ${ref.title} | ${versionList} |`)
137137
tlines.push(`| ${link} | ${ref.title} | ${versionList} |`)
@@ -142,7 +142,7 @@ ${headerLegend}
142142
id: obj.id,
143143
}
144144
standardItem.items.push(versionItem)
145-
slines.push(`| [scs-${adrId}-${obj.version}](/standards/${obj.id}) | ${obj.type} | ${obj.status || obj.state} | ${obj.stabilized_at || '-'} | ${obj.obsoleted_at || '-'} |`)
145+
slines.push(`| [scs-${adrId}-${obj.version}](/standards/${obj.id}) | ${obj.type} | ${obj.status} | ${obj.stabilized_at || '-'} | ${obj.obsoleted_at || '-'} |`)
146146
})
147147
slines.push('') // file should end with a single newline character
148148
fs.writeFileSync(`${trackPath}/scs-${adrId}.md`, slines.join('\n'), 'utf8')

standards/certification/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SCS certificates come with various scopes. See [Scopes and Versions](scopes-vers
44

55
## Becoming certified
66

7-
In order for a cloud service offering to obtain a certificate, it has to conform to all standards of the respective scope, which will be tested at regular intervals, and the results of these tests will be made available publicly. For more details on how to become certified, please consult the corresponding [document](https://github.com/SovereignCloudStack/standards/blob/issue/337/Standards/scs-0004-v1-achieving-certification.md).
7+
In order for a cloud service offering to obtain a certificate, it has to conform to all standards of the respective scope, which will be tested at regular intervals, and the results of these tests will be made available publicly. For more details on how to become certified, please consult the corresponding [document](/standards/scs-0004-v1-achieving-certification).
88

99
## Compliant cloud environments
1010

0 commit comments

Comments
 (0)