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

feat(数据管理): 支持定时数据导入 #1395

Closed
wants to merge 1 commit into from

Conversation

fjc0k
Copy link
Contributor

@fjc0k fjc0k commented Sep 27, 2019

解决的问题

Swagger 数据定时导入是一个常见的需求,YApi 目前可通过 设置 里的 Swagger自动同步插件 实现。

但其存在以下问题或局限:

  • 受限于插件机制,功能上虽属于数据管理模块,但放在了设置里面
  • 不支持在一个项目里面建立多个定时导入任务
  • 类 cron 的语法虽然灵活但是存在一定学习成本
  • 一些社区反馈的问题也暂时没有得到修复

以上,本 PR 在 数据管理 模块下实现了更易用的 定时数据导入 功能,如图:

image

待解决的问题

  • 目前数据导入 完全覆盖 模式的表现并不符合直觉,社区也提出了一些对这个模式的困惑,我觉得完全覆盖就应该删除所有再新增,毕竟还有智能模式。
  • 作为过渡,本 PR 并未移除设置中的 Swagger 自动同步 插件,建议未来版本移除。

@fjc0k
Copy link
Contributor Author

fjc0k commented Sep 27, 2019

@hellosean1025 你对这个 完全覆盖 模式是什么看法呢?

目前数据导入 完全覆盖 模式的表现并不符合直觉,社区也提出了一些对这个模式的困惑,我觉得完全覆盖就应该删除所有再新增,毕竟还有智能模式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants