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

新功能:创建教学项目 #72

Closed
sinkcup opened this issue Oct 18, 2021 · 11 comments
Closed

新功能:创建教学项目 #72

sinkcup opened this issue Oct 18, 2021 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@sinkcup
Copy link
Member

sinkcup commented Oct 18, 2021

网页版支持:创建教学项目,但里面的数据是闭源的,内部员工都难以协助,更别说外部开发者用户了。而 GitHub 的各种模板/demo 都是开源的,非常方便。

image

这次做样板间数据,有几种方式:

1、网页创建教学项目,再手动调整(比如按照 Scrum 理念把迭代名称改成时间),以前就是这样。缺点:时间会过时,需要反复手动创建和调整。

image

2、网页创建教学项目,手动调整调整好,导出,以后定时手动导入。实测:不行,网页导出的 csv 无法直接导入,需要手动删掉「故事点」等数据,比较麻烦,而且导入以后,还需要手动添加故事点。

image

image

3、开源:网页创建教学项目,手动调整调整好,导出,放在 coding cli 开源项目中,通过命令调用 open api 循环创建(open api 没有导入功能)和设置故事点等属性,以后可以定时创建。

@sinkcup sinkcup self-assigned this Oct 18, 2021
@sinkcup sinkcup added the enhancement New feature or request label Oct 18, 2021
@sinkcup
Copy link
Member Author

sinkcup commented Oct 18, 2021

试图开发两个命令:

project:create
project:import

看 open api 文档,发现「创建项目」的接口参数过时了(比如 git、svn、教学模板),已核实,勉强能用。

https://help.coding.net/openapi#3a2e078215fb8749e58c8e4d36803aba

按照 MVP 理念,这个可以先不做,先做「项目导入」。

然后发现不应该叫「项目导入」,而是「事项导入」,因为「项目导入」另有所指:

image

@sinkcup
Copy link
Member Author

sinkcup commented Oct 18, 2021

issue:import 需要先做 issue:create,所以需要再创建一个 用户故事 #73

@sinkcup
Copy link
Member Author

sinkcup commented Oct 19, 2021

跑通了最简单的导入几个字段:

image

sinkcup added a commit that referenced this issue Oct 19, 2021
@sinkcup
Copy link
Member Author

sinkcup commented Oct 20, 2021

导入的数据中还有 迭代名称,需要先创建:#78

后续要做完善:先查询,没有再创建

@sinkcup
Copy link
Member Author

sinkcup commented Oct 20, 2021

查资料偶然发现有更简单包可以读取 csv

https://www.csrhymes.com/2021/01/31/testing-a-laravel-console-command.html

现在官方的是为了导入数据库,太复杂了,而本项目没有数据库

sinkcup added a commit that referenced this issue Oct 21, 2021
sinkcup added a commit that referenced this issue Oct 21, 2021
@sinkcup
Copy link
Member Author

sinkcup commented Oct 21, 2021

发现事项导出的 csv 缺少字段 ParentCode,导致没了 上下级关系。以反馈给相关同事。

我先在 csv 里加个字段用

image

@sinkcup
Copy link
Member Author

sinkcup commented Oct 21, 2021

自动化测试没问题,但运行报错。排查发现:新项目没有开启「史诗」,需要做提示

image

sinkcup added a commit that referenced this issue Oct 21, 2021
@sinkcup
Copy link
Member Author

sinkcup commented Oct 21, 2021

已增加提示:

image

sinkcup added a commit that referenced this issue Oct 21, 2021
sinkcup added a commit that referenced this issue Oct 21, 2021
@sinkcup
Copy link
Member Author

sinkcup commented Oct 21, 2021

要想创建时指定状态 ID,需要先查询 #80

@sinkcup
Copy link
Member Author

sinkcup commented Oct 21, 2021

发现 Project 类名不对,应该叫 ProjectSetting

sinkcup added a commit that referenced this issue Oct 21, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
@sinkcup
Copy link
Member Author

sinkcup commented Oct 22, 2021

报错:

image

排查发现:产品功能调整,默认不是「需求」,而是「用户故事」这种需求,导致拿不到状态列表。

和相关同事确认,需要增加 IssueTypeId,而文档还没更新。

sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
sinkcup added a commit that referenced this issue Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant