mirror of
https://github.com/internetee/registry.git
synced 2025-05-29 17:10:08 +02:00
added some todos
This commit is contained in:
parent
f406c69963
commit
35155fb8ac
5 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
class Contact < ActiveRecord::Base
|
||||
#TODO Estonian id validation
|
||||
#TODO Foreign contact will get email with activation link/username/temp password
|
||||
#TODO Phone number validation, in first phase very minimam in order to support current registries
|
||||
has_many :addresses
|
||||
end
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
class Domain < ActiveRecord::Base
|
||||
#TODO whois requests ip whitelist for full info for own domains and partial info for other domains
|
||||
#TODO most inputs should be trimmed before validatation, probably some global logic?
|
||||
|
||||
|
||||
belongs_to :registrar
|
||||
belongs_to :ns_set
|
||||
belongs_to :owner_contact, class_name: 'Contact'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
class EppUser < ActiveRecord::Base
|
||||
#TODO should have max request limit per day
|
||||
belongs_to :registrar
|
||||
end
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
class User < ActiveRecord::Base
|
||||
#TODO Foreign user will get email with activation link,email,temp-password.
|
||||
#After activisation, system should require to change temp password.
|
||||
#TODO Estonian id validation
|
||||
|
||||
belongs_to :role
|
||||
end
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
class DomainNameValidator < ActiveModel::EachValidator
|
||||
#TODO
|
||||
# validates lenght of 2-63
|
||||
# validates/honours Estonian additional letters zäõüö
|
||||
# honours punicode and all interfces honors utf8
|
||||
# validates lower level domains (.pri.ee, edu.ee etc)
|
||||
# lower level domains are fixed for .ee and can add statically into settings
|
||||
|
||||
def validate_each(record, attribute, value)
|
||||
unless self.class.validate(value)
|
||||
record.errors[attribute] << (options[:message] || 'invalid format')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue