`None` badge appear in external reference column
Summary
External reference badge appear as None
after running the unit tests.
Steps to reproduce
Run unit tests with make test
. The access the app
What is the current bug behavior?
External reference column show None
badge
What is the expected correct behavior?
The column should be empty if the external reference is not set
Relevant logs and/or screenshots
sqlite> .dump maintenance
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE maintenance (
id INTEGER NOT NULL,
name VARCHAR NOT NULL,
description VARCHAR,
external_reference VARCHAR,
status VARCHAR(11) NOT NULL,
scope_id INTEGER NOT NULL,
service_id INTEGER NOT NULL,
service_status VARCHAR(8) NOT NULL,
creation_date DATETIME NOT NULL,
scheduled_start_date DATETIME NOT NULL,
scheduled_end_date DATETIME NOT NULL,
start_date DATETIME,
end_date DATETIME, external_link VARCHAR,
PRIMARY KEY (id),
FOREIGN KEY(scope_id) REFERENCES scope (id),
FOREIGN KEY(service_id) REFERENCES service (id)
);
INSERT INTO maintenance VALUES(1,'Increase IP range available','Because of the increasing number of client wanting to use the Load Balancer service in FRDC03 we are going to increase the range by a new /24','CHG000387','IN_PROGRESS',3,8,'UP','2022-06-17 20:12:00.000000','2022-06-20 03:00:00.000000','2022-06-20 05:00:00.000000','2022-06-20 03:02:00.000000',NULL,'https://example.org');
INSERT INTO maintenance VALUES(2,'Deploy the service in the region','Deployment of the Serverless Function service in JADC01','CHG000176','SUCCEED',9,7,'DOWN','2022-06-17 20:17:00.000000','2022-06-01 08:00:00.000000','2022-06-01 10:00:00.000000','2022-06-01 08:12:00.000000','2022-06-01 10:12:00.000000','https://example.com');
INSERT INTO maintenance VALUES(3,'Optimize connection pool','Deployment of the Serverless Function service in JADC01','CHG000176','SCHEDULED',8,1,'UP','2022-04-11 17:10:00.000000','2022-04-12 03:00:00.000000','2022-04-12 05:00:00.000000',NULL,NULL,NULL);
INSERT INTO maintenance VALUES(4,'TEST','','','SCHEDULED',1,4,'UP','2022-07-22 19:00:00.000000','2022-07-22 19:00:00.000000','2022-07-22 20:00:00.000000',NULL,NULL,'https://example.org');
INSERT INTO maintenance VALUES(5,'TEST-udfakbkxqg',NULL,NULL,'FAILED',1,1,'UP','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000',NULL,'2022-07-22 19:01:00.000000',NULL);
INSERT INTO maintenance VALUES(6,'TEST-opieyekavg','','','SCHEDULED',1,1,'UP','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000',NULL,NULL,'');
INSERT INTO maintenance VALUES(7,'TEST-kzxfkhiefs',NULL,NULL,'SCHEDULED',1,1,'UP','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000',NULL,NULL,NULL);
INSERT INTO maintenance VALUES(8,'TEST-qjrtlhayyn',NULL,NULL,'SCHEDULED',1,1,'UP','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000',NULL,NULL,NULL);
INSERT INTO maintenance VALUES(9,'TEST-yzfqevkabn',NULL,NULL,'SCHEDULED',1,1,'UP','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000','2022-07-22 19:01:00.000000',NULL,NULL,NULL);
INSERT INTO maintenance VALUES(10,'TEST on refait tout','parce que','CHG00011','SCHEDULED',1,4,'UP','2022-07-22 19:02:00.000000','2022-07-22 19:00:00.000000','2022-07-22 20:00:00.000000',NULL,NULL,'https://example.org');
COMMIT;
Environment info
0.12.0