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

Professional ratteries #184

Closed
VigiePirate opened this issue Jan 2, 2024 · 2 comments
Closed

Professional ratteries #184

VigiePirate opened this issue Jan 2, 2024 · 2 comments

Comments

@VigiePirate
Copy link
Owner

So far, origins can be of two kind, through the is_generic boolean. Different rules apply to rat registration under a given prefix depending on this boolean:

  • generic: do not correspond to a specific birthplace but to unregistered groups of similar birth/adoption places (all petshops, all laboratory rats, etc.) => mandatory comment
  • non generic: specific registered birthplace => mandatory mother

Professional breeders do not fall in any of these categories (ex: René Baastians, Alain Caron), which currently prevents to register rats under their prefix. Setting them as generic ratteries would have other side effects (reduced statistics, automatic appearance in the origin selectbox of rat registration form). Other solutions could be:

  • adding a new boolean is_professional
  • allowing to declare litters of "Unknown mother" (rat_id=1)
@PetitangePA
Copy link
Collaborator

Pistes évoquées pour le moment sur ce sujet :

  1. ajouter un champ is_professional qui permettrait de squizzer les règles de gestion
  2. basculer les rats concernés en origine Animalerie et supprimer les rateries (sans impact sur le pedigree des rats) et mettre l'info de l'origine en commentaire
  3. ajouter un champ "Enseigne" (liste déroulante fermée) pour préciser le champ Animalerie puis supprimer les rateries pro
  4. Ajouter un tag pour préciser l'enseigne d'origine puis supprimer les rateries pro

@VigiePirate
Copy link
Owner Author

Fix temporaire dans #198 (champ is_dam_required dans la table ratteries).

A terme, une révision plus complète de la gestion des origines semblera souhaitable (origin id dans la tables des rats et tables des origines: "Origines : Animalerie, Grossiste, Sauvage, Raterie, ...", suppression de rattery_id dans la table rat, table des rateries uniquement liées aux rats via les birth litters si origin = Raterie). Pour une future version.

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