likyh commented on code in PR #4416:
URL:
https://github.com/apache/incubator-devlake/pull/4416#discussion_r1105898552
##########
config-ui/src/error/components/bp-upgrade/use-bp-upgrade.ts:
##########
@@ -90,27 +90,28 @@ export const useBPUpgrade = ({ id, onResetError }:
UseBPUpgradeProps) => {
};
const upgradeScope = async (plugin: string, connectionId: ID, scope: any) =>
{
+ // get data scope detail
+ const scopeDetail = await getScopeDetail(plugin, connectionId,
scope.options);
+ const scopeId = getScopeId(plugin, scopeDetail);
+
let transformationRule;
if (scope.transformation) {
// create transfromation template
transformationRule = await API.createTransformation(plugin, {
...scope.transformation,
- name: `upgrade-${plugin}-${connectionId}-${new Date().getTime()}`,
+ name: `upgrade-${plugin}-${connectionId}-${scopeId}`,
Review Comment:
Does it will duplicated if one scope in 2 different bp?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]