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

HA-399 deprecate cookies #27

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

thingscouldbeworse
Copy link

@thingscouldbeworse thingscouldbeworse commented Feb 24, 2025

Part of HA-399

Description Of Changes

Add validators to the Cookies model and each model that uses a .cookies property warning of deprecation

Code Changes

  • [ ]

Steps to Confirm

  • [ ]

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Documentation Updated
  • Issue Requirements are Met
  • Relevant Follow-Up Issues Created
  • Update CHANGELOG.md

@thingscouldbeworse thingscouldbeworse changed the title H399 deprecate cookies HA-399 deprecate cookies Feb 25, 2025
Copy link

@adamsachs adamsachs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my expectation was that we'd actually remove and ignore cookies being specified on these models. ideally we wouldn't cause validation errors, but we'd provide warnings (as you're doing) and then actually ignore the cookies values.

as part of that, i'd fully remove the Cookies model class.

does that makes sense?

Copy link

@adamsachs adamsachs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, looks solid @kirk!

i do think it'd be good to test how this actually integrates/manifests with application use, i.e. within fides. you should be able to do that by pinning the fideslang dep in fides' requirements.txt to a git commit. you could also manually push an alpha tag to this fideslang branch and that'll get you a prerelease packge of fideslang on pypi that you can reference from requirements.txt of fides

@@ -8,6 +8,7 @@
from datetime import datetime
from enum import Enum
from typing import Annotated, Dict, List, Optional, Union, Any
from warnings import warn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, how does this work? have we tested how this actually manifests in application use?

i don't think we use this builtin anywhere else, so it'd just be good to verify that it surfaces in the way you'd want/expect.

i think the two things to test would be specifying a cookies attribute on an API call to the /systems endpoint, and using the CLI to push/pull a system definition with cookies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants