[✍️ Dev Log] 신승길 / 2021-05-25
@gatsukichi がすでに取り組んでいます。
2021年5月25日 から。
評価
この issue はまだ評価されていません。
説明
오늘은 어떻게 프로젝트에 기여했나요?
- 칸반보드의 소켓통신화 진행중인데 아직 마무리가 덜됬다.
오늘의 프로젝트에서 힘든 점은 무엇인가요?
- await이 많이들어가니까 엄청 느려졌다. 로직이 잘못됬음을 깨닷고 join 메서드를 이용해서, 연속으로 chain을 계속 쭉쭉 걸어서 하나의 await으로 처리해야겠다.
const structuringData = async (part: string, projectId: number) => {
const foundProject = await Projects.findOne({ where: { id: projectId } });
const foundParts = await Parts.findOne({
where: {
title: part,
doingProject: foundProject,
},
});
if (foundParts) {
const foundTaskBox = await Task_boxes.find({
where: {
groupingPart: foundParts,
},
order: {
index: 'ASC',
},
});
const taskBox = [];
const taskItem: {
[index: number]: any;
} = {};
for (let i = 0; i < foundTaskBox.length; i++) {
const foundTasks = await Tasks.find({
where: {
groupingBox: foundTaskBox[i],
},
order: {
index: 'ASC',
},
});
let taskBoxOne: {
taskBoxTitle: string;
tasks: Array<string>;
} = Object.assign({}, { taskBoxTitle: foundTaskBox[i].title, tasks: [] });
taskBoxOne.tasks = foundTasks.map(el => String(el.id));
//taskBox하나에 tasks를 집어넣는다.
taskBox.push(taskBoxOne);
// 여기까지 taskBox하나만드는것 완료
for (let j = 0; j < foundTasks.length; j++) {
const foundChecklist = await Checklists.find({ where: { nowTask: foundTasks[j] } });
taskItem[foundTasks[j].id] = {
taskTitle: foundTasks[j].title,
desc: foundTasks[j].desc,
taskColor: foundTasks[j].taskColor,
startDate: foundTasks[j].startDate,
endDate: foundTasks[j].endDate,
assigness: JSON.parse(foundTasks[j].assignees),
checkList: foundChecklist
? foundChecklist.map(el => {
return { desc: el.desc, isChecked: el.isChecked };
})
: [],
};
}
}
console.log(taskBox, taskItem);
return { taskBox, taskItem };
} else {
const taskBox: {
taskBoxTitle: string;
tasks: Array<string>;
}[] = [];
const taskItem: {
[index: number]: any;
} = {};
return { taskBox, taskItem };
}
};
진짜 코드가 너무 지저분하다 ;;
얼른 join chain으로 해결해야겠다.
내일은 프로젝트에 기여하기 위해 무엇을 해야 하나요?
- 오늘중으로 칸반보드 50프로이상 구현
- 主要言語
- TypeScript
- スター
- 9
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codestates/Reciper-server のほかの issue
-
[✍️ Dev Log] 정송이 / 2021-06-16対応中かも @lovelysi0113 が 1944 日前に担当しました。 オープン@lovelysi0113/기록은 성장의 밑거름 ❄️ Dev Log
codestates/Reciper-server#254 · 担当者 1 名 ·
-
[✍️ Dev Log] 정송이 / 2021-06-08対応中かも @lovelysi0113 が 1952 日前に担当しました。 オープン@lovelysi0113/기록은 성장의 밑거름 ❄️ Dev Log
codestates/Reciper-server#250 · コメント 1 件 · 担当者 1 名 ·
-
[✍️ Dev Log] 정송이 / 2021-06-07対応中かも @lovelysi0113 が 1953 日前に担当しました。 オープン@lovelysi0113/기록은 성장의 밑거름 ❄️ Dev Log
codestates/Reciper-server#245 · コメント 2 件 · 担当者 1 名 ·
-
[✍️ Dev Log] 정송이 / 2021-06-06対応中かも @lovelysi0113 が 1954 日前に担当しました。 オープン@lovelysi0113/기록은 성장의 밑거름 ❄️ Dev Log
codestates/Reciper-server#234 · 担当者 1 名 ·
-
[server] [Workspace] - webRTC initial feature再び着手できるかも @gatsukichi が 1955 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン3h Middle server Workspace
codestates/Reciper-server#233 · 担当者 1 名 ·
codestates/Reciper-server の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
apache/rocketmq-dashboard#6610 ·
メンテナーはふだん 3 日以内に返信
-
nextjs-tracking
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
cloudflare/vinext#3920 ·
メンテナーはふだん 1 日以内に返信
-
Team:Dashboards
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
elastic/kibana#297299 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
analytics beginner friendly community contributions-welcome good first issue hacktoberfest help wanted up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
affected/v17 affected/v18 area/frontend type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
umbraco/Umbraco-CMS#24186 ·
メンテナーはふだん 2 日以内に返信