Skip to content

Cellect ignores subject_set #543

Description

@alianos-

So I am doing two requests with different subject sets, but the response is the same

In truth subject_set1 contains subject1+subject2 and the subject_set2 contains subject3+subject4

Remote Address:192.168.1.75:3000
Request URL:http://192.168.1.75:3000/api/subjects?sort=cellect&workflow_id=1&subject_set_id=2
Request Method:GET
Status Code:200 OK

Request Headers
Accept:application/vnd.api+json; version=1
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8
Authorization:Bearer 89291272d5bc5ab682ba6028aeda611db60bbab63188fcd024737260cf4961e5
Connection:keep-alive
content-type:application/json
Cookie:_Panoptes_session=SnNkVGFvRVhNbTM3Q0R4dFVyaUhvZElkRE0rSzRLTG1hZVh5cTVhaVZlQk1UWmlyNlJUazFNOG5HU000ZDFGUVM1dGY0dzhwRGI5eE44dzdMdFFqbU1Bcmk0Z3dhTTNwRVhyL2NmMEtKRlN6SWlDNjB5Z3FZMm9pOE5DRWxsY2ItLWdGVi9Gb3VpM0VIMFpWNVVXd0hQYkE9PQ%3D%3D--97b21ab191e52c8ad8aaf5d133538f423f7420bf
Host:192.168.1.75:3000
Origin:http://localhost:8383
Referer:http://localhost:8383/PanoptesUI/index.html
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36

Query String Parameters
view URL encoded
sort:cellect
workflow_id:1
subject_set_id:2

Response Headers
Access-Control-Allow-Credentials:true
Access-Control-Allow-Methods:GET, POST, PUT, DELETE, OPTIONS, PATCH
Access-Control-Allow-Origin:http://localhost:8383
Access-Control-Expose-Headers:Last-Modified
Access-Control-Max-Age:1728000
Cache-Control:max-age=0, private, must-revalidate
Content-Type:application/vnd.api+json; version=1; charset=utf-8
Last-Modified:Tue, 17 Feb 2015 13:56:24 GMT
P3P:CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Set-Cookie:_Panoptes_session=VDdPRDFkQ2RLUTZLcXNLSEs2L1ZJSVNna2VFTmc3ZGhGN1R5bVRMa1BGSW8wSUc1UnQyWktvem5weU9iSnd5RVFLZmJ3Q09GOGduS0VJdTBMd3g1aHprbjZYVk41ZGtqaXYyVHJFMTRFYmlBUWh1dHVlc0ZqSUQySElSaFFPRFctLUFXNTVIb0o0SzhOa2w5YVNzNlAvQ0E9PQ%3D%3D--aaab6bec47f3937231ee9d787cdaa2707e013e98; path=/; HttpOnly
Transfer-Encoding:chunked
Vary:Origin
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-Request-Id:f20b347a-4221-419d-8df5-272a33c84b40
X-Runtime:0.204000
X-XSS-Protection:1; mode=block

The second request is pretty much the same with only the subject_set chaning

[...]
Request URL:http://192.168.1.75:3000/api/subjects?sort=cellect&workflow_id=1&subject_set_id=1
[...]

Response in both cases

{
    "subjects": [{
        "id": "5",
        "metadata": {
            "coordinates": "0"
        },
        "locations": [{
            "text/plain": "https://test_bucket_path/1/0/e0b8525d-c0e3-4dd4-a41a-275e1053d3d0.txt"
        }],
        "zooniverse_id": null,
        "created_at": "2015-02-17T13:56:24.296Z",
        "updated_at": "2015-02-17T13:56:24.296Z",
        "links": {
            "project": "1"
        }
    }, {
        "id": "4",
        "metadata": {
            "coordinates": "0"
        },
        "locations": [{
            "text/plain": "https://test_bucket_path/1/0/5558e3b2-7ff8-4418-8e71-abd494da4953.txt"
        }],
        "zooniverse_id": null,
        "created_at": "2015-02-17T13:56:23.643Z",
        "updated_at": "2015-02-17T13:56:23.643Z",
        "links": {
            "project": "1"
        }
    }, {
        "id": "2",
        "metadata": {
            "coordinates": "0"
        },
        "locations": [{
            "text/plain": "https://test_bucket_path/1/0/e756244d-e204-417a-95af-ec6060180586.txt"
        }],
        "zooniverse_id": null,
        "created_at": "2015-02-17T13:56:22.077Z",
        "updated_at": "2015-02-17T13:56:22.077Z",
        "links": {
            "project": "1"
        }
    }, {
        "id": "1",
        "metadata": {
            "coordinates": "0"
        },
        "locations": [{
            "text/plain": "https://test_bucket_path/1/0/4a242d65-0dff-4a3b-8b9d-49dfd7687c65.txt"
        }],
        "zooniverse_id": null,
        "created_at": "2015-02-17T13:56:17.945Z",
        "updated_at": "2015-02-17T13:56:17.945Z",
        "links": {
            "project": "1"
        }
    }],
    "links": {
        "subjects.project": {
            "href": "/projects/{subjects.project}",
            "type": "projects"
        }
    },
    "meta": {
        "subjects": {
            "page": 1,
            "page_size": 20,
            "count": 4,
            "include": [],
            "page_count": 1,
            "previous_page": null,
            "next_page": null,
            "first_href": "/subjects",
            "previous_href": null,
            "next_href": null,
            "last_href": "/subjects"
        }
    }
}

Listing subject sets

{
    "subject_sets": [{
        "id": "2",
        "display_name": "Portsmouth",
        "set_member_subjects_count": 2,
        "created_at": "2015-02-17T13:56:39.922Z",
        "updated_at": "2015-02-17T14:27:00.863Z",
        "links": {
            "project": "1",
            "workflow": "1"
        }
    }, {
        "id": "1",
        "display_name": "Winchester",
        "set_member_subjects_count": 2,
        "created_at": "2015-02-17T13:56:34.834Z",
        "updated_at": "2015-02-17T14:26:56.640Z",
        "links": {
            "project": "1",
            "workflow": "1"
        }
    }, {
        "id": "3",
        "display_name": "Expert Set for main workflow",
        "set_member_subjects_count": 0,
        "created_at": "2015-02-17T14:26:48.670Z",
        "updated_at": "2015-02-17T14:26:48.670Z",
        "links": {
            "project": "1",
            "workflow": "1"
        }
    }],
    "links": {
        "subject_sets.project": {
            "href": "/projects/{subject_sets.project}",
            "type": "projects"
        },
        "subject_sets.workflow": {
            "href": "/workflows/{subject_sets.workflow}",
            "type": "workflows"
        }
    },
    "meta": {
        "subject_sets": {
            "page": 1,
            "page_size": 20,
            "count": 3,
            "include": [],
            "page_count": 1,
            "previous_page": null,
            "next_page": null,
            "first_href": "/subject_sets",
            "previous_href": null,
            "next_href": null,
            "last_href": "/subject_sets"
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions