Hitobito Patria is an Extension for the core hitobito and the hitobito_pbs wagon, reflecting the structures of the swiss scout group "Pfadicorps Patria Bern", as well as some further functionalities.
Please document what you did (and why) to accomplish a feature
Goal of the age group stats is to evaluate for an "Abteilung" how many many members of a given age group it has. For this the statistics of the PBS-wagon can be extended. When a new data set is being calculated the age group statistics should be counted as well and then stored to the database.
Basic Idea of Implementation
Changes
AgeGroupCount
model saves the count of female and male members of an "Abteilung" and an age groupPatria::MemberCounter
to extend the method count
of MemberCounter
to calculate the members of an age groupPatria::MemberCount
to extend MemberCount
model with has_many AgeGroups
relationsPatria::CensusEvaluation::BaseController
extending index
with switch over new url-parametersFilterNavigation
for the drop-down menuPatria::Group::Abteilung
, Patria::Group::Kantonalverband
and Patria::Group::Bund
to support the evalutation of the age group counts on different levels (and some other helpers and modules, i.e. Patria::CensusEvaluation
, Patria::CensusEvaluationHelper
, TotalFromAgeGroups
, AgeGroupSum
)Interesting Links Gathered on the Way
The LDAP Feature integrates the possibility to use a external LDAP server to manage users. When a user logs in for the very first time with an active LDAP Account, a new user in hitobito will be created and username, name, prename and password will be filled in from the LDAP server. The rest of the data will then be stored only local and not on the LDAP server. To change passwords, the LDAP admin has to be contacted.
In Groups Biber, Wölfe, Pfadi, Pio and PTA is a new Role called Neumitglied. This role has no permissions.