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

Ensure that each entry has a key. #1325

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

dbauszus-glx
Copy link
Member

Each entry should be assigned a key in the infoj iteration if not already assigned.

The key can be an entry.field which is unique. Otherwise a running index can be assigned within the iteration.

The key should be used primarily as a data_id to ensure that similar elements such as checkboxes have a unique data-id within their location.view context.

@dbauszus-glx dbauszus-glx added Bug A genuine bug. There must be some form of error exception to work with. Feature New feature requests or changes to the behaviour or look of existing application features. Code Issues related to the code structure and performance. and removed Feature New feature requests or changes to the behaviour or look of existing application features. labels Jun 14, 2024
Copy link

sonarcloud bot commented Jun 14, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@cityremade
Copy link
Member

could entry index within infoj[] be used as fallback key?

@dbauszus-glx
Copy link
Member Author

The problem with the index is that it may not be known. The key is known and may be used in a plugin to access a data_id element.

@dbauszus-glx dbauszus-glx merged commit 1baee6b into GEOLYTIX:main Jun 17, 2024
5 checks passed
@dbauszus-glx dbauszus-glx deleted the entry-key-dataid branch September 9, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A genuine bug. There must be some form of error exception to work with. Code Issues related to the code structure and performance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

infoj entry key as unique identifier
3 participants