Skip to content

Does not work with Ember Data > 3.14 #43

@iamareebjamal

Description

@iamareebjamal

Relevant Upstream Issue - warp-drive-data/warp-drive#7074

await eventDetails.query('sessions', {
  include      : 'speakers,track,microlocations',
  filter       : scheduledFilterOptions,
  'page[size]' : 0
});

await eventDetails.query('sessions', {
  include      : 'speakers,track',
  filter       : unscheduledFilterOptions,
  'page[size]' : 0
});

After loading the first query using the URL - /events/123/sessions?include=speakers,track,microlocations...&page[size]=0

On running the second query, it just requests every entity loaded in first query individually

/sessions/1
/sessions/2
/sessions/3
...

It doesn't matter what you passed in the query params, it returns same thing over and over again. I did not find any release notes (checking for breaking changes) beyond 3.14.1 here, which is the last version with correct behaviour.

Here's a reproduction of the bug https://github.com/iamareebjamal/ember-data-bug

Code is self-explanatory and bug is evident on visiting index page and viewing the network panel. Changing ember-data to 3.14.1 fixes the bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions