feat:implement ParseObject and crud operation#28
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Résumé
Cette PR implémente la classe ParseObject, le composant fondamental du SDK permettant de manipuler les objets Parse Server. Elle fournit les opérations CRUD de base (Create, Read, Update, Delete) pour interagir avec les données stockées sur Parse Server via l'API REST.
ParseObject est la brique de base sur laquelle reposent d'autres fonctionnalités comme ParseUser (Issue #20) et ParseQuery (Issue #17). Son implémentation était donc critique pour la progression du SDK.
Issue liée
Closes #16
Type de changement
feat— Nouvelle fonctionnalitéfix— Correction de bugdocs— Documentation uniquementtest— Ajout ou modification de testsrefactor— Refactoring sans changement de comportementchore— Maintenance, CI/CD, dépendancesbreaking change— Modifie l'API publique (nécessite un bump majeur)Changements apportés
Création de src/parse_sdk/object.py contenant la classe ParseObject
Implémentation des méthodes CRUD :
save() — Création et mise à jour d'objets
fetch() — Récupération des données depuis le serveur
delete() — Suppression d'un objet
Gestion des propriétés dynamiques via getattr et setattr
Support des types Parse spéciaux (GeoPoint, Pointer, ParseDate, etc.)
Propriétés utilitaires : object_id, created_at, updated_at, is_dirty
Ajout de l'export ParseObject dans src/parse_sdk/init.py
Création de tests/unit/test_object.py avec tests unitaires complets
Comment tester
Checklist
Code
black,ruff,mypypassent en local)type hintssur toutes les fonctions et méthodes publiquesTests
pytest)pytest --cov)Documentation
Git
develop(pas de conflits)type(scope): descriptionNotes pour le reviewer