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

Updating entered_sref with Sample's REST doesn't update geom #524

Open
kazlauskis opened this issue Sep 26, 2024 · 0 comments
Open

Updating entered_sref with Sample's REST doesn't update geom #524

kazlauskis opened this issue Sep 26, 2024 · 0 comments

Comments

@kazlauskis
Copy link
Member

geom and lat/lon values are not updated when updating the entered_sref using the /services/rest/samples endpoint.

POST

{
    "values": {
        "entered_sref": "51, 1",
       //  ... other values
    }
}

GET

{
    "values": {
        "entered_sref": "51, 1",
        "geom": "POINT(111319.49079327357 6621293.722740169)",
        "lat": "51",
        "lon": "0.9999999999999998",
       //  ... other values
    }
}

PUT

{
    "values": {
        "entered_sref": "50, 2"
    }
}

GET

{
    "values": {
        "entered_sref": "50, 2",
        "geom": "POINT(111319.49079327357 6621293.722740169)", // ❌ not updated
        "lat": "51", // ❌ not updated
        "lon": "0.9999999999999998", // ❌ not updated
       //  ... other values

    }
}
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

No branches or pull requests

1 participant