Skip to main content

A way to update downstream attributes following attribute renaming would be a really nice feature. It is already done for parameters so why not put in the work to extent it to attributes as well.

For example a user has workspace which includes several attributes which are coming from a JSONFlattner - after creating several transformers downstream using the newly created attributes the user decides that he wants to add a prefix to the attributes. When adding this prefix the rest of the workspace breaks because none of the references have been updated to reflect the changes. 

Probably the more common situation is when an input data set gets an updated schema - e.g., Maybe “Layer” becomes “layerName”. If I update my reader then the rest of my workspace will break. At this point the author has two choices, either, rename all the attributes in the process to match the new names (probably good practice) or just add one AttibuteRenamer at the start of the process to rename the new names back to the old names so the workspace runs again. 

There are quite a few situations where I think having this kind of functionality would do a lot to improve workspaces readability with little effort on the authors part. For example often when building a workspace it’s pretty common to just reuse the out-out-the box default attribute names (e.g., _area). Then once you’ve finished the bulk of the work maybe you see that it’s unclear what “_area” actually is so you want to rename it so something like foorprint_area - only to find our you’ve used it in several places. Perhaps you decide you can’t be bothered to rename it.

This kind of functionally can be used to help promote better readability and better practice with attribute naming. It would also make it a lot easier for AI to understand sections of workspaces as well - (footprint_area x building_height) is a lot easier for an AI to understand what is happening with some context. 

The way I see it happening would be either completely automatic (similar to User Parameters) or a prompt with a list of affected transformers and which ones to update. 

 

Updated idea statusNewArchived
Idea merged into:

All the votes from this idea have been transferred.