Admin message

Le support de mattermost va être supprimé de gitlab. Simultanément un changement de licence de mattermost va rendre son utilisation impossible. Nous serons donc obligé de supprimer mattermost.obspm.fr en juin 2026.

Nous vous invitons à utiliser https://chat.obspm.fr en remplacement.

Replace int type by enum type whenever it's possible in the DB model

Some field use an int type where an enum would be far better :

  • int type has no sematic without a documentation "what does 5 mean ?"
  • int are errorprone since tyu can insert invalid velues ouside of the very specific values
  • int are poorly handled on the lon g term :some values are added then removed and sometimes reused
  • the admin controls are needlessly complexe to handle the int values : we have to add a very long help text to expose the int --> mening of each possible value

Enum on the other hand fit perfectly with how we handle thing internaly in the python code : we use python enums !

Affected fields :

  • Planet.detection_type
  • Planet.publication_status
  • other ???
Assignee Loading
Time tracking Loading