set struture

This commit is contained in:
Philipp Rothmann 2022-12-21 10:40:40 +01:00
parent 135b14c868
commit c95271682d
7 changed files with 21 additions and 31 deletions

View file

@ -1,12 +1,11 @@
# encoding: utf-8 # encoding: utf-8
# TODO: rename class to specific name and change all references class Group::Circle < ::Group
class Group::Root < ::Group
self.layer = true self.layer = true
# TODO: define actual child group types # TODO: define actual child group types
children Group::Root children Group::Circle, Group::HelpCircle
### ROLES ### ROLES

View file

@ -0,0 +1,6 @@
# encoding: utf-8
# TODO: rename class to specific name and change all references
class Group::HelpCircle < ::Group
self.layer = true
end

View file

@ -8,7 +8,7 @@ module Lit::Group
# self.used_attributes += [:website, :bank_account, :description] # self.used_attributes += [:website, :bank_account, :description]
# self.superior_attributes = [:bank_account] # self.superior_attributes = [:bank_account]
root_types Group::Root root_types Group::Circle
end end
end end

View file

@ -4,16 +4,18 @@ de:
### GROUPS ### GROUPS
group/root: group/circle:
one: Hauptgruppe one: Kreis
other: Hauptgruppen other: Kreise
group/help_circle:
one: Hilfkreis
other: Hilfskreise
### ROLES ### ROLES
group/root/leader: group/circle/leader:
one: Leitung one: Leitung
description: Leitungspersonen verwalten die Applikation. description: Leitungspersonen verwalten die Applikation.
group/root/member: group/circle/member:
one: Mitglied one: Mitglied
description: Mitglieder sind alle anderen. description: Mitglieder sind alle anderen.

View file

@ -14,4 +14,4 @@ application:
# not the customers. # not the customers.
# Initially, a password reset token may be mailed from the application # Initially, a password reset token may be mailed from the application
# to this address to set a password. # to this address to set a password.
root_email: hitobito-lit@puzzle.ch root_email: root@local-it.org

View file

@ -14,26 +14,9 @@ class LitPersonSeeder < PersonSeeder
end end
puzzlers = [
'Andreas Maierhofer',
'Carlo Beltrame',
'Mathis Hofer',
'Matthias Viehweger',
'Nils Rauch',
'Olivier Brian',
'Pascal Simon',
'Pascal Zumkehr',
'Roland Studer',
'Tobias Hinderling',
'Severin Raez'
]
devs = { devs = {
'Customer Name' => 'customer@email.com' 'Philipp Rothmann' => 'p.rothmann@local-it.org'
} }
puzzlers.each do |puz|
devs[puz] = "#{puz.split.last.downcase}@puzzle.ch"
end
seeder = LitPersonSeeder.new seeder = LitPersonSeeder.new
@ -41,5 +24,5 @@ seeder.seed_all_roles
root = Group.root root = Group.root
devs.each do |name, email| devs.each do |name, email|
seeder.seed_developer(name, email, root, Group::Root::Leader) seeder.seed_developer(name, email, root, Group::Circle::Leader)
end end

View file

@ -1,3 +1,3 @@
# encoding: utf-8 # encoding: utf-8
Group::Root.seed_once(:parent_id, name: 'Hauptgruppe') Group::Circle.seed_once(:parent_id, name: 'Koordinationskreis')