Comments (2)
We would like to solve this issue genericly for all objects.
Ideally all objects have a Name and an Id. When a new object is created the Id is initially derived from the Name with:
Id = (replace whitespace with underscore and special charachters with closes ANSI character. For example replace รก with a.)
When the name is changed, the Id is NOT changed. This way anyrhing referencing the object is not broken.
In the future we can add logic to refactor the Id's if modellers want to.
from crossmodel.
Retested this on latest main and the issue is a bit different now.
When creating new attributes on an Entity the first Id is always 'Attribute'. The next Id is 'Attribute1', next is 'Attribute12', next is 'Attribute 123'.
This is a bit different then expected. It should increase the counter. So first is Attribute, then Attribute2, then Attribute3, then Attribute4.
Also the word 'Attribute' is now fixed. No matter what the user enters in the form for adding attributes the Id always starts with 'Attribute'. This should be different, please see the previous comment for the expected behaviour:
We would like to solve this issue genericly for all objects.
Ideally all objects have a Name and an Id. When a new object is created the Id is initially derived from the Name with: Id = (replace whitespace with underscore and special charachters with closest ANSI character. For example replace รก with a.)
When the name is changed, the Id is NOT changed. This way anyrhing referencing the object is not broken.
In the future we can add logic to refactor the Id's if modellers want to.
from crossmodel.
Related Issues (18)
- Module not found: Error: Can't resolve 'utf-8-validate' / 'bufferutil' HOT 2
- Browser does not refresh after build HOT 2
- Attributes is not an array HOT 1
- Can't have multiple diagrams open at the same time HOT 2
- Form-view empty after refreshing the page HOT 2
- Update Theia and GLSP to new version HOT 6
- Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'classList') HOT 4
- is this project can achieve a requirement when right part is changed,corresponding left part also synchronized change too HOT 1
- can this project achieve similar requirement? HOT 4
- ERROR Error: Cannot update an unmounted root.
- GLSP Tool Pallete missing entity and relationship not working HOT 2
- Entity form/property view re-rendered on a change when text editor is open on same object HOT 1
- Dragging an entity file into a diagram sometimes doesn't add the entity but opens the file HOT 1
- Text editor is not handling indentation and - prefix within collections automatically HOT 2
- When moving any file of an open diagram perspective crashes the diagram HOT 1
- No "Open with" in the context menu if file is selected HOT 5
- Type 'VNode[]' is not assignable to type 'ReactFragment' HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crossmodel.