1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

Compare commits

...

193 Commits

Author SHA1 Message Date
Allan Bowe
173e9746b1 Merge pull request #78 from sasjs/issue77
Issue77
2020-09-11 10:24:02 +02:00
Krishna Acondy
036f1203e3 Merge branch 'master' into issue77 2020-09-11 09:05:27 +01:00
Krishna Acondy
302ceb0cb1 Merge pull request #79 from sasjs/run-tests-ci
chore(ci): run unit tests as part of build
2020-09-11 09:05:09 +01:00
Krishna Acondy
e209902c1d chore(*): add code style section to doc 2020-09-11 08:28:22 +01:00
Krishna Acondy
e897037c8b chore(*): fix code formatting 2020-09-11 08:20:39 +01:00
Krishna Acondy
c6857e857c chore(ci): run unit tests as part of build 2020-09-11 08:07:37 +01:00
Krishna Acondy
49b25555fc Merge branch 'master' into issue77 2020-09-11 07:59:52 +01:00
Mihajlo Medjedovic
e642264442 fix: execute script passing debug from global config 2020-09-10 22:58:50 +02:00
Mihajlo Medjedovic
d3738ad5cd fix: waitForSession accessToken not passed 2020-09-10 20:42:14 +02:00
Yury Shkoda
40de5f2e11 Merge pull request #75 from sasjs/edit-context
feat(edit-context): add the ability to edit a given context
2020-09-10 13:53:35 +03:00
Krishna Acondy
6056424d26 Merge branch 'master' into edit-context 2020-09-10 10:08:31 +01:00
Krishna Acondy
ae5110974f Merge pull request #72 from sasjs/issue-69
chore(tests): tested 'parseSourceCode' and 'parseGeneratedCode' functions directly
2020-09-10 10:08:18 +01:00
Krishna Acondy
b2f6d4e6d1 feat(create-context): add the ability to modify attributes 2020-09-10 10:02:55 +01:00
Krishna Acondy
f69a635e1d chore(doc): update documentation 2020-09-10 09:57:04 +01:00
Krishna Acondy
c8bc6936e8 Merge branch 'master' into issue-69 2020-09-10 09:50:15 +01:00
Krishna Acondy
9a24a8b962 fix(session-timeout): assume session has expired if attributes are not present 2020-09-10 09:45:10 +01:00
Krishna Acondy
c43c9ec211 chore(edit-context): add error handling for fetch 2020-09-10 09:30:56 +01:00
Krishna Acondy
9b0e02f5b7 feat(edit-context): add the ability to edit a given context 2020-09-10 09:14:02 +01:00
Allan Bowe
3ec6ee2db9 Merge pull request #65 from sasjs/issue-62
feat: added forced deploy
2020-09-09 16:20:13 +02:00
Yury Shkoda
e6ab5f918f chore(move folder): improved error handling 2020-09-09 15:08:36 +03:00
Yury Shkoda
951e119c08 doc(forced deploy): updated documentation of 'SASViyaApiClient' 2020-09-09 13:05:06 +03:00
Yury Shkoda
d22d9e1039 Merge branch 'issue-62' of https://github.com/sasjs/adapter into issue-62 2020-09-09 12:41:35 +03:00
Yury Shkoda
6e276e2e26 Merge branch 'master' into issue-62 2020-09-09 12:39:36 +03:00
Yury Shkoda
eec973efa1 doc(forced deploy): updated documentation of the functions affected by 'issue-62' 2020-09-09 12:38:28 +03:00
Yury Shkoda
0f9eca7482 chore(tests): tested 'parseSourceCode' and 'parseGeneratedCode' functions directly 2020-09-09 11:22:58 +03:00
Krishna Acondy
2c763e38ae Merge branch 'master' into issue-62 2020-09-09 07:59:43 +01:00
Yury Shkoda
4957bc5b05 Merge pull request #66 from sasjs/create-context
feat(context): add the ability to create and delete a compute context
2020-09-09 09:46:38 +03:00
Krishna Acondy
f6b1eecb42 chore(*): remove console log, add comments 2020-09-09 07:36:27 +01:00
Yury Shkoda
7ae2a4d2c6 Merged branch 'master' into 'issue-62' 2020-09-09 09:14:24 +03:00
Krishna Acondy
f86d20b723 Merge branch 'create-context' of https://github.com/sasjs/adapter into create-context 2020-09-08 18:55:33 +01:00
Krishna Acondy
7a1cce193e chore(delete-context): add punctuation to error message 2020-09-08 18:55:30 +01:00
Krishna Acondy
05539fff11 Merge branch 'master' into create-context 2020-09-08 18:53:25 +01:00
Krishna Acondy
5f74b6990c Merge pull request #67 from sasjs/issue-64
feat: added isUrl validation utility
2020-09-08 18:52:51 +01:00
Krishna Acondy
a53b1ab421 Merge branch 'master' into issue-64 2020-09-08 18:51:20 +01:00
Krishna Acondy
3fdc56cdfe Merge pull request #68 from sasjs/dependabot/npm_and_yarn/types/jest-26.0.13
chore(deps-dev): bump @types/jest from 26.0.10 to 26.0.13
2020-09-08 18:49:58 +01:00
Krishna Acondy
e318d8816e Merge branch 'master' into dependabot/npm_and_yarn/types/jest-26.0.13 2020-09-08 18:47:32 +01:00
Krishna Acondy
2c9cce8bf8 Merge pull request #71 from sasjs/issue70
fix: executeJobViaWeb retry requests missing params
2020-09-08 18:47:16 +01:00
Krishna Acondy
58d69a62d6 feat(delete-context): add the ability to delete a compute context 2020-09-08 18:29:12 +01:00
Krishna Acondy
c9c9754916 fix(create-context): change autoExecLines to an array 2020-09-08 18:25:36 +01:00
Yury Shkoda
e056ca21fe refactor: added isUri utility 2020-09-08 17:24:49 +03:00
Yury Shkoda
0a77ebf5c5 feat: added sourceFolder URI capability to moveFolder function 2020-09-08 17:01:24 +03:00
Mihajlo Medjedovic
d5791a75cd fix: executeJobViaWeb retry requests missing params 2020-09-08 15:48:08 +02:00
Yury Shkoda
3da5aba62a fix: removed unnecessary check for www subdomain 2020-09-08 16:07:02 +03:00
Yury Shkoda
12835893b1 refactor: refactored moveFolder and deleteFolder functions 2020-09-08 10:36:16 +03:00
dependabot-preview[bot]
3f40737514 chore(deps-dev): bump @types/jest from 26.0.10 to 26.0.13
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.10 to 26.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-07 18:32:51 +00:00
Yury Shkoda
df86b2e700 docs: documented moveFolder and deleteFolder functions 2020-09-07 17:07:58 +03:00
Yury Shkoda
0eb9bc43ff feat: added isUrl validation utility 2020-09-07 16:32:53 +03:00
Yury Shkoda
5fce25d58a fix: made moveFolder and deleteFolder functions public 2020-09-07 12:17:48 +03:00
Yury Shkoda
7ee9335183 feat: add deleteFolder function 2020-09-07 09:07:25 +03:00
Krishna Acondy
07695bdb85 chore(create-context): update TSDoc comment 2020-09-06 21:35:56 +01:00
Krishna Acondy
26c8946fd5 feat(create-context): add list of authorized users 2020-09-06 21:32:48 +01:00
Krishna Acondy
fc1d54d105 feat(create-context): add launch context name 2020-09-06 21:28:24 +01:00
Krishna Acondy
a318d61f83 feat(create-context): add launch context name 2020-09-06 21:27:44 +01:00
Krishna Acondy
cc5a0cbec3 feat(create-context): allow all authenticated users to use context 2020-09-06 21:10:08 +01:00
Krishna Acondy
d932d9ea0a chore(*): fix code style 2020-09-06 21:05:05 +01:00
Krishna Acondy
e3edace882 feat(create-context): add the ability to create a compute context 2020-09-06 21:01:04 +01:00
Yury Shkoda
29d9df5792 feat: added forced deploy 2020-09-06 12:19:27 +03:00
Krishna Acondy
1f970e1102 Merge pull request #61 from sasjs/allanbowe-patch-1
chore: Update README.md
2020-09-04 12:47:14 +01:00
Krishna Acondy
1552762d28 Merge branch 'master' into allanbowe-patch-1 2020-09-04 12:45:55 +01:00
Krishna Acondy
ef39252b0b chore(doc): fix broken link 2020-09-04 12:43:57 +01:00
Allan Bowe
3f3f8f4531 Update README.md 2020-09-02 20:56:03 +02:00
Allan Bowe
33879ee998 Merge pull request #60 from sasjs/update-documentation
chore(*): update documentation, bump adapter version
2020-09-02 12:47:12 +02:00
Krishna Acondy
cc8271438b chore(doc): add documentation on creating tests 2020-09-02 11:36:15 +01:00
Krishna Acondy
a064bc086d chore(*): update documentation, bump adapter version 2020-09-02 11:29:39 +01:00
Krishna Acondy
d5de6b50a9 Merge pull request #59 from sasjs/debug-log-fetch
fix(logs): fetch log only when debug is switched on
2020-09-02 10:59:50 +01:00
Krishna Acondy
f1184346d8 Merge branch 'master' into debug-log-fetch 2020-09-02 10:47:36 +01:00
Krishna Acondy
337fe5e988 Merge pull request #55 from sasjs/dependabot/npm_and_yarn/typedoc-neo-theme-1.0.10
chore(deps-dev): bump typedoc-neo-theme from 1.0.9 to 1.0.10
2020-09-02 10:47:23 +01:00
Krishna Acondy
c23e6352e2 fix(logs): fetch log only when debug is switched on 2020-09-02 10:43:36 +01:00
dependabot-preview[bot]
57ce0ae35f chore(deps-dev): bump typedoc-neo-theme from 1.0.9 to 1.0.10
Bumps [typedoc-neo-theme](https://github.com/google/typedoc-neo-theme) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/google/typedoc-neo-theme/releases)
- [Commits](https://github.com/google/typedoc-neo-theme/compare/v1.0.9...v1.0.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 09:34:22 +00:00
Krishna Acondy
115caec761 Merge pull request #58 from sasjs/change-code-style
chore(*): change code style to use single quote
2020-09-02 10:31:53 +01:00
Yury Shkoda
c626c57662 chore(*): change code style to use single quote 2020-09-01 14:28:15 +03:00
Krishna Acondy
82b14fad14 Merge pull request #57 from sasjs/change-code-style
chore(*): change code style to remove semicolons
2020-09-01 12:07:24 +01:00
Krishna Acondy
755bf7d07c chore(*): change code style to remove semicolons 2020-09-01 11:51:17 +01:00
Krishna Acondy
619833db29 Merge pull request #56 from sasjs/performance-improvements
fix(*): Performance improvements
2020-09-01 11:49:34 +01:00
Krishna Acondy
a587d9f6de chore(ci): add lint action 2020-09-01 11:20:46 +01:00
Krishna Acondy
83fb89f779 fix(*): cache job definition code after first fetch, make initial state request before poll 2020-09-01 11:13:52 +01:00
Krishna Acondy
6b98bbce7c chore(types): add code property to Job model 2020-09-01 11:12:56 +01:00
Krishna Acondy
3c2487e423 Merge pull request #49 from sasjs/dependabot/npm_and_yarn/ts-loader-8.0.3
chore(deps-dev): bump ts-loader from 8.0.2 to 8.0.3
2020-08-31 10:23:01 +01:00
dependabot-preview[bot]
0d52af5375 chore(deps-dev): bump ts-loader from 8.0.2 to 8.0.3
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.2 to 8.0.3.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.2...v8.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-31 09:04:08 +00:00
Krishna Acondy
d0da343efc Merge pull request #53 from sasjs/dependabot/npm_and_yarn/prettier-2.1.1
chore(deps-dev): bump prettier from 2.0.5 to 2.1.1
2020-08-31 09:58:58 +01:00
dependabot-preview[bot]
54f401a319 chore(deps-dev): bump prettier from 2.0.5 to 2.1.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.0.5 to 2.1.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.0.5...2.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-31 08:24:44 +00:00
Krishna Acondy
5efcb11b7d chore(*): add lint fix command 2020-08-31 09:22:21 +01:00
Krishna Acondy
929d7b993b chore(*): add .prettierrc, fix formatting 2020-08-31 09:15:02 +01:00
Allan Bowe
688221c042 Update example.html 2020-08-28 20:11:04 +02:00
Allan Bowe
57d0b30f47 Merge pull request #52 from sasjs/deploy-issue
fix: members of type folder should be processed first on service pack deploy.
2020-08-28 20:00:43 +02:00
0d5af2487d fix: members of type folder should be proccessed first on service pack deploy 2020-08-28 15:30:53 +03:00
1ea163fd03 fix: members of type folder should be proccessed first on service pack deploy 2020-08-28 14:31:35 +03:00
Allan Bowe
f27444bc52 Merge pull request #48 from sasjs/issue47
fix: login not working on non english browsers
2020-08-23 18:24:36 +02:00
Mihajlo Medjedovic
de426c9a92 fix: login not working on non english browsers 2020-08-23 18:17:35 +02:00
Allan Bowe
a006ead205 Merge pull request #46 from sasjs/issue45
fix: jobViaWeb config override
2020-08-23 17:07:47 +02:00
Mihajlo Medjedovic
422c2a1fd5 fix: jobViaWeb config override 2020-08-23 17:04:39 +02:00
Krishna Acondy
0c6409e402 Merge pull request #44 from sasjs/session-expiry-retry
fix(session-expiry-retry): retry job with new session on expiry
2020-08-18 21:45:47 +01:00
Krishna Acondy
68b864cf75 fix(session-expiry): discard and create new session if expired 2020-08-18 21:35:02 +01:00
Krishna Acondy
75a11cdff4 fix(session-expiry-retry): retry job with new session when current session has expired 2020-08-18 20:23:59 +01:00
Allan Bowe
4e2b6d32cc Merge pull request #43 from sasjs/parse-compute-log
fix(log): use compute log directly when available
2020-08-18 18:21:56 +02:00
Krishna Acondy
cd9757b383 Merge branch 'master' into parse-compute-log 2020-08-18 17:01:33 +01:00
Mihajlo Medjedovic
fb727788d0 fix: log capture if job fails, test framework update, added test for log capture 2020-08-18 17:36:25 +02:00
Allan Bowe
35eb6c4935 Merge pull request #40 from sasjs/dependabot/npm_and_yarn/types/jest-26.0.10
chore(deps-dev): bump @types/jest from 26.0.9 to 26.0.10
2020-08-18 13:26:57 +02:00
Mihajlo Medjedovic
ea0f338b90 Merge branch 'master' into parse-compute-log 2020-08-18 13:26:16 +02:00
Allan Bowe
b6a17b39b9 Merge branch 'master' into dependabot/npm_and_yarn/types/jest-26.0.10 2020-08-18 13:25:28 +02:00
Allan Bowe
9ed64e5a2c Merge pull request #42 from sasjs/issue41
fix: csrfTokenWeb setter callback
2020-08-18 13:22:33 +02:00
Mihajlo Medjedovic
0479a5d651 fix: csrfTokenWeb setter callback 2020-08-18 13:17:29 +02:00
Allan Bowe
005f10bb47 Update CONTRIBUTING.md 2020-08-18 11:24:30 +02:00
Krishna Acondy
98c9cb78ff fix(log): use compute log as-is when available 2020-08-18 10:05:34 +01:00
Krishna Acondy
8192f69f67 fix(*): do not use polyfill when running on Node.js 2020-08-18 08:25:40 +01:00
dependabot-preview[bot]
c28a8ebf15 chore(deps-dev): bump @types/jest from 26.0.9 to 26.0.10
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.9 to 26.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-17 13:19:21 +00:00
Krishna Acondy
a409d8cdb6 Merge pull request #38 from sasjs/brwoserCheckFix
fix: isIEorEdgeOrOldFirefox error
2020-08-14 13:10:44 +01:00
Mihajlo Medjedovic
618a20eaba fix: isIEorEdgeOrOldFirefox error 2020-08-14 14:09:28 +02:00
Krishna Acondy
c9b1273c31 Merge pull request #37 from sasjs/ie-edge-fetch
fix(*): use fetch polyfill in IE, Edge and Firefox <60
2020-08-13 21:56:11 +01:00
Krishna Acondy
59674744be fix(*): use fetch polyfill for Firefox versions older than 60 2020-08-13 21:46:08 +01:00
Krishna Acondy
870cc0055b fix(*): use fetch polyfill in Firefox 60 2020-08-13 21:07:21 +01:00
Krishna Acondy
0ffa62fab4 fix(*): use fetch polyfill in IE and Edge 2020-08-13 20:53:27 +01:00
Allan Bowe
b4c7868fb6 Merge pull request #36 from sasjs/issue34
fix: job definition debug log parse
2020-08-11 18:44:39 +02:00
Mihajlo Medjedovic
2266578013 Merge branch 'master' into issue34 2020-08-11 18:29:41 +02:00
Mihajlo Medjedovic
f2ebe1a5b0 fix: job definition debug log parse 2020-08-10 18:13:11 +02:00
Allan Bowe
6a52bbe560 Merge pull request #35 from sasjs/issue33
fix: makeRequest inconsistent response structure
2020-08-10 17:19:05 +02:00
Mihajlo Medjedovic
a5c725e677 fix: makeRequest incositent response structure 2020-08-10 17:05:10 +02:00
Krishna Acondy
f5e1907e28 feat(clear-requests): add function to clear debug requests 2020-08-08 14:27:40 +01:00
Krishna Acondy
f7a9b0cbb6 fix(compute-api): ignore 404s when requesting webout content 2020-08-08 14:26:09 +01:00
Krishna Acondy
1258a1a180 fix(login-callback): fix request failure when login is required 2020-08-08 12:56:31 +01:00
Krishna Acondy
0bb343a1de chore(deps): bump adapter and test framework 2020-08-08 11:42:16 +01:00
Krishna Acondy
929c89b70f Merge pull request #32 from sasjs/dependabot/npm_and_yarn/types/jest-26.0.9
chore(deps-dev): bump @types/jest from 26.0.8 to 26.0.9
2020-08-08 11:04:25 +01:00
dependabot-preview[bot]
169ca35238 chore(deps-dev): bump @types/jest from 26.0.8 to 26.0.9
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.8 to 26.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-06 12:59:52 +00:00
Allan Bowe
60be28f149 Merge pull request #31 from sasjs/session-cleanup
feat(session-cleanup): delete a session after it has been used
2020-08-05 23:17:42 +02:00
Krishna Acondy
14daa55184 feat(session-cleanup): delete a session after it has been used 2020-08-05 21:52:23 +01:00
Krishna Acondy
f763f05b5e Merge pull request #30 from sasjs/deployFix
fix: makeRequest retry
2020-08-05 20:02:44 +01:00
Mihajlo Medjedovic
b6aced5bad fix: makeRequest retry 2020-08-05 20:58:10 +02:00
Allan Bowe
7bb7db0f27 Merge pull request #24 from sasjs/dependabot/npm_and_yarn/webpack-4.44.1
chore(deps-dev): bump webpack from 4.43.0 to 4.44.1
2020-08-04 20:57:22 +02:00
Allan Bowe
36ea148446 Merge branch 'master' into dependabot/npm_and_yarn/webpack-4.44.1 2020-08-04 20:56:51 +02:00
Allan Bowe
762254d8c4 Merge pull request #29 from sasjs/deployFixing
fix: makeRequest retry, getFolderUri error catching
2020-08-04 20:56:20 +02:00
Mihajlo Medjedovic
8474b222ea fix: makeRequest retry, getFolderUri error catching 2020-08-04 20:39:09 +02:00
dependabot-preview[bot]
c1750c014e chore(deps-dev): bump webpack from 4.43.0 to 4.44.1
Bumps [webpack](https://github.com/webpack/webpack) from 4.43.0 to 4.44.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.43.0...v4.44.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-03 20:41:21 +00:00
Krishna Acondy
d7a7909529 Merge pull request #26 from sasjs/dependabot/npm_and_yarn/tslint-6.1.3
chore(deps-dev): bump tslint from 6.1.2 to 6.1.3
2020-08-03 21:39:07 +01:00
dependabot-preview[bot]
31b60a985e chore(deps-dev): bump tslint from 6.1.2 to 6.1.3
Bumps [tslint](https://github.com/palantir/tslint) from 6.1.2 to 6.1.3.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/palantir/tslint/compare/6.1.2...6.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-03 20:38:05 +00:00
Krishna Acondy
a6b13d9cb9 Merge pull request #27 from sasjs/dependabot/npm_and_yarn/types/jest-26.0.8
chore(deps-dev): bump @types/jest from 26.0.5 to 26.0.8
2020-08-03 21:35:56 +01:00
dependabot-preview[bot]
55fcbf2e36 chore(deps-dev): bump @types/jest from 26.0.5 to 26.0.8
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.5 to 26.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-03 19:34:31 +00:00
Krishna Acondy
fad8549d92 Merge pull request #28 from sasjs/dependabot/npm_and_yarn/ts-loader-8.0.2
chore(deps-dev): bump ts-loader from 8.0.1 to 8.0.2
2020-08-03 20:32:10 +01:00
dependabot-preview[bot]
95c03e5d07 chore(deps-dev): bump ts-loader from 8.0.1 to 8.0.2
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.1...v8.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-03 18:57:46 +00:00
Krishna Acondy
e241a47c23 Merge pull request #11 from sasjs/api-execution
feat(*): Job Execution Approaches
2020-08-03 19:52:59 +01:00
Krishna Acondy
ed7f36dbed Merge branch 'api-execution' of https://github.com/sasjs/adapter into api-execution 2020-08-03 19:51:21 +01:00
Krishna Acondy
74f0c263db Merge branch 'master' of https://github.com/sasjs/adapter into api-execution 2020-08-03 19:50:30 +01:00
Krishna Acondy
5a2a4bf39c Merge pull request #19 from sasjs/issue17
File upload function and separate WEB and API csrf tokens
2020-08-01 19:10:29 +01:00
Mihajlo Medjedovic
0ea91ddd3b Merge branch 'api-execution' into issue17 2020-07-31 19:08:39 +02:00
Mihajlo Medjedovic
4422c37827 fix: retry requests with API approach 2020-07-30 00:43:12 +02:00
Krishna Acondy
5fad9d01bc chore(sasjs-tests): remove unnecessary code, bump test framework version 2020-07-29 22:52:17 +01:00
Mihajlo Medjedovic
fb02c77a3a fix: login required callback 2020-07-29 13:20:03 +02:00
Mihajlo Medjedovic
5de84c07a8 fix: computeApi approach loginRequired callback 2020-07-29 12:33:18 +02:00
Mihajlo Medjedovic
54e2319183 fix: public upload file params 2020-07-28 14:10:46 +02:00
Mihajlo Medjedovic
261913d2d7 fix: uploadFile accept multiple files 2020-07-28 13:23:57 +02:00
Allan Bowe
187917cb32 Merge pull request #20 from sasjs/use-test-framework
chore(sasjs-tests): use test framework in SASjs Tests
2020-07-23 10:15:12 +02:00
Allan Bowe
d22b6c77b3 Merge branch 'master' into use-test-framework 2020-07-23 10:14:30 +02:00
Allan Bowe
785b276741 chore: doc update 2020-07-22 23:34:41 +02:00
Krishna Acondy
2ce3669b10 Merge branch 'api-execution' of https://github.com/sasjs/adapter into issue17 2020-07-22 20:00:19 +01:00
Krishna Acondy
3a1ea1614f Merge branch 'master' of https://github.com/sasjs/adapter into issue17 2020-07-22 19:57:10 +01:00
Krishna Acondy
3c5988aacf chore(sasjs-tests): add missing dependency 2020-07-22 19:55:14 +01:00
Krishna Acondy
1a25c354fa Merge pull request #13 from sasjs/requestConfigOverride
Request config override
2020-07-22 19:53:33 +01:00
Krishna Acondy
eb1668d6c1 Merge pull request #15 from sasjs/dependabot/npm_and_yarn/types/jest-26.0.5
chore(deps-dev): bump @types/jest from 26.0.4 to 26.0.5
2020-07-22 19:46:32 +01:00
Krishna Acondy
69d088a9c6 chore(sasjs-tests): use test framework in SASjs Tests 2020-07-22 19:42:34 +01:00
Krishna Acondy
ccd44c31c7 feat(file-upload): move functionality into FileUploader 2020-07-22 07:14:31 +01:00
Krishna Acondy
dec7c18ecb Merge branch 'api-execution' of https://github.com/sasjs/adapter into api-execution 2020-07-22 06:42:53 +01:00
Krishna Acondy
c8a5eb5993 chore(deploy): update script to deploy tests 2020-07-22 06:42:50 +01:00
Mihajlo Medjedovic
700a67a600 feat: file upload function, WEB and API csrf tokens 2020-07-21 22:35:43 +02:00
Mihajlo Medjedovic
a2778bed52 docs: request() update 2020-07-20 23:03:05 +02:00
Mihajlo Medjedovic
2b04fe0c3e docs: update 2020-07-20 21:31:54 +02:00
Mihajlo Medjedovic
1c1e6b8efd fix: waiting requests passing config 2020-07-20 20:44:30 +02:00
Mihajlo Medjedovic
c92a0a53f2 Merge pull request #16 from sasjs/csrfTokenGetter
feat: csrf token main file sync
2020-07-20 20:35:43 +02:00
Mihajlo Medjedovic
ee024c67ab feat: csrf token main file sync 2020-07-20 20:34:12 +02:00
dependabot-preview[bot]
27301651be chore(deps-dev): bump @types/jest from 26.0.4 to 26.0.5
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.4 to 26.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-20 08:58:58 +00:00
Krishna Acondy
9742f53dde Merge pull request #12 from sasjs/dependabot/npm_and_yarn/typescript-3.9.7
chore(deps-dev): bump typescript from 3.9.6 to 3.9.7
2020-07-20 08:19:25 +01:00
dependabot-preview[bot]
38a950a036 chore(deps-dev): bump typescript from 3.9.6 to 3.9.7
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.6 to 3.9.7.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.6...v3.9.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-20 07:17:13 +00:00
Allan Bowe
e41c54e37e docs: adding link attributes due to security vulnerability 2020-07-19 19:57:03 +02:00
Mihajlo Medjedovic
405a19f0cf fix: local config 2020-07-19 17:44:29 +02:00
Mihajlo Medjedovic
c7d6c66093 feat: request config override 2020-07-19 16:10:56 +02:00
Krishna Acondy
8bf74d17e9 fix(*): handle login required state, fix session creation logic 2020-07-18 15:08:40 +01:00
Krishna Acondy
a12244cf78 feat(session-manager): Manage a pool of sessions for job execution 2020-07-17 08:31:27 +01:00
Krishna Acondy
a579f481c5 fix(context): cache contexts after first request 2020-07-16 17:31:03 +01:00
Krishna Acondy
2ecd57169f fix(context): cache contexts after first request 2020-07-16 17:27:28 +01:00
Krishna Acondy
7d84033ad4 feat(compute-api): implement job execution via compute API 2020-07-16 09:06:24 +01:00
Allan Bowe
c4109b225b chore: readme update 2020-07-15 16:00:05 +02:00
Allan Bowe
2ec8696615 chore: readme update 2020-07-15 15:40:58 +02:00
Allan Bowe
c5339276e4 chore: readme update 2020-07-15 15:38:16 +02:00
Allan Bowe
97db960f62 chore: updating example.html to be consistent with README 2020-07-15 13:33:04 +02:00
Krishna Acondy
0ac7f8892e fix(build): switch default branch to master 2020-07-15 12:25:20 +01:00
Krishna Acondy
68f5e5bec5 Merge pull request #10 from sasjs/main
Merge main into master
2020-07-15 12:21:45 +01:00
Krishna Acondy
69a14ff6d7 Merge branch 'master' into main 2020-07-15 12:20:08 +01:00
Krishna Acondy
70e461224a Merge pull request #8 from sasjs/allanbowe-patch-1
Update npmpublish.yml
2020-07-15 12:18:46 +01:00
Krishna Acondy
4da22ee6b4 Merge pull request #9 from sasjs/dependabot/npm_and_yarn/ts-loader-8.0.1
chore(deps-dev): bump ts-loader from 7.0.5 to 8.0.1
2020-07-15 12:18:22 +01:00
Allan Bowe
2c8ba09578 docs: viya test routine in CONTRIBUTING.md 2020-07-15 11:12:46 +02:00
dependabot-preview[bot]
c12d6f1c9c chore(deps-dev): bump ts-loader from 7.0.5 to 8.0.1
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.5 to 8.0.1.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v7.0.5...v8.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-15 08:35:48 +00:00
Krishna Acondy
92504b0c16 feat(jes-api): implement job execution via API to JES 2020-07-13 18:38:30 +01:00
Allan Bowe
e5fb7a7698 Update npmpublish.yml 2020-07-11 18:23:19 +02:00
Krishna Acondy
c22b9066d8 chore(sasjs-tests): update package version 2020-07-11 11:39:59 +01:00
Krishna Acondy
77d7e03de5 fix(*): switch to file upload approach with large datasets and special characters 2020-07-11 11:27:45 +01:00
174 changed files with 38032 additions and 3624 deletions

View File

@@ -21,7 +21,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run package:lib
- name: Install Dependencies
run: npm ci
- name: Check code style
run: npm run lint
- name: Run unit tests
run: npm test
- name: Build Package
run: npm run package:lib
env:
CI: true

View File

@@ -6,7 +6,7 @@ name: SASjs Build and Publish
on:
push:
branches:
- main
- master
jobs:
build:
@@ -16,6 +16,8 @@ jobs:
uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
- name: Check code style
run: npm run lint
- name: Build Project
run: npm run build
- name: Semantic Release

6
.prettierrc Normal file
View File

@@ -0,0 +1,6 @@
{
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}

View File

@@ -1,82 +1,31 @@
# Contributing
Contributions to SASjs are very welcome! When making a PR, test cases should be included. To help in unit testing, be sure to run the following when making changes:
Contributions to SASjs are very welcome! When making a PR, test cases should be included.
```
# the following creates a tarball in the build folder of SASjs
npm run-script package:lib
## Code Style
# now go to your app and run:
npm install ../sasjs/build/<tarball filename>
```
This repository uses `Prettier` to ensure a uniform code style.
If you are using VS Code for development, you can automatically fix your code to match the style as follows:
Tests are run using cypress. Before running tests, you need to define the following backend services:
- Install the `Prettier` extension for VS Code.
- Open your `settings.json` file by choosing 'Preferences: Open Settings (JSON)' from the command palette.
- Add the following items to the JSON.
```
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
```
# SAS 9
If you are using another editor, or are unable to install the extension, you can run `npm run lint:fix` to fix the formatting after you've made your changes.
```
## Testing
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/main/mc_all.sas?_=1";
%inc mc;
filename ft15f001 temp;
parmcards4;
%webout(OPEN)
%macro x();
%do i=1 %to &_webin_file_count; %webout(OBJ,&&_webin_name&i) %end;
%mend; %x()
%webout(CLOSE)
;;;;
%mm_createwebservice(path=/Public/app/common,name=sendObj)
parmcards4;
%webout(OPEN)
%macro x();
%do i=1 %to &_webin_file_count; %webout(ARR,&&_webin_name&i) %end;
%mend; %x()
%webout(CLOSE)
;;;;
%mm_createwebservice(path=/Public/app/common,name=sendArr)
```
This repository contains a suite of tests built using [@sasjs/test-framework](https://github.com/sasjs/test-framework).
# Viya
Detailed instructions for creating and running the tests can be found [here](https://github.com/sasjs/adapter/blob/master/sasjs-tests/README.md).
```
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/main/mc_all.sas";
%inc mc;
If you'd like to test your changes in an app that uses the adapter, you can do so as follows:
filename ft15f001 temp;
parmcards4;
%webout(OPEN)
%global sasjs_tables;
%let sasjs_tables=&sasjs_tables;
%put &=sasjs_tables;
%let sasjs_tables=&sasjs_tables;
%macro x();
%global sasjs_tables;
%do i=1 %to %sysfunc(countw(&sasjs_tables));
%let table=%scan(&sasjs_tables,&i);
%webout(OBJ,&table)
%end;
%mend;
%x()
%webout(CLOSE)
;;;;
%mv_createwebservice(path=/Public/app/common,name=sendObj)
filename ft15f001 temp;
parmcards4;
%webout(OPEN)
%global sasjs_tables;
%let sasjs_tables=&sasjs_tables;
%put &=sasjs_tables;
%macro x();
%do i=1 %to %sysfunc(countw(&sasjs_tables));
%let table=%scan(&sasjs_tables,&i);
%webout(ARR,&table)
%end;
%mend;
%x()
%webout(CLOSE)
;;;;
%mv_createwebservice(path=/Public/app/common,name=sendArr)
```
The above services will return anything you send. To run the tests simply launch `npm run cypress`.
1. Run `npm run package:lib` from the root folder in this repository.
This creates a tarball in the `/build` folder.
2. In your app's root folder, run `npm install <path/to/tarball>`.
This will install the changed version of the adapter in your app.

View File

@@ -10,13 +10,13 @@ SASjs is a open-source framework for building Web Apps on SAS® platforms. You c
3 - Reference directly from the CDN - in which case click [here](https://www.jsdelivr.com/package/npm/@sasjs/adapter?tab=collection) and select "SRI" to get the script tag with the integrity hash.
If you are short on time and just need to build an app quickly, then check out [this video](https://vimeo.com/393161794) and the [react-seed-app](https://github.com/macropeople/react-seed-app) which provides some boilerplate.
If you are short on time and just need to build an app quickly, then check out [this video](https://vimeo.com/393161794) and the [react-seed-app](https://github.com/sasjs/react-seed-app) which provides some boilerplate.
For more information on building web apps with SAS, check out [sasjs.io](https://sasjs.io)
## None of this makes sense. How do I build an app with it?
Ok ok. Deploy this [example.html](https://github.com/sasjs/adapter/blob/main/example.html) file to your web server, and update `servertype` to `SAS9` or `SASVIYA` depending on your backend.
Ok ok. Deploy this [example.html](https://raw.githubusercontent.com/sasjs/adapter/master/example.html) file to your web server, and update `servertype` to `SAS9` or `SASVIYA` depending on your backend.
The backend part can be deployed as follows:
@@ -43,6 +43,6 @@ You now have a simple web app with a backend service!
# More resources
For more information specific to this adapter you can check out this [user guide](https://sasjs.io/sasjs/sasjs-adapter/) or the [technical](http://adapter.sasjs.io/) documentation.
For more information and examples specific to this adapter you can check out the [user guide](https://sasjs.io/sasjs-adapter/) or the [technical](http://adapter.sasjs.io/) documentation.
For more information on building web apps in general, check out these [resources](https://sasjs.io/training/resources/) or contact the [author](https://www.linkedin.com/in/allanbowe/) directly.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,12 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/combine/npm/chart.js@2.9.3,npm/jquery@3.5.1,npm/@sasjs/adapter@1"></script>
<script>
var sasJs = new SASjs.default({appLoc: "/Products/demo/readme"
,serverType:"SAS9", debug: "false"
var sasJs = new SASjs.default({
appLoc: "/Public/app/readme"
,serverType:"SAS9"
,debug: false
});
function initSasJs() {
$('#loading-spinner').show()
@@ -70,6 +70,8 @@
});
}
</script>
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid" style="text-align: center; margin-top: 10px;">
@@ -104,4 +106,4 @@
<canvas id="myChart" style="display: none;"></canvas>
</div>
</body>
</head>
</head>

Some files were not shown because too many files have changed in this diff Show More