-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
'suggest' parameter in combination with 'fformatter' parameter #811
Conversation
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.
KO: 500 internal server error
GET /vector/api/data/qdjango/3/buildings_2f43dc1d_6725_42d2_a09b_dd446220104a/?suggest=id_buildings%7Cala&ordering=id_buildings&formatter=1&fformatter=id_buildings
HTTP 500 Internal Server Error
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"result": false,
"error": {
"code": "servererror",
"message": "A error server is occured!",
"data": "id_buildings doesn't belongs from layer!"
}
}
docker logs:
2024-04-12 16:06:07 Internal Server Error: /vector/api/data/qdjango/3/buildings_2f43dc1d_6725_42d2_a09b_dd446220104a/
2024-04-12 16:06:07 Internal Server Error: /vector/api/data/qdjango/3/buildings_2f43dc1d_6725_42d2_a09b_dd446220104a/
2024-04-12 16:06:07 ERROR:django.request:Internal Server Error: /vector/api/data/qdjango/3/buildings_2f43dc1d_6725_42d2_a09b_dd446220104a/
|
@wlorenzetti I couldn't say why the search widget requested a wrong layer. Now the building relation search works properly: Can you test the autocomplete address search as well? It should return something, but instead I get no results: |
@Raruto I'm checking this issue, it's very strange, it seems to be due to qgis-server but I have to investigate further. |
@Raruto what version of qgis-server are you using? |
@wlorenzetti 3.28.5-Firenze |
Ok @Raruto I understand the problem |
Yes, that case was not handled in v37 either. Just to remind you, you should test your API changes against the JS code that comes from this PR #787, which depends entirely on the * ie. that always performs the same kind of HTTP call (regardless of widget type), thus making the overall logic much simpler 😉. |
@Raruto I just speak with @leolami and @volterra79, this feature didn't work at now. So I'll remove the |
As far as I'm concerned this PR is fine for fix #810 (a
Quite brutal solution, but ok. |
Closes: #810
With this PR now is possible apply
suggest
parameter for/vector/api/data
API REST in combination with 'fformatter' parameter.The
suggest
parameter will contain thefformatter
field name.