Uploaded image for project: 'Realm Studio'
  1. Realm Studio
  2. RSTUDIO-443

CSV Import - Imports to class, not subclass

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Describe the bug

      On the newest version of Realm Studio, when I click "Import from CSV", the items appear in the superclass instead of the subclass.

      To Reproduce

      1. Create a class and then subclass in a realm database.
        (For me, the superclass is "Card" and I have various types of cards.)
      2. From Realm Studio, go to Import Data From... CSV. Select a CSV file with a name that matches the subclass. The data will be imported into the superclass and not the subclass.
        (In prior versions, I'd select the CSV with the file name that corresponds to my subclass and select import. All data would then be imported into the subclass. Now, regardless of the name of the CSV, the data goes to the superclass and data from the properties specific to my subclasses is lost.

      Expected behavior
      I expected the data to be imported into the subclass, as was the case in prior versions.

      Screenshots

      See attached.
      -"Old Version" shows the correct import into Notes (subclass).
      -"New Version" shows the incorrect import into Card (superclass).

      Versions:

      • OS: 11.0.1
      • Studio Version: 10.1.1
      • Realm Object Server version [e.g. 3.0.1]

      Additional context
      Add any other context about the problem here.

            Assignee:
            kraen.hansen@mongodb.com Kræn Hansen
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: