Skip to content

Project tags lost on pagination #304

@adammcmaster

Description

@adammcmaster

This is probably a wider issue affecting the ResultPaginator in other cases, but unfortunately I don't have time to debug it any further myself.

When paging through projects, the client drops the tags argument when it requests subsequent pages:

import os

os.environ['PANOPTES_DEBUG'] = 'True'

from panoptes_client import Project

ps = Project.where(tags='astronomy', launch_approved='true')
for p in ps:
    print(p.display_name)
DEBUG:panoptes_client:params={'tags': 'astronomy', 'launch_approved': 'true'}
DEBUG:redo:attempt 1/5
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.zooniverse.org:443
DEBUG:urllib3.connectionpool:[https://www.zooniverse.org:443](https://www.zooniverse.org/) "GET /api/projects?tags=astronomy&launch_approved=true HTTP/1.1" 200 None
DEBUG:redo:attempt 1/1
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.zooniverse.org:443
Galaxy Zoo: 3D
SETI Live
Ice Hunters
Planet Four: Terrains
Radio Galaxy Zoo
Andromeda Project
Planet Four Ouroboros
Disk Detective 1.0
Moon Zoo
Asteroid Zoo
Solar Stormwatch
Planet Hunters
Sunspotter
Comet Hunters
Gravity Spy
Poppin' Galaxy
Astronomy Rewind
Milky Way Project
Backyard Worlds: Planet 9
Supernova Hunters
DEBUG:urllib3.connectionpool:[https://www.zooniverse.org:443](https://www.zooniverse.org/) "GET /api/projects?page=2&launch_approved=true HTTP/1.1" 200 None
DEBUG:redo:attempt 1/1
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.zooniverse.org:443
Floating Forests v1
Radio Galaxy Zoo
Andromeda Project
Bat Detective

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions