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

Enable renaming object name from Object Tree #619

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arjxn-py
Copy link
Member

@arjxn-py arjxn-py commented Dec 2, 2024

Shall close #609

rename.mov

@arjxn-py arjxn-py added the enhancement New Feature or improvement label Dec 2, 2024
@arjxn-py arjxn-py changed the title Enable editing object name from Object Tree Enable renaming object name from Object Tree Dec 2, 2024
Copy link
Contributor

github-actions bot commented Dec 2, 2024

Integration tests report: appsharing.space

Copy link
Contributor

github-actions bot commented Dec 2, 2024

Preview PR at appsharing.space

@arjxn-py
Copy link
Member Author

arjxn-py commented Dec 2, 2024

There's a small issue

@trungleduc
Copy link
Member

should the rename input be activated with a single click? And you need to propagate the change to all downstream operators.

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks a lot for starting this! 🚀

I believe we should tackle #200 first.

objectName as string
);
if (obj) {
this.props.cpModel.sharedModel?.updateObjectByName(
Copy link
Member

@martinRenou martinRenou Dec 2, 2024

Choose a reason for hiding this comment

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

We not only need to update the specific object, but we also need to go through all objects and see if they depend on it. All objects have a dependency parameter which is a list of object it depends on, by name. And operators are applying their operation based of the objects names.

I believe it's easier to tackle this renaming task once #200 is done. We wouldn't need to do that work I'm describing above because the list of dependencies would be a list of UUIDs. And operators would be defined based of UUIDs.

I would suggest we put this renaming PR on hold while #200 is not tackled.

@arjxn-py
Copy link
Member Author

arjxn-py commented Dec 2, 2024

And you need to propagate the change to all downstream operators.

Thanks @trungleduc
Yeah, I didn't thought about it, i agree with @martinRenou to tackle #200 first

@martinRenou martinRenou marked this pull request as draft December 2, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New Feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow renaming objects from the tree view?
3 participants