openml / openml/OpenML

Filtering a newly uploaded data set by tag does not work

Open
#477 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
755
Forks
128
PR merge metrics
No merged PRs in 30d

Description

On the test server test.openml.org I just created a dummy data set with tag shark-unit-test. It's ID is 850. I can query the data set like this:
https://test.openml.org/api/v1/json/data/850?api_key=...
and obtain

{
  "data_set_description": {
    "id": "850",
    "name": "unit-test-data",
    "version": "1",
    "description": "for unit testing only, please ignore",
    "format": "arff",
    "upload_date": "2017-10-11T09:34:53",
    "licence": "Public",
    "url": "https://test.openml.org/data/v1/download/10434/unit-test-data.arff",
    "file_id": "10434",
    "tag": "shark-unit-test",
    "visibility": "public",
    "status": "in_preparation",
    "md5_checksum": "b2e0ce1cae0f67aa6238ce4343436340"
  }
}

so the tag is present. Then I filter by tag using the web interface:
https://test.openml.org/api/v1/json/data/list/tag/shark-unit-test?api_key=...
and get an empty result:

{
  "error": {
    "code": "372",
    "message": "No results"
  }
}

Is this because of the status in_preparation? That's very inconvenient for unit testing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the dataset lookup at /api/v1/json/data/850 and the tag query at /api/v1/json/data/list/tag/shark-unit-test, then trace the API handler for tag filtering. Check how the in_preparation status is treated and verify that the tag query returns dataset 850 when the behavior is corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.