Commit Graph

66 Commits

Author SHA1 Message Date
Joshua
5f4943d1d5 new server test with precommit hook to secure .env files, set up CI environment (#5)
* new server test with precommit hook to secure .env files, set up CI environment (#3)

* [TESTS] added all registered routes to api server test

* [WIP] abstracting config to env where it makes sense, refactoring elsewhere, adding more tests

* [WIP] fixed tests so they fail as expected

* [WIP]

* [DEBUG] fixed issues with the env configuration, added correct tests

* [MISC] env didn't get readded on last precommit

* [TESTS] added longer wait time for server as sometimtimes tests fail arbitrarily
2018-12-14 15:59:12 +00:00
Lachlan Kermode
1515f17461 Merge pull request #29 from forensic-architecture/topic/add-deeprows
Topic/add deeprows
2018-12-14 13:20:20 +00:00
Lachlan Kermode
5d8a6b1927 update example.config.js 2018-12-14 09:56:18 +00:00
Lachlan Kermode
f47fc311c1 update tests 2018-12-13 17:10:14 +00:00
Lachlan Kermode
b37e49880a fix lint 2018-12-13 16:49:23 +00:00
Lachlan Kermode
bbee0c2896 functional deeprows blueprinter 2018-12-13 16:44:56 +00:00
Lachlan Kermode
df239c8f58 rm debugging logic 2018-12-13 15:59:03 +00:00
Lachlan Kermode
5431b2be3f abstract generic logic from blueprinters to blueprinters.js
The logic in the files in the 'blueprinters' folder is now _only_ the data transformation logic. Instead of taking in arguments like the sheetId, the tabName, and the sheetName, the function now takes a single argument: the list of lists that represents the raw data from the sheet.

This setup gives datasheet-server greater value, as it allows developers to only specify the transformation logic, and not worry about the other stuff that datasheet server is doing.
2018-12-13 15:56:54 +00:00
Lachlan Kermode
7636db4f41 Merge pull request #28 from forensic-architecture/fix/ids-retrieveFrag-docs
Fix/ids retrieve frag docs
2018-12-13 12:44:38 +00:00
Lachlan Kermode
84237fcf14 fix lint 2018-12-13 12:42:53 +00:00
Lachlan Kermode
bbea550c87 fix ids blueprinter 2018-12-13 12:35:27 +00:00
Lachlan Kermode
f909abfdc0 fix retrieveFrag call 2018-12-12 16:07:25 +00:00
Lachlan Kermode
b2276c694e export errors on default obj 2018-12-12 16:07:25 +00:00
Lachlan Kermode
4151d68f2e update docs Interface.js, abstract model layer errors 2018-12-12 16:07:25 +00:00
Lachlan Kermode
f104754cf9 Merge pull request #26 from jlieb10/develop
generalized name in package.json
2018-12-11 15:39:26 +00:00
Joshua Lieberman
a52c305e35 [MISC] generalized name in package.json 2018-12-11 15:14:37 +00:00
Lachlan Kermode
60024a0479 build blueprints after update 0.1.1 2018-12-10 13:15:03 +00:00
Lachlan Kermode
8578bf3ae1 bind this context when currying 2018-12-10 13:13:48 +00:00
Lachlan Kermode
4d0ee142c3 Merge pull request #22 from forensic-architecture/topic/build-bp
Topic/build bp closes #1
v0.1.0
2018-12-07 16:40:00 +00:00
Lachlan Kermode
e883406e40 rm internal sheet id from copy error 2018-12-07 14:52:25 +00:00
Lachlan Kermode
08dce0dbb9 strip down blueprint structure to what is necessary 2018-12-07 14:49:16 +00:00
Lachlan Kermode
35b8bf4d9c add _buildBlueprintsAsnc in Fetcher 2018-12-07 13:58:38 +00:00
Lachlan Kermode
41e2ba8299 defaultRoute -> defaultResource 2018-12-07 13:02:50 +00:00
Lachlan Kermode
8a5bce0842 rename 'routes' in blueprints to 'resources'
routes was a confusing semantics that was not in order with the rest of the architecture
2018-12-07 12:32:32 +00:00
Lachlan Kermode
565a36083f add index prototype for model layer
as the model layer only speaks URL, it returns a list of the URLs that it supports
2018-12-07 12:21:40 +00:00
Lachlan Kermode
2be0f75362 correct load URLs for model layer 2018-12-07 12:04:02 +00:00
Lachlan Kermode
aff9b384d1 better saving schema for model layer
previously, the model layer had a confused interface, where it saved via blueprints, but loaded via a URL logic. This commit modifies Fetchers to save consistently via a URL
2018-12-07 12:02:40 +00:00
Lachlan Kermode
5274ac887d Merge pull request #18 from forensic-architecture/topic/source-to-sheet
Topic/source to sheet closes #16
2018-12-06 16:51:11 +00:00
Lachlan Kermode
56622a096b update tests 2018-12-06 16:48:56 +00:00
Lachlan Kermode
e6c83762b6 rename source to sheet 2018-12-06 16:45:51 +00:00
Lachlan Kermode
fb6af6daff Merge pull request #17 from forensic-architecture/fix/error-handling
Fix/error handling closes #2
2018-12-06 16:42:55 +00:00
Lachlan Kermode
72edac944c centralise msgs in copy/en.js
plus some other fixes
2018-12-06 16:22:10 +00:00
Lachlan Kermode
4da10b1409 404s for only source, only tab, and bad resource 2018-12-06 15:19:01 +00:00
Lachlan Kermode
b0d81b2a6d update nodemon
see https://www.reddit.com/r/programming/comments/a0kxmw/i_dont_know_what_to_say_backdoor_in_popular/
for more info
2018-11-29 08:15:20 +00:00
Lachlan Kermode
ee3b0f67cd Merge pull request #14 from forensic-architecture/topic/with-example
Topic/with example
2018-11-29 06:07:33 +00:00
Unknown
93479cc8a8 update example.config.js 2018-11-19 16:33:02 +00:00
Lachie Kermode
4448ecfcf3 add link in readme 2018-11-19 15:20:15 +00:00
Lachie Kermode
a4639b8bf7 send 501 when bad resource fetched 2018-11-19 14:24:42 +00:00
Lachie Kermode
4da9328588 add cors in development 2018-11-19 13:50:05 +00:00
Lachie Kermode
3d09217530 add license and travis badges 2018-11-15 13:19:41 +00:00
Lachlan Kermode
f13aa15e4b Merge pull request #12 from forensic-architecture/topic/add-travis-build-2
Topic/add travis build 2
2018-11-15 13:11:39 +00:00
Unknown
23a49647d6 lint tests 2018-11-12 11:28:05 +00:00
Unknown
04d80c7c2f change linter to standard 2018-11-12 10:28:59 +00:00
Unknown
19f3edf55a comment es5/es6 import in lib/blueprinters 2018-11-12 10:08:37 +00:00
Scott Carver
2c9d5c597d Fix config path 2018-11-12 10:08:37 +00:00
Scott Carver
ba953f56d3 Explicitly export default objects
These cannot be imported elsewhere without explicitly adding them to module.exports.
2018-11-12 10:08:37 +00:00
Scott Carver
8ffd49d179 ignore yarn-error.log 2018-11-12 10:08:37 +00:00
Scott Carver
34825f42aa Use es6 when linting 2018-11-12 10:08:37 +00:00
Scott Carver
1caf3d2062 Add test-watch script 2018-11-12 10:08:37 +00:00
Scott Carver
7a8fa725e6 Add travis.yml 2018-11-12 10:08:37 +00:00