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

Teams setup schema #4944

Merged
merged 3 commits into from
Jan 7, 2025
Merged

Teams setup schema #4944

merged 3 commits into from
Jan 7, 2025

Conversation

aerosol
Copy link
Member

@aerosol aerosol commented Jan 7, 2025

Once #4943 is merged

@aerosol aerosol force-pushed the teams-setup-schema branch from eebd50a to 10ebb31 Compare January 7, 2025 11:11
@aerosol aerosol requested a review from zoldar January 7, 2025 11:11
@@ -25,6 +25,9 @@ defmodule Plausible.Teams.Team do
field :accept_traffic_until, :date
field :allow_next_upgrade_override, :boolean, default: false

field :setup_complete, :boolean, default: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: what's the purpose of the boolean if there's also a timestamp? Would the presence of the timestamp, or lack thereof, not provide the same information as the boolean?

Copy link
Member Author

Choose a reason for hiding this comment

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

Boolean is straightforward to match, no dealing with null tri-state. Timestamp is just for troubleshooting/auditing purposes for now and might go away in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

Another way of looking at it: the app never cares about the actual date specifics.

@aerosol aerosol added this pull request to the merge queue Jan 7, 2025
Merged via the queue into master with commit 5f1de88 Jan 7, 2025
8 checks passed
@aerosol aerosol deleted the teams-setup-schema branch January 7, 2025 11:54
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.

3 participants