[Feature] Improve "Rescript Message" for methods where the VI name has changed. #136
Replies: 3 comments 1 reply
-
Steering committee discussion: Is this more a refactor of classes in general? Some conclusions: If not in memory, all bets are off. |
Beta Was this translation helpful? Give feedback.
-
I think this is a great idea. The current workflow for renaming is bad. There is a rabbit hole one could potentially go down if you tried to initiate the rename from the payload method. But even if the functionality could only be initiated from the existing message class, that would be very helpful. |
Beta Was this translation helpful? Give feedback.
-
I think Sam Taggart may have a rescripting tool that does this. I've reached out to him for information. This is enough of a pain point that it's worth pursuing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary / Description
If the method that is wrapped in the Do.vi has a different name than the message, rescript the message to the new name changing: the message class name, the send VI name, folder location on disk, and icons.
Motivation / Use Case
I had a customer change the desired name of a field in the UI. Although I could have just changed it in the UI and not the underlying code, it was a different enough change that it would be confusing for anyone (including myself in 6 months) inheriting the maintenance of the code. This caused methods and messages needing to be renamed.
Proposed Solution / Feature Details
Fix the "Rescript Message" to take into account the change in the name of the method in it's Do.vi and base everything off that. Also, cleanup orphaned folders the old message was in if empty after moving the message class.
Alternatives / Workarounds (optional)
Painful renaming and editing of icons.
Possible Implementation (optional)
No response
Additional Context (optional)
No response
Beta Was this translation helpful? Give feedback.
All reactions