Skip to content

Cookie is only returned for a testing flag set via GET param if that flag is queried during the request #80

Open
@matthewryanscott

Description

@matthewryanscott

Given:

  • myflag is set up with testing=True
  • Page A never calls waffle.flag_is_active(request, 'myflag'), and none of the templates it loads have {% flag myflag %}
  • Page B makes that function call, and/or loads a template with that tag.
  • Browser has either dwft_myflag cookie as False, or does not have that cookie.

Then (current behavior):

  • Request page A with GET param ?dwft_myflag=1
  • dwft_myflag cookie is never set to True
  • Request page B without GET param, and myflag is treated as False

Desired behavior:

  • Request page A with GET param ?dwft_myflag=1
  • dwft_myflag cookie is set to True
  • Request page B without GET param, and myflag is treated as True

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions