Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-371

Align naming of boolean / predicate properties on a Realm instance

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      Alignment on the naming of boolean properties describing a predicate of the Realm.

      Expected Results

      I would expect all of these properties either all start with is or none of them should.

      I suggest renaming (empty and readOnly) to start with is, optionally keeping the old ones but printing a deprecation warning if someone {{get}}s them.

      Actual Results

      We currently have:

      • realm.empty
      • realm.isClosed
      • realm.isInTransactions
      • realm.readOnly

      Version of Realm and Tooling

      • Realm JS SDK Version: 3.5.0
      • Node or React Native: N/A
      • Client OS & Version: N/A
      • Which debugger for React Native: None

            Assignee:
            andrew.meyer@mongodb.com Andrew Meyer
            Reporter:
            kraen.hansen@mongodb.com Kræn Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: