Bugzilla – Attachment 184195 Details for
Bug 40174
Add a way to cleanly insert data in DB from Cypress tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40174: Do not generate bigint
Bug-40174-Do-not-generate-bigint.patch (text/plain), 994 bytes, created by
Jonathan Druart
on 2025-07-17 12:53:13 UTC
(
hide
)
Description:
Bug 40174: Do not generate bigint
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-17 12:53:13 UTC
Size:
994 bytes
patch
obsolete
>From b85e292db18fe06184158934573afe6e082966c2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 17 Jul 2025 14:50:29 +0200 >Subject: [PATCH] Bug 40174: Do not generate bigint > >Prevent "Out of range value for column 'deliverytime'" in a later >follow-up bug reports. >--- > t/cypress/plugins/mockData.js | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/t/cypress/plugins/mockData.js b/t/cypress/plugins/mockData.js >index 174564a12ee..a6fe15a099d 100644 >--- a/t/cypress/plugins/mockData.js >+++ b/t/cypress/plugins/mockData.js >@@ -38,7 +38,8 @@ const generateMockData = (type, properties) => { > } > return (value = faker.lorem.words(3)); > case "integer": >- return faker.number.int(); >+ // Do not return more than int(11); >+ return faker.number.int(2 ** 31 - 1); > case "boolean": > return faker.datatype.boolean(); > case "array": >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40174
:
183372
|
183373
|
183374
|
183851
|
183929
|
183978
|
183980
|
183981
|
184103
|
184104
|
184105
|
184106
|
184107
|
184108
|
184195
|
184327
|
184328
|
184329
|
184330
|
184331
|
184332
|
184333