Skip to content

Optimize ParseObject #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
21 of 41 tasks
yulingtianxia opened this issue Jun 12, 2019 · 4 comments
Open
21 of 41 tasks

Optimize ParseObject #194

yulingtianxia opened this issue Jun 12, 2019 · 4 comments
Labels
type:feature New feature or improvement of existing feature

Comments

@yulingtianxia
Copy link
Contributor

yulingtianxia commented Jun 12, 2019

We should refer to other official API, such as iOS/OSX sdk:
https://parseplatform.org/Parse-SDK-iOS-OSX/api/Classes/PFObject.html

Creating a ParseObject

  • ParseObject()

Managing Object Properties

  • parseClassName //(Need refactor)
  • objectId
  • updatedAt
  • createdAt
  • ACL

Accessors

remove conflicts with existing methods.

  • get
  • set
  • remove
  • getRelation
  • revertAll
  • revert

Array Accessors

remove conflicts with existing methods.

  • add
  • addAll
  • addUnique
  • addAllUnique
  • remove
  • removeAll

Increment

  • increment //(Need refactor)
  • decrement //(Need refactor or delete)

Saving Objects

  • save //(Need refactor)
  • saveEventually

Saving Many Objects(Static Method)

  • saveAll

Deleting Many Objects(Static Method)

  • deleteAll

Getting Many Objects(Static Method)

  • fetchAll //(Has replacement getAll,Need refactor)
  • fetchAllIfNeeded

Getting an Object

  • dataAvailable
  • fetch //(Has replacement getObject,Need refactor)
  • fetchIfNeeded

Fetching From Local Datastore

  • fetchFromLocalDatastore

Deleting an Object

  • delete
  • deleteEventually

Dirtiness

  • dirty({String key})

Pinning

  • pin({String name, dynamic callback}) //(Need refactor)

Pinning Many Objects(Static Method)

  • pinAll({String name, dynamic callback})

Unpinning

  • unpin({String name, dynamic callback}) //(Need refactor)

Unpinning Many Objects(Static Method)

  • unpinAll({bool recursively, String name, dynamic callback})

Methods for Subclasses(Static Method)

  • object
  • objectWithoutDataWithObjectId
  • registerSubclass
  • query()
@fischerscode
Copy link
Contributor

registerSubclass would be great.

Maybe changing fomJson in ParseBase could do the trick.
Any ideas?

@fischerscode
Copy link
Contributor

Maybe getting close to the official repos is not that good.
There are some cases where having the android like subclass system is not the best.

@fischerscode
Copy link
Contributor

The registerSubclass feature got merged with #368

@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
@parse-github-assistant
Copy link

The label type:feature cannot be used in combination with type:improvement.

@parse-github-assistant parse-github-assistant bot removed the type:feature New feature or improvement of existing feature label Dec 6, 2021
@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

4 participants