Skip to content
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

Convert Request.js module and tests to TypeScript #143

Open
kfranqueiro opened this issue Jul 16, 2015 · 0 comments
Open

Convert Request.js module and tests to TypeScript #143

kfranqueiro opened this issue Jul 16, 2015 · 0 comments
Assignees

Comments

@kfranqueiro
Copy link
Member

Convert src/Request.js to TypeScript as src/Request.ts, and tests/unit/Request.js as tests/unit/Request.ts.

This will also involve replacing usage of Dojo 1's dojo/request with dojo-core's. This should ultimately enable all tests to pass again (right now they're failing due to requestProvider not being configured).

In order to run unit tests with the changes, any instances of Request will need to be changed to Request.default in other JS modules until we convert them as well.

See #130 for general information on the conversion. If you have questions, comments, or thoughts for this module beyond the conversion itself, you can leave comments on this issue.

maier49 added a commit to maier49/dstore that referenced this issue Jul 27, 2015
Fixes dojo#143, Fixes dojo#138, Fixes dojo#137, Fixes dojo#136

 * QueryResults has been converted to TypeScript
 * Filter has been converted to TypeScript
 * Store and tests/unit/Store have been converted.
 * Request and tests/unit/Request have been converted.

All test cases that were previously passing are still
passing, as well as the Request test cases.

QueryResults needed to be modified to return an ES6 style
promise, because of calls to super made by the promise
returned from dojo-core/Request. This conversion in turn
required many tests cases and some sources files to be
updated, as they were relying on the fact that Dojo 1 style
promises execute synchronously in some cases.
maier49 added a commit to maier49/dstore that referenced this issue Aug 7, 2015
Fixes dojo#143, Fixes dojo#138, Fixes dojo#137, Fixes dojo#136

 * QueryResults has been converted to TypeScript
 * Filter has been converted to TypeScript
 * Store and tests/unit/Store have been converted.
 * Request and tests/unit/Request have been converted.

All test cases that were previously passing are still
passing, as well as the Request test cases.

QueryResults needed to be modified to return an ES6 style
promise, because of calls to super made by the promise
returned from dojo-core/Request. This conversion in turn
required many tests cases and some sources files to be
updated, as they were relying on the fact that Dojo 1 style
promises execute synchronously in some cases.
maier49 added a commit to maier49/dstore that referenced this issue Aug 21, 2015
Fixes dojo#143, Fixes dojo#138, Fixes dojo#137, Fixes dojo#136

 * QueryResults has been converted to TypeScript
 * Filter has been converted to TypeScript
 * Store and tests/unit/Store have been converted.
 * Request and tests/unit/Request have been converted.

All test cases that were previously passing are still
passing, as well as the Request test cases.

QueryResults needed to be modified to return an ES6 style
promise, because of calls to super made by the promise
returned from dojo-core/Request. This conversion in turn
required many tests cases and some sources files to be
updated, as they were relying on the fact that Dojo 1 style
promises execute synchronously in some cases.
maier49 added a commit to maier49/dstore that referenced this issue Sep 4, 2015
Fixes dojo#143, Fixes dojo#138, Fixes dojo#137, Fixes dojo#136

 * QueryResults has been converted to TypeScript
 * Filter has been converted to TypeScript
 * Store and tests/unit/Store have been converted.
 * Request and tests/unit/Request have been converted.

All test cases that were previously passing are still
passing, as well as the Request test cases.

QueryResults needed to be modified to return an ES6 style
promise, because of calls to super made by the promise
returned from dojo-core/Request. This conversion in turn
required many tests cases and some sources files to be
updated, as they were relying on the fact that Dojo 1 style
promises execute synchronously in some cases.
maier49 added a commit to maier49/dstore that referenced this issue Sep 11, 2015
Fixes dojo#143, Fixes dojo#138, Fixes dojo#137, Fixes dojo#136

 * QueryResults has been converted to TypeScript
 * Filter has been converted to TypeScript
 * Store and tests/unit/Store have been converted.
 * Request and tests/unit/Request have been converted.

All test cases that were previously passing are still
passing, as well as the Request test cases.

QueryResults needed to be modified to return an ES6 style
promise, because of calls to super made by the promise
returned from dojo-core/Request. This conversion in turn
required many tests cases and some sources files to be
updated, as they were relying on the fact that Dojo 1 style
promises execute synchronously in some cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants