-
Notifications
You must be signed in to change notification settings - Fork 25
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
Allow for layer entry without query [featureSet / featureLookup] configuration #1793
base: minor
Are you sure you want to change the base?
Conversation
I need this documented better. When I recreate this setup with retail places I see errors and errors. |
@cityremade I updated the layer entries method documentation. http://localhost:3000/xyz/mapp/module-_ui_locations_entries_layer.html In the example the field is an array field which has an array of feature ids for only those features to be rendered. |
Regarding use cases, |
No; The layer toggle should be disabled. I will make a change to method to disable the toggle. |
Screencast.from.2025-01-07.17-34-52.webm@cityremade can you give this another test. The display toggle should be disabled when there is a featureSet or featureLookup but no data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I am happy with this.
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
1293524 | Triggered | Generic Password | d75bd51 | public/views/login/_login.js | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
@dbauszus-glx The toggle seems to remain enabled if featureLookUp is true and a query is supplied but the query returns no data, If you check id=1 on |
@AlexanderGeere This should now be fixed in the last commit. 159d2c9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good With me now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a few issues with this I think:
- A layer that is a direct clone does not have the dataviews that are on the original layer.
IE if the original layer was OA and had an OA tableview, its not show in the entry version of this layer. Should it be? - When selecting a location from the cloned whole layer, queries in the infoj fail as they aren't passing the right
layer
param.
http://localhost:3000/x/api/query?id=1020001287&template=query&locale=UK&layer=oa%7Csites!796
You see here it adds the layer param asoa|sites!796
which then fails the layer lookup on the query.
@simon-leech Dataviews are not supported, editing is not yet supported. We will look at editing in the future but I think dataviews in layer in location from another layer is too much nesting. I will look at the selection issue. |
@simon-leech The key for multiple layers from the same mapview layer will be assigned from the OL UID which is guaranteed to be unique in the layer entry method. |
Quality Gate passedIssues Measures |
The layer entry method as the sucessor to the mvt_clone method should not be limited to featureSet or featureLookup entries.
The featureSet and featureLookup require data to be provided as an array from either a field, inside the entry configuration, or from a [parameterised] query.
A layer entry without the featureSet or featureLookup flag should show the all features as defined by the layer filter.
Screencast.from.2025-01-03.12-40-54.webm