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

Consider renaming "deleteCandidate" status of a domain #784

Closed
artur-intech opened this issue Mar 24, 2018 · 3 comments
Closed

Consider renaming "deleteCandidate" status of a domain #784

artur-intech opened this issue Mar 24, 2018 · 3 comments
Assignees

Comments

@artur-intech
Copy link
Contributor

artur-intech commented Mar 24, 2018

@vohmar Is there any reason why "candidate" word is used in deleteCandidate status? I didn't notice any circumstances under which a domain with that status does not get permanently deleted, so why to call it a candidate?

@vohmar
Copy link
Contributor

vohmar commented Mar 26, 2018

deleteCandidate status is removable in admin
deleteCandidate means that the domain object in waiting to be deleted/archived/released thus it is candidate (it is not deleted yet)

no renaming necessary - consider unifying the term in code as well (using deleteCandidate universally)

@vohmar vohmar closed this as completed Mar 26, 2018
@artur-intech
Copy link
Contributor Author

artur-intech commented Apr 2, 2018

"not yet deleted" has nothing in common with the word "candidate". As I understand it, candidate implies that

a person or thing regarded as suitable for or likely to receive a particular fate, treatment, or position.

, but I cannot find any circumstances under which a domain will not be deleted. Please point me to that part.

I think "discard" is a more suitable word to model this business logic. If you want to revert it, you could "keep" that domain.

Currently this status is set by a CRON job

domain.statuses << DomainStatus::DELETE_CANDIDATE

How exactly is possible to remove that status from a domain in admin area?

In general, I think it's worth changing our mindset from just operating with the statuses of a domain to operations with a domain. Say, instead of saying "add deleteCandidate status to a domain" you say "discard that domain" or instead of "add archived status" just "archive that domain". I consider status as a pure implementation detail.

@vohmar
Copy link
Contributor

vohmar commented Apr 3, 2018

we have decided not to proceed with renaming any statuses nor changing processes at the moment.

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

No branches or pull requests

2 participants