-
-
Notifications
You must be signed in to change notification settings - Fork 69
Labels
type:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse Swift SDK.
Issue Description
When fetching a saved object and then calling .save, all keys are marked as dirty and saved to the backend, causing unnecessary traffic and database ops.
Steps to reproduce
- Fetch an existing object
- Have a Parse Cloud beforeSave trigger that logs
object.dirtyKeys().
Actual Outcome
All fields are dirty.
Expected Outcome
No fields should be dirty unless mutated.
Environment
Client
- Parse Swift SDK version:
1.9.10 - Xcode version:
10.15.7 - Operating system (iOS, macOS, watchOS, etc.):
iOS - Operating system version:
14.7
Server
- Parse Server version:
4.5.0 - Operating system:
macOS - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
localhost
Database
- System (MongoDB or Postgres):
mongodb - Database version:
4.2 - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
Atlas
Logs
Metadata
Metadata
Assignees
Labels
type:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed