Skip to content

Commit

Permalink
fix "used split points" decimal issue (#232)
Browse files Browse the repository at this point in the history
* fix "used split points" decimal issue

* fixed used split points decimal issue

Co-authored-by: Kevin <[email protected]>
  • Loading branch information
51ngul4r1ty and singularity15 authored Dec 13, 2020
1 parent 731af5c commit 5ab41e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atoll",
"version": "0.29.0",
"version": "0.29.1",
"author": {
"name": "Kevin Berry",
"email": "[email protected]"
Expand Down
6 changes: 6 additions & 0 deletions src/database/model/upgrade.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ update sprintbacklogitem set "status" = 'D';

alter table backlogitem alter column estimate type decimal(10, 2);

alter table sprint alter column "plannedPoints" type decimal(10, 2);
alter table sprint alter column "acceptedPoints" type decimal(10, 2);
alter table sprint alter column "velocityPoints" type decimal(10, 2);
alter table sprint alter column "usedSplitPoints" type decimal(10, 2);
alter table sprint alter column "remainingSplitPoints" type decimal(10, 2);

alter table backlogitem add column status char(1);

alter table sprint add column "archived" char(1);
Expand Down
1 change: 1 addition & 0 deletions src/server/dataaccess/mappers/dataAccessToApiMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const mapDbToApiSprint = (item: any): ApiSprint => {
acceptedPoints: convertDbFloatToNumber(item.dataValues.acceptedPoints),
velocityPoints: convertDbFloatToNumber(item.dataValues.velocityPoints),
remainingSplitPoints: convertDbFloatToNumber(item.dataValues.remainingSplitPoints),
usedSplitPoints: convertDbFloatToNumber(item.dataValues.usedSplitPoints),
archived: convertDbCharToBoolean(item.dataValues.archived)
};
};
Expand Down

0 comments on commit 5ab41e2

Please sign in to comment.