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

Fix SQL comments when func or table is pre-configured #1045

Merged
merged 4 commits into from
Dec 7, 2023

Conversation

nyurik
Copy link
Member

@nyurik nyurik commented Dec 7, 2023

When a SQL comment is set on a table or a function to customize tilejson, and that tbl/func is pre-configured as part of the config file, the comment was silently ignored. Now both table and function cases are handled correctly.

Also, update docs to not include function parameters - makes SQL example a bit simpler.

Thanks @jjcfrancisco for reporting!

Fixes: #1044

When comment is set on a table or a function, and that tbl/func is pre-configured as part of the config file, the SQL comment is currently ignored.

This commit does NOT fix the issue, only identifies it and adds an integration test. Note that it will pass at the moment, and once fixed, the expected result files will change.
@nyurik nyurik changed the title [WIP] Fixing comment bug Fix Ignored SQL Comments when fn/tbl is preconfigured Dec 7, 2023
@nyurik nyurik changed the title Fix Ignored SQL Comments when fn/tbl is preconfigured Fix SQL Comments when func or table is pre-configured Dec 7, 2023
@nyurik nyurik changed the title Fix SQL Comments when func or table is pre-configured Fix SQL comments when func or table is pre-configured Dec 7, 2023
@nyurik nyurik enabled auto-merge (squash) December 7, 2023 07:19
@nyurik nyurik merged commit f88db05 into maplibre:main Dec 7, 2023
18 checks passed
@nyurik nyurik deleted the comment-fix branch December 7, 2023 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON object in PostGIS function comment not generating the TileJSON as expected
2 participants