this is not official way, but we practise grupping items in variables definition
export const ITEM_SERVICE = ‘ItemService’; - this is part of organization, it can be close to organization variables

更新文档:\docs\migration\4_0.md

ToggleStatusComponent

  • Removed FeatureConfigService from constructor.

DeleteItemComponent

  • Removed FeatureConfigService from constructor.

deprecatedParams should contain parameter to remove

the meaning of “deprecatedParams”: this block should contain all the parameters used in deprecated constructors( I mean the deleted constructor )?

it is like “old constructor”.

其他同事完成修改后,git pull origin epic/organization-deprecations to update your branch

一个潜在的 conflict 问题

we define all migration related constants centrally in file: projects\schematics\src\shared\constants.ts
Suppose both colleague A and B are working on different Component,which have same parameter in constructor signature, let’s say ItemService.
Since A and B are working in parallel, both declared ITEM_SERVICE = ‘ItemService’ in their local constants.ts.
and A push his change first. But B wasn’t aware of A’s work. When B tries to merge his PR, B will find there’s some conflict. And B has to manually resolve the conflict. Do I understand correctly?

答案

you can have 2 kinds of conflict like:

  1. git recognized that both developers changed the same lines, and you must resolve it manually by choosing version (or both)

  2. both people added the same variable in the same file, but in different places so git will not see any problem, but your IDE (eslint) should.

create own branch based on epic/organization-deprecations

so you create an own branch fix/GH-11530, and wants to merge commit into epic/organization-deprecations.

SAP Spartacus deprecation for 4.0 需要注意的一些事项相关推荐

  1. 如何安装 SAP Commerce Cloud,以便让 SAP Spartacus 使用

    官网链接:https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2011/ 分别下载SAP Commerce Cloud ...

  2. SAP Spartacus 服务器端渲染找不到 index 视图的问题

    我基于 SAP Spartacus 源代码级别 4.0 版本进行 SSR 调试时,遇到如下错误:在 dist/storefrontapp 文件夹下面,找不到 index 视图: Error: Fail ...

  3. SAP Spartacus 4.0 deprecation 之一 - i18next-xhr-backend

    这个库文件在其 Github 仓库上提到,已经 deprecated 了: 在 SAP Spartacus Schematics 里提到,会被 i18next-http-backend 替换: 在 4 ...

  4. SAP Spartacus 4.0 的技术变化

    在您迁移到 4.0 版库之前,我们强烈建议您切换到新的应用程序结构和新的功能库. 在多个小步骤中进行迁移更容易(迁移到新的应用程序结构,切换到提取的功能库,然后迁移到 4.0),您可以确保在每一步之后 ...

  5. 为什么 SAP Spartacus 4.0 源代码版本读取不到 CX_BASE_URL 环境变量的值?

    SAP Spartacus 4.0 源代码版本: 如下图所示,遇到了 404 错误: 错误的 url:可以看到端口号变成了 4200: http://localhost:4200/occ/v2/ele ...

  6. SAP Spartacus 3.0 的一些变化

    SAP Spartacus 确实使用到了Bootstrap这个框架: Technical Changes in Spartacus 3.0 Breaking Changes Translations ...

  7. SAP Spartacus 4.0 版本因为 hamburger 依赖导致构建出错的问题

    build from Schematics 遇到错误消息: SassError: Undefined function. https://github.com/SAP/spartacus/issues ...

  8. SAP Spartacus 升级时关于 schematics 的更新

    When upgrading Spartacus to a new major version (for example, from 3.x to 4.0), the Spartacus migrat ...

  9. SAP Spartacus central Travis build的lint环节

    起始命令: Running styleslint 260yarn run v1.22.5 261$ stylelint "{projects,feature-libs}/**/*.scss& ...

最新文章

  1. 为什么 Linux 需要 Swapping
  2. pyhton 安装pip 以及 numpy (解决python:ModuleNotFoundError:No module named numpy 等类似缺包问题
  3. 找工作实用书《LeetCode 题解》(附pdf)
  4. java如何使显示字符下标_Java如何在 Word 中设置上、下标
  5. 分子动力学模拟软件_基于GPU的分子动力学软件ACEMD的简介与安装
  6. 软件实施培训前的准备工作
  7. [剑指offer]面试题第[59-2]题[JAVA][队列的最大值][暴力][双端队列]
  8. python中的保护对象数据
  9. java容器三:HashMap源码解析
  10. 延迟任务调度系统—技术选型与设计(上篇)
  11. DataGradView操作之,列头右键菜单隐藏和显示字段功能
  12. 字符串中第一次重复出现的数及第一次不重复出现的数
  13. php截取等长UFT8中英文混合字串
  14. 世界上有多少数据?应该如何保护?
  15. mysql sniffer 源码,MySQL Sniffer 是一个基于 MySQL 协议的抓包工具
  16. 跨境物流主要流程是什么样?
  17. 股票交易接口Java Serializable接口实现问题?
  18. [GAMES101]现代计算机图形学课程总结3:Shading
  19. Python 实现 Swagger yaml 格式 api 文档合并
  20. 一个大数据架构师应该掌握的技能

热门文章

  1. SharePoint 2010 大中小架构的部署
  2. 小黑小波比.Ubuntu下的截图
  3. PHP搭建OAuth2.0
  4. Js数据类型之——Date
  5. 解决无法删除表,提示被外键约束引用
  6. MPLS ×××跨域实现之OPTION B配置讲解
  7. 独自学习/组团学习,什么情境下采用效果更好?
  8. 博客目录(随时删除)
  9. Yii学习笔记之二(使用gii生成一个简单的样例)
  10. input中radio用法