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
Raz 0a816b20e1 minor updates 1 year ago
..
Coredata wip 1 year ago
Federal fix search stuff 1 year ago
AppSettings.swift fix search stuff 1 year ago
Club.swift fix stuff 1 year ago
Court.swift Merge branch 'main' 1 year ago
DataStore.swift Fixes issue where stuff remained after disconnect 1 year ago
DateInterval.swift Merge branch 'main' 1 year ago
Event.swift fix stuff 1 year ago
GroupStage.swift wip 1 year ago
Match.swift wip 1 year ago
MatchScheduler.swift gp stage fix 1 year ago
MockData.swift Fixes some long compilation warnings 1 year ago
MonthData.swift fix stuff 1 year ago
PlayerRegistration.swift minor updates 1 year ago
README.md Forbids multi device authentication 1 year ago
Round.swift add loser bracket mode 1 year ago
TeamRegistration.swift clean up 1 year ago
TeamScore.swift Merge branch 'main' 1 year ago
Tournament.swift minor updates 1 year ago
TournamentStore.swift rename debug options 1 year ago
User.swift add loser bracket mode 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