25 Commits

Author SHA1 Message Date
Oscar Lorentzon
2b4617bd7a feat(api): get static resources through data provider
Use data provider in node caching.
2020-10-05 18:07:55 +02:00
Oscar Lorentzon
0469c966ab refactor(api): replace api v3 with data provider solution 2020-09-22 15:42:28 +02:00
Oscar Lorentzon
60fe0cc14b test(api): unit test data provider
Fix error handling so that value is returned correctly.
2020-09-22 11:40:47 +02:00
Oscar Lorentzon
1969bd83bc refactor: use pipe operators
Use pipe operators everywhere.
Fix errors becasue of piping more than nine operations.
2018-06-13 12:03:40 +00:00
Oscar Lorentzon
72e778b921 chore: upgrade to rxjs 6 compat
Downgrade node types version because of observable type
compatibility issue.
Remove unsupported generics from empty calls.
Use observable create for API call wrapping
becasue of non compatible type when using
observable from promise.
Add frame generator because it was removed
from RxJS 6.
2018-06-12 06:01:04 +00:00
Oscar Lorentzon
c38f4e7c4f chore: remove typings dependency
Add types folder as type root.
Declare modules in type def files to be able to compile.
2018-06-11 06:16:58 +00:00
Oscar Lorentzon
e3250d8162 refactor: import rxjs operators in a single place 2018-04-17 12:50:59 +00:00
Oscar Lorentzon
38169b5125 refactor: request non nested sequence_key property
Request non nested sequence_key property for performance reasons.
Handle non exisiting sequences by returning empty sequence as
fallback in API.
Add tests for fallback logic.
2018-02-20 11:51:48 +01:00
Oscar Lorentzon
51f79ef802 chore: extend tslint recommended
Extend recommended while keeping functionality.
Remove duplicate blank lines.
2017-11-14 13:23:36 +00:00
Oscar Lorentzon
9e2d32107b fix(api): throw informative error when no result
Throw error with informative error message when requesting
an image that does not exist or is filtered.
2017-06-28 16:22:31 +00:00
Oscar Lorentzon
a720d1a2df Migrate to TS 2.1.
Extending Error does not create instances of the created error classes.
Act accordingly in unit test error type checks.
Upgrade three js typings for compatibility.
Error derived classes does not need to create stack trace
explicitly.
Use tilde ranges for ts dev deps for future compatibility.
2016-12-21 17:04:09 +01:00
Oscar Lorentzon
bf6179e1b4 Instantiate models in creator class.
Inject model creator to in APIv3 and test.
2016-11-09 14:41:46 +01:00
Oscar Lorentzon
a582ede529 API methods for all model calls.
Do not expose model on API. Wrap all methods in API
class to make retries simple.
Use API methods in stats component.
Unit test API.
2016-10-25 14:14:39 +02:00
Oscar Lorentzon
58e2e2b496 Remove unused classes, tests and dependencies.
Remove graphlib and rest dependencies used in old graph and API.
Use new graph service, graph and node everywhere.
2016-10-24 16:23:46 +02:00
Oscar Lorentzon
2ca1ae2865 Methods for invalidating API cache.
Unit tests.
2016-10-20 11:54:16 +02:00
Oscar Lorentzon
5bcf200286 Handle undefined imagesByH response.
Fill response to be equivalent to an empty response.
2016-10-18 10:39:32 +02:00
Oscar Lorentzon
fba319bfb6 Unit test API v3. 2016-10-14 14:24:12 +02:00
Oscar Lorentzon
89030047ad TS lint scripts.
TS lint scripts for spec and src.
Fix all spec files to comply with linting.
Use lint script in pre commit hook.
2016-07-12 11:42:23 -04:00
Oscar Lorentzon
b41d39ad53 Migrate to typings 1.0.
Fixes #135
2016-06-07 14:53:35 +02:00
Johan Gyllenspetz
bd65b2bd5b Remove or API test 2016-03-08 09:32:25 -08:00
Oscar Lorentzon
8066b9c52a Use Typings instead of TSD.
Remove deprecated TSD dependency.
Use Typings to install type definitions.
Install rx typings from npm package.
2016-02-29 16:58:56 +01:00
Oscar Lorentzon
344d472f70 Test that API im or is called correctly. 2016-02-24 14:54:55 +01:00
Oscar Lorentzon
55610f0be8 Rename API spec file to APIv2. 2016-02-24 14:29:11 +01:00
Oscar Lorentzon
d14af591f7 Test that the correct API path is called for nav. 2016-02-24 14:27:45 +01:00
Johan Gyllenspetz
b9b9ca31f9 Refactor Parsing and specs
* Remove optionsparser for now (its a bad construct)
* Move specs to dirs
2016-01-08 16:14:01 -08:00