You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
1 year ago | |
|---|---|---|
| .. | ||
| Coredata | 1 year ago | |
| Federal | 1 year ago | |
| AppSettings.swift | 1 year ago | |
| Club.swift | 1 year ago | |
| Court.swift | 1 year ago | |
| DataStore.swift | 1 year ago | |
| DateInterval.swift | 1 year ago | |
| Event.swift | 1 year ago | |
| GroupStage.swift | 1 year ago | |
| Match.swift | 1 year ago | |
| MatchScheduler.swift | 1 year ago | |
| MockData.swift | 1 year ago | |
| MonthData.swift | 1 year ago | |
| PlayerRegistration.swift | 1 year ago | |
| README.md | 1 year ago | |
| Round.swift | 1 year ago | |
| TeamRegistration.swift | 1 year ago | |
| TeamScore.swift | 1 year ago | |
| Tournament.swift | 1 year ago | |
| TournamentStore.swift | 1 year ago | |
| User.swift | 1 year ago | |
README.md
Procédure d'ajout de champ dans une classe
Dans Swift:
- Ajouter le champ dans classe
- Ajouter le champ dans le constructeur si possible
- Ajouter la codingKey correspondante
- Ajouter le champ dans l'encoding
- Ouvrir ServerDataTests et ajouter un test sur le champ
- Pour que les tests sur les dates fonctionnent, on peut tester date.formatted() par exemple
Dans Django:
- Ajouter le champ dans la classe
- S'il c'est un champ dans CustomUser:
- Ajouter le champ à la méthode fields_for_update
- Ajouter le champ dans UserSerializer > create > create_user dans serializers.py
- L'ajouter aussi dans admin.py si nécéssaire
- Faire le makemigrations + migrate
Enfin, revenir dans Xcode, ouvrir ServerDataTests et lancer le test mis à jour