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.
 
 
PadelClub/PadelClub/Data
Razmig Sarkissian 113f48b272 fix issue 1 year ago
..
Coredata fix stuff for aout 2024 ranking download 1 year ago
Federal fix stuff for aout 2024 ranking download 1 year ago
AppSettings.swift fix stuff 1 year ago
Club.swift fix stuff 1 year ago
Court.swift Merge branch 'main' 1 year ago
DataStore.swift Adds a way to delete a user account 1 year ago
DateInterval.swift Merge branch 'main' 1 year ago
Event.swift fix stuff 1 year ago
GroupStage.swift fix stuff from pade rules july 2024 1 year ago
Match.swift rename debug options 1 year ago
MatchScheduler.swift fix court unavailability in match scheduler 1 year ago
MockData.swift Fixes some long compilation warnings 1 year ago
MonthData.swift fix issue 1 year ago
PlayerRegistration.swift some fixes 1 year ago
README.md Forbids multi device authentication 1 year ago
Round.swift rename debug options 1 year ago
TeamRegistration.swift fix search 1 year ago
TeamScore.swift Merge branch 'main' 1 year ago
Tournament.swift fix stuff from pade rules july 2024 1 year ago
TournamentStore.swift rename debug options 1 year ago
User.swift Forbids multi device authentication 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