Skip to content

Commit

Permalink
Story/000169/story pt fractions (#177)
Browse files Browse the repository at this point in the history
* story pt fraction support (db)

* remove commented code

* bump ver

* update to published ver

Co-authored-by: Kevin <kevinbe71@gmail.com>
  • Loading branch information
51ngul4r1ty and singularity15 authored Nov 25, 2020
1 parent 5d1d57f commit 012bf7f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src/database/model/upgrade.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
10 changes: 7 additions & 3 deletions src/server/dataaccess/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 012bf7f

Please sign in to comment.