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

Assign layer as request param for queries #1001

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

dbauszus-glx
Copy link
Member

Queries which have the layer param need to access the layer object which may be constructed from templates. The query module gets the layer from the getLayer mod. The layer object will replace the req.params.layer string and be accessible in query methods.

A query may access templates as referenced by fields. The templates must be available as string and not be loaded from a src.

Copy link

sonarcloud bot commented Nov 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@simon-leech simon-leech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the described bug for me now :)

@dbauszus-glx dbauszus-glx added the Bug A genuine bug. There must be some form of error exception to work with. label Nov 14, 2023
Copy link
Member

@cityremade cityremade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested, layer query back to normal 👍

@RobAndrewHurst RobAndrewHurst merged commit 1f34a33 into GEOLYTIX:main Nov 14, 2023
5 checks passed
@dbauszus-glx dbauszus-glx deleted the req-layer-param branch January 29, 2024 09:35
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants