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

maintain anchor point when tree changes #807

Conversation

echoyang7
Copy link
Collaborator

Maintain anchor point when:

  • Modify the name of group or data
  • Delete or delete group and data in batches
  • Copy、cut、duplicate group or data
  • Save flow to activated group

if not tree:
return
for node in tree:
if node['id'] == id:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

open_nodes和tree的内容在前端已经保证了状态一一对应,不会存在你所说的那种问题

for node in tree:
if node['id'] == id:
return node
if node['id'] not in self.open_nodes:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

提前

@echoyang7 echoyang7 merged commit 72f6489 into Meituan-Dianping:master Dec 5, 2023
9 checks passed
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