Skip to content

Decouple site expiry from code and database #32

@supermacro

Description

@supermacro

Context

When a admin user goes through the site registration flow, they have to prove ownership of the site within a predefined number of days.

Problem

The "predefined number of days" is currently hard-coded into the codebase.

See here:

const expiryDay = d.created_at.getDate() + 7

This means that if business requirements change, I need to submit a PR to update that hard-coded value and then deploy the change.

Desired Outcome

Figure out a way to be able to dynamically update the expiry threshold in any environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions