Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Story/000169/story pt fractions #177

Merged
merged 5 commits into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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