Skip to content

[Server] Remove Organization.is_expired from datamodel #13330

Description

@FirelightFlagboy

Currently when an admin-sys want to expired an organization, it need to set is_expired in the datamodel to true but _expired_on is not updated.

We should instead only rely on _expired_on since we can achieve the same behavior as with is_expired.

This does not need to break the existing API has we can easily set _expired_on to now() when patching is_expired is true.
And similarly, we can return is_expired if the date is due.

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

    Labels

    A-ServerArea: Parsec ServerI-DataImpact: data used to persist informationI-PostgresqlImpact: Postgresql issueI-PythonImpact: Python-related stuffenhancementImprove functionality, potentially changing behaviorgood first issueGood for newcomers

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions