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

Vector info bug #359

Open
anikaweinmann opened this issue Jul 20, 2022 · 2 comments
Open

Vector info bug #359

anikaweinmann opened this issue Jul 20, 2022 · 2 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@anikaweinmann
Copy link
Member

If a vector has no database connection because it has no tabel, actinia returns an error by requesting the information of the vector map:

# test_random_vect created with e.g. grass grassdb/nc_spm_08/PERMANENT/ --exec v.random output=test_random_vect npoints=10

curl -u ${AUTH} ${URL}/locations/nc_spm_08/mapsets/PERMANENT/vector_layers/test_random_vect | jq
{
    ....
    {
      "executable": "v.info",
      "id": "2",
      "mapset_size": 375,
      "parameter": [
        "map=test_random_vect@PERMANENT",
        "-h"
      ],
      "return_code": 0,
      "run_time": 0.10043096542358398,
      "stderr": [
        ""
      ],
      "stdout": "COMMAND: v.random output=\"test_random_vect\" npoints=10 layer=\"-1\" zmin=0.0 zmax=0.0 column_type=\"double precision\"\nGISDBASE: /home/user/actinia/grassdb\nLOCATION: nc_spm_08 MAPSET: PERMANENT USER: user DATE: Wed Jul 20 12:05:35 2022\n"
    },
    {
      "executable": "v.info",
      "id": "3",
      "mapset_size": 375,
      "parameter": [
        "map=test_random_vect@PERMANENT",
        "-c"
      ],
      "return_code": 1,
      "run_time": 0.10044598579406738,
      "stderr": [
        "ERROR: Database connection for map <test_random_vect@PERMANENT> is not defined in DB file",
        ""
      ],
      "stdout": ""
    }
  ],
  "progress": {
    "num_of_steps": 3,
    "step": 3
  },
  "resource_id": "resource_id-9feaee6d-8abf-4253-8437-6a5ee2556d0d",
  "status": "error",
  "time_delta": 0.4676177501678467,
  "timestamp": 1658318803.6137428,
  "urls": {
    "resources": [],
    "status": "http://...:8088/api/v3/resources/actinia-gdi/resource_id-9feaee6d-8abf-4253-8437-6a5ee2556d0d"
  },
  "user_id": "actinia-gdi"
}

The endpoint should not return an error if no table is set for the vector map.

@anikaweinmann anikaweinmann added the bug Something isn't working label Jul 20, 2022
@anikaweinmann anikaweinmann added the good first issue Good for newcomers label Jul 20, 2022
@linakrisztian linakrisztian moved this to Waiting for / Review in progress in actinia endurance run Jul 28, 2022
@anikaweinmann anikaweinmann moved this to Waiting for / Review in progress in actinia endurance run Aug 3, 2022
@linakrisztian linakrisztian moved this to Waiting for / Review in progress in actinia endurance run Aug 3, 2022
@linakrisztian linakrisztian moved this from Waiting for / Review in progress to In Progress in actinia endurance run Aug 3, 2022
@anikaweinmann anikaweinmann moved this from In Progress to Parking in actinia endurance run Jan 5, 2023
@linakrisztian linakrisztian moved this from Parking to Waiting for / Review in progress in actinia endurance run Jan 16, 2023
linakrisztian added a commit that referenced this issue Jan 16, 2023
* added case distinction for no-single-multiple layers
linakrisztian added a commit that referenced this issue Jan 16, 2023
linakrisztian added a commit that referenced this issue Jan 16, 2023
Revert "Fix Vector info bug #359 (#364)"

This reverts commit 652982f.
@linakrisztian
Copy link
Member

New pull request: #408 (old one #364 )

@linakrisztian linakrisztian moved this from Waiting for / Review in progress to Parking in actinia endurance run Jan 16, 2023
@linakrisztian
Copy link
Member

tbd:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants