Skip to content

Commit 69c6666

Browse files
authored
EQMS-1440: disable delayed qms doc effectiveness and review interval (#8049)
* EQMS-1440: disable delayed qms doc effectiveness and review interval Signed-off-by: Victor Ilyushchenko <[email protected]> * ff Signed-off-by: Victor Ilyushchenko <[email protected]> * ff Signed-off-by: Victor Ilyushchenko <[email protected]> --------- Signed-off-by: Victor Ilyushchenko <[email protected]>
1 parent cae76ab commit 69c6666

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

plugins/controlled-documents-resources/src/components/document/EditDocRelease.svelte

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -58,33 +58,33 @@
5858
5959
const client = getClient()
6060
61-
async function changePlannedEffectiveDate (plannedEffectiveDate: Timestamp) {
62-
if (!$controlledDocument) {
63-
return
64-
}
65-
66-
await client.update($controlledDocument, { plannedEffectiveDate })
67-
}
68-
69-
let selectedDate: Timestamp =
70-
$controlledDocument?.plannedEffectiveDate != null && $controlledDocument?.plannedEffectiveDate > 0
71-
? $controlledDocument.plannedEffectiveDate
72-
: Date.now()
73-
74-
let selected: IntlString | undefined = undefined
75-
if ($controlledDocument?.plannedEffectiveDate === 0) {
76-
selected = documentsRes.string.EffectiveImmediately
77-
} else if ($controlledDocument?.plannedEffectiveDate != null) {
78-
selected = documentsRes.string.EffectiveOn
79-
}
80-
81-
async function changeSelectedDate (ev: CustomEvent) {
82-
if (ev.detail !== undefined) {
83-
selectedDate = ev.detail
84-
await changePlannedEffectiveDate(ev.detail)
85-
selected = documentsRes.string.EffectiveOn
86-
}
87-
}
61+
// async function changePlannedEffectiveDate (plannedEffectiveDate: Timestamp) {
62+
// if (!$controlledDocument) {
63+
// return
64+
// }
65+
66+
// await client.update($controlledDocument, { plannedEffectiveDate })
67+
// }
68+
69+
// let selectedDate: Timestamp =
70+
// $controlledDocument?.plannedEffectiveDate != null && $controlledDocument?.plannedEffectiveDate > 0
71+
// ? $controlledDocument.plannedEffectiveDate
72+
// : Date.now()
73+
74+
// let selected: IntlString | undefined = undefined
75+
// if ($controlledDocument?.plannedEffectiveDate === 0) {
76+
// selected = documentsRes.string.EffectiveImmediately
77+
// } else if ($controlledDocument?.plannedEffectiveDate != null) {
78+
// selected = documentsRes.string.EffectiveOn
79+
// }
80+
81+
// async function changeSelectedDate (ev: CustomEvent) {
82+
// if (ev.detail !== undefined) {
83+
// selectedDate = ev.detail
84+
// await changePlannedEffectiveDate(ev.detail)
85+
// selected = documentsRes.string.EffectiveOn
86+
// }
87+
// }
8888
8989
const reviewIntervals: DropdownTextItem[] = []
9090
for (const interval of periodicReviewIntervals) {
@@ -254,10 +254,10 @@
254254
gap="none"
255255
/>
256256
</div>
257-
<header class="fs-title text-lg my-4">
257+
<header class="fs-title text-lg mt-4">
258258
<Label label={documentsRes.string.EffectiveDocumentLifecycle} />
259259
</header>
260-
<span class="fs-title text-normal">
260+
<!-- <span class="fs-title text-normal">
261261
<Label label={documentsRes.string.EffectiveDate} />
262262
</span>
263263
<div>
@@ -298,7 +298,7 @@
298298
</div>
299299
</RadioButton>
300300
</div>
301-
</div>
301+
</div> -->
302302
<div class="flex-row-center flex-gap-2">
303303
<span class="whitespace-nowrap fs-title text-normal">
304304
<Label label={documentsRes.string.PeriodicReviewToBeCompleted} />

qms-tests/sanity/tests/documents/documents.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ test.describe('QMS. Documents tests', () => {
581581
})
582582
})
583583

584-
test('TESTS-162. Approve document with delayed release', async ({ page }) => {
584+
test.skip('TESTS-162. Approve document with delayed release', async ({ page }) => {
585585
await allure.description('Requirement\nUsers need to create document with delayed release')
586586
await allure.tms('TESTS-162', 'https://front.hc.engineering/workbench/platform/tracker/TESTS-162')
587587
const approveDelayedDocument: NewDocument = {

0 commit comments

Comments
 (0)