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 6dccef8908 v1.1.22 8 months ago
..
Coredata add ranking to register message 12 months ago
Federal fix crash when when replacing heads 9 months ago
AppSettings.swift fix stuff 12 months ago
Club.swift Adds timezone for clubs 1 year ago
Court.swift cleanup encode methods 1 year ago
DataStore.swift Merge remote-tracking branch 'refs/remotes/origin/main' 8 months ago
DateInterval.swift Merge branch 'main' 1 year ago
DrawLog.swift add new variable to drawlog and fix filterByStoreIdentifier 1 year ago
Event.swift cleanup encode methods 1 year ago
GroupStage.swift b2 8 months ago
Match.swift fix team label and lucky loser stuff 8 months ago
MatchScheduler.swift fix group stage scheduling 10 months ago
MockData.swift Fixes some long compilation warnings 1 year ago
MonthData.swift fix stuff 1 year ago
PlayerRegistration.swift v1.1.21 8 months ago
README.md Adds timezone for clubs 1 year ago
Round.swift enable realtime final ranking update 10 months ago
TeamRegistration.swift fix init team reg 8 months ago
TeamScore.swift cleanup encode methods 1 year ago
Tournament.swift v1.1.22 8 months ago
TournamentStore.swift draw log final implementation 1 year ago
User.swift replace encodeOptional into encode 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/decoding
  • 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
  • Si 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