Skip to content

DB validator can upgrade domain state & send status emails automagically#213

Closed
sydneyli wants to merge 5 commits intomasterfrom
send-status-emails
Closed

DB validator can upgrade domain state & send status emails automagically#213
sydneyli wants to merge 5 commits intomasterfrom
send-status-emails

Conversation

@sydneyli
Copy link
Contributor

Depends on #212

Also improves the email API a bit, and stores email templates in templates.go.

Instead of confusing the usage for PutDomain, we have a separate
SetStatus method now to update the status of a particular domain
This change allows multiple "policies" for a particular domain to exist
at once in the database. The reason we need this: If someone wants to
update or modify their policy while it's still in testing mode, the
actual update shouldn't occur until email confirmation has occurred for
the new policy. At the same time, we still need to remember this new
policy in case the update does occur.

People can still update their entry on the list so long as it's in "testing"
mode. Once it's in "enforce", it is much harder to change their entry on
the list, and for now, we have to go through a manual channel.

As a side thing, also removed "GET" functionality from /queue endpoint
since no one is consuming it or relying on it.
Now validation will always happen automagically, and it also can promote/demote
the state of a domain.
@vbrown608 vbrown608 self-assigned this Apr 24, 2019
@vbrown608 vbrown608 marked this pull request as ready for review April 24, 2019 18:24
@sydneyli
Copy link
Contributor Author

Closing for now, I don't think this is the right approach given #217.

@sydneyli sydneyli closed this Jun 14, 2019
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