diff --git a/package-lock.json b/package-lock.json index f0244280..707fb0a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "atoll", - "version": "0.20.3", + "version": "0.21.0", "lockfileVersion": 1, "requires": true, "dependencies": { "@atoll/shared": { - "version": "0.20.3", - "resolved": "https://registry.npmjs.org/@atoll/shared/-/shared-0.20.3.tgz", - "integrity": "sha512-pInZp/IoXflgyzIYQvZTBJrtBmjyY/M0ioDEn1hWLQXz1rml9uJp26bR5anzrDuSS9zNXvzQ/ZssjutmO93o8w==", + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@atoll/shared/-/shared-0.21.0.tgz", + "integrity": "sha512-Jw+wO1jCZ3BuZA5wI6WiB87YegSYnoyW42HgHet3atw5KM9Rb8DDlKnGzCgZ6y9sACyXp3EC4kXLVW1McbH1dQ==", "requires": { "@csstools/normalize.css": "10.1.0", "@flopflip/react-broadcast": "10.1.11", diff --git a/package.json b/package.json index ac091c87..6f9f507f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "atoll", - "version": "0.20.3", + "version": "0.21.0", "author": { "name": "Kevin Berry", "email": "41717340+51ngul4r1ty@users.noreply.github.com" @@ -57,7 +57,7 @@ "setup": "ts-node ./scripts/setup.ts" }, "dependencies": { - "@atoll/shared": "0.20.3", + "@atoll/shared": "0.21.0", "@flopflip/memory-adapter": "1.6.0", "@flopflip/react-broadcast": "10.1.11", "axios": "0.19.2", diff --git a/src/database/model/upgrade.sql b/src/database/model/upgrade.sql index 958af5d1..2be033de 100644 --- a/src/database/model/upgrade.sql +++ b/src/database/model/upgrade.sql @@ -16,3 +16,8 @@ alter table sprint add column "usedSplitPoints" integer; alter table sprint add column "remainingSplitPoints" integer; alter table sprint drop column displayindex; + +alter table sprintbacklogitem add column "status" char(1); +update sprintbacklogitem set "status" = 'D'; + +alter table backlogitem alter column estimate type decimal(10, 2); diff --git a/src/server/dataaccess/mappers.ts b/src/server/dataaccess/mappers.ts index 074d64da..dbe5c46f 100644 --- a/src/server/dataaccess/mappers.ts +++ b/src/server/dataaccess/mappers.ts @@ -10,9 +10,13 @@ import { ApiUserSettings } from "@atoll/shared"; -export const mapToBacklogItem = (item: any): ApiBacklogItem => ({ - ...item.dataValues -}); +export const mapToBacklogItem = (item: any): ApiBacklogItem => { + const estimateValue = item.dataValues.estimate; + return { + ...item.dataValues, + estimate: estimateValue ? parseFloat(estimateValue) : estimateValue + }; +}; export const mapToBacklogItemRank = (item: any): ApiBacklogItemRank => ({ ...item.dataValues