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(): menu支持大于两层 #3109

Merged
merged 1 commit into from
May 29, 2023
Merged

feat(): menu支持大于两层 #3109

merged 1 commit into from
May 29, 2023

Conversation

Nlicroshan
Copy link
Contributor

Refs DESIGNER_ROUTINE-651

依赖检查

组件之间的依赖声明,是微服务组件架构下的重要信息,请确保其正确性。

请勾选以下两组选项其中之一:

  • 本次 MR 没有使用上游组件(例如框架、后台组件等)的较新版本提供的特性。

或者:

  • 本次 MR 使用了上游组件(例如框架、后台组件等)的较新版本提供的特性。
  • 在对应的文件中更新了该上游组件的依赖版本(或确认了当前声明的依赖版本已包含本次 MR 使用的新特性)。

提交信息检查

Git 提交信息将决定包的版本发布及自动生成的 CHANGELOG,请检查工作内容与提交信息是否相符,并在以下每组选项中都依次确认。

破坏性变更是针对于下游使用者而言,可以通过本次改动对下游使用者的影响来识别变更类型:

  • 下游使用者不做任何改动,仍可以正常工作时,那么它属于普通变更。
  • 反之,下游使用者不做改动就无法正常工作时,那么它属于破坏性变更。

例如,构件修改了一个属性名,小产品 Storyboard 中需要使用新属性名才能工作,那么它就是破坏性变更。
又例如,构件还没有任何下游使用者,那么它的任何变更都是普通变更。

破坏性变更:

  • ⚠️ 本次 MR 包含破坏性变更的提交,请继续确认以下所有选项:
  • 没有更好的兼容方案,必须做破坏性变更。
  • 使用了 feat 作为提交类型。
  • 标注了 BREAKING CHANGE: 你的变更说明
  • 同时更新了本仓库中所有下游使用者的调用。
  • 同时更新了本仓库中所有下游使用者对该子包的依赖为即将发布的 major 版本。
  • 同时为其它仓库的 Migrating 做好了准备,例如文档或批量改动的方法。
  • 手动验证过破坏性变更在 Migrate 后可以正常工作。
  • 破坏性变更所在的提交没有意外携带其它子包的改动。

新特性:

  • 本次 MR 包含新特性的提交,且该提交不带有破坏性变更,并使用了 feat 作为提交类型。
  • 给新特性添加了单元测试。
  • 手动验证过新特性可以正常工作。

问题修复:

  • 本次 MR 包含问题修复的提交,且该提交不带有新特性或破坏性变更,并使用了 fix 作为提交类型。
  • 给问题修复添加了单元测试。
  • 手动验证过问题修复得到解决。

杂项工作:

即所有对下游使用者无任何影响、且没有必要显示在 CHANGELOG 中的改动,例如修改注释、测试用例、开发文档等:

  • 本次 MR 包含杂项工作的提交,且该提交不带有问题修复、新特性或破坏性变更,并使用了 chore, docs, test 等作为提交类型。

@Nlicroshan Nlicroshan requested a review from SailorF May 29, 2023 09:20
Refs DESIGNER_ROUTINE-651
@cypress
Copy link

cypress bot commented May 29, 2023

Passing run #6769 ↗︎

0 6 0 0 Flakiness 0

Details:

Merge 5401ca5 into ab2cf60...
Project: next-core Commit: ca628bbeca ℹ️
Status: Passed Duration: 00:36 💡
Started: May 29, 2023 9:51 AM Ended: May 29, 2023 9:51 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Merging #3109 (5401ca5) into master (ab2cf60) will decrease coverage by 0.04%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3109      +/-   ##
==========================================
- Coverage   93.25%   93.21%   -0.04%     
==========================================
  Files         296      296              
  Lines        9757     9759       +2     
  Branches     1846     1846              
==========================================
- Hits         9099     9097       -2     
- Misses        412      414       +2     
- Partials      246      248       +2     
Impacted Files Coverage Δ
packages/brick-kit/src/internal/menu.ts 89.28% <80.00%> (-2.29%) ⬇️

@SailorF SailorF merged commit b0eb259 into master May 29, 2023
@SailorF SailorF deleted the nlicro/DESIGNER_ROUTINE-651 branch May 29, 2023 10:10
@@ -111,6 +113,8 @@ export async function fetchMenuById(
}
const menuList = window.STANDALONE_MICRO_APPS
? await kernel.getStandaloneMenus(menuId, isPreFetch)
: kernel.getFeatureFlags()["three-level-menu-layout"]
? ((await InstalledMicroAppApi_getMenusInfo(menuId)).menus as MenuRawData[])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nlicroshan v3 也需要同步一下哦

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const menuList = window.STANDALONE_MICRO_APPS
? getMenusOfStandaloneApp(menuId, runtimeContext.app.id, helpers)
: ((
await InstanceApi_postSearch("EASYOPS_STORYBOARD_MENU", {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

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

Successfully merging this pull request may close these issues.

3 participants