Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

adding error logs at the end result #33

Open
wants to merge 198 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
a814651
add support for graphql alias in example query
chadbumstead Sep 28, 2020
6f194af
simplify query tree
chadbumstead Sep 28, 2020
2df4a65
add comments
chadbumstead Sep 28, 2020
0321514
add p-iteration, terminal-kit, and lint
chadbumstead Sep 28, 2020
2630679
support data passing
chadbumstead Sep 28, 2020
8a2bbf5
mutation support
chadbumstead Sep 28, 2020
e7055ba
fix query generation tests
chadbumstead Sep 28, 2020
53e62a6
fix queryTreeToGraphQLString tests
chadbumstead Sep 28, 2020
9044aee
Merge branch 'mutations' into data-passing
chadbumstead Sep 28, 2020
7b6e272
revert aqtToQuery changes
chadbumstead Sep 28, 2020
3e13042
used mutation name coming from introspection
chadbumstead Sep 28, 2020
e985c83
friendly name
chadbumstead Sep 28, 2020
14f3aef
naming more readable
chadbumstead Sep 28, 2020
50eb93c
include mutations in coverage stats
chadbumstead Sep 28, 2020
599b7fe
add mutation comment test
chadbumstead Sep 28, 2020
bfab273
Merge branch 'mutations' into data-passing
chadbumstead Sep 28, 2020
8554c1b
refactor test runner logic for testing
chadbumstead Sep 29, 2020
0b30927
add test runner test
chadbumstead Sep 29, 2020
7884f47
return queries and mutations together
chadbumstead Sep 29, 2020
6c51994
Merge branch 'mutations' into data-passing
chadbumstead Sep 29, 2020
820ed98
fix testRunner reference
chadbumstead Sep 29, 2020
35300ca
add prettier and eslint configs
chadbumstead Sep 29, 2020
7f9b2a4
prettier fixes
chadbumstead Sep 29, 2020
6b2f595
temporarily prevent aliasing to get data passing working
chadbumstead Sep 29, 2020
2518deb
fix eval responseData
chadbumstead Sep 29, 2020
c2b87f4
add test script
chadbumstead Sep 29, 2020
dbcd6df
support for mutation queries
chadbumstead Sep 29, 2020
412e333
output query on error
chadbumstead Sep 29, 2020
86a423c
update getExamplesFrom to support directives
chadbumstead Sep 29, 2020
5e01825
added ts to eslint
chadbumstead Sep 30, 2020
6413c19
lint packages
chadbumstead Sep 30, 2020
45f6fa2
eslinting
chadbumstead Sep 30, 2020
eb0d6e0
use query class to handle parsing query parts
chadbumstead Sep 30, 2020
3466272
add sla to query class
chadbumstead Sep 30, 2020
e33a6dd
improve hot reloading
chadbumstead Sep 30, 2020
35e2fbf
output ms and sla
chadbumstead Sep 30, 2020
84e0df0
fail test when not meeting SLA
chadbumstead Sep 30, 2020
4127815
allow query to run even if sla is not met
chadbumstead Oct 1, 2020
02c283c
setup dependent queries
chadbumstead Oct 1, 2020
2d7a6c7
walk dependents to order them
chadbumstead Oct 1, 2020
0472431
margin for checkmark
chadbumstead Oct 1, 2020
38cdd95
make naming clear
chadbumstead Oct 1, 2020
020a1c0
validate when minimum is not met
chadbumstead Oct 1, 2020
6b92f07
remove evil eval
chadbumstead Oct 1, 2020
6f36bc1
show eta
chadbumstead Oct 2, 2020
bbab9e4
import ms
chadbumstead Oct 2, 2020
3303e8e
put @last() queries last
chadbumstead Oct 2, 2020
0064dc4
output a query for each eample query
chadbumstead Oct 2, 2020
afd7daf
allow passing multiple parameters
chadbumstead Oct 2, 2020
759a730
handle no argument query
chadbumstead Oct 3, 2020
bdb3272
remove und test
chadbumstead Oct 7, 2020
1fbfdcc
use handlebars style parameters
chadbumstead Oct 8, 2020
32d7ca0
fix queryTreeToGraphQLString tests
chadbumstead Oct 8, 2020
97be6a8
add aliasing to tests
chadbumstead Oct 8, 2020
329f287
use typescript for tests
chadbumstead Oct 8, 2020
0e0d005
Convert remaining js files to ts
chadbumstead Oct 9, 2020
7549b9d
trying to resolve chai issues
chadbumstead Oct 9, 2020
b3dd1b6
converted unit tests to use jest
chadbumstead Oct 9, 2020
5b42512
jest for tests
chadbumstead Oct 11, 2020
33a721e
cleanup .js files
chadbumstead Oct 11, 2020
8e5cc95
jsdoctest init
chadbumstead Oct 11, 2020
e9acc11
update all package versions
chadbumstead Oct 11, 2020
944065e
convert all tests to jest
chadbumstead Oct 12, 2020
7c2ee18
test
chadbumstead Oct 12, 2020
1626a69
remove index.js
chadbumstead Oct 12, 2020
4d69dad
move serverUrl
chadbumstead Oct 12, 2020
37290d1
ability to mock sample playlist service for jest
chadbumstead Oct 13, 2020
bcc7c98
Allow cli to run local playlist test
chadbumstead Oct 13, 2020
b52495c
verbose
chadbumstead Oct 13, 2020
d645071
-v for displaying query
chadbumstead Oct 13, 2020
6673ae1
fix sla parsing
chadbumstead Oct 13, 2020
3542b50
fix bug in skip logic
chadbumstead Oct 13, 2020
521a204
Initial commit
chad-superhifi Oct 14, 2020
702a6d8
add readme
chadbumstead Oct 14, 2020
1386251
Delete LICENSE
chad-superhifi Oct 14, 2020
65fdef6
Merge branch 'cli' of github.com:chad-superhifi/graphql-service-teste…
chadbumstead Oct 14, 2020
34c1818
Merge branch 'main' of github.com:chad-superhifi/graphql-service-tester
chadbumstead Oct 14, 2020
3b3bced
main
chadbumstead Oct 14, 2020
76cd1fa
Merge branch 'cli' into main
chadbumstead Oct 14, 2020
788c364
update repo info
chadbumstead Oct 14, 2020
229b73a
remove contact
chadbumstead Oct 14, 2020
757fb3c
Merge branch 'main'
chadbumstead Oct 17, 2020
5fb88a9
Change to MIT license
chadbumstead Oct 17, 2020
4d61f43
readme license update
chadbumstead Oct 17, 2020
c6bdbce
data passing readme clarification by Dillon
chadbumstead Oct 17, 2020
1de9280
add smoke test
chadbumstead Oct 17, 2020
867ba6b
add localhost to launch
chadbumstead Oct 30, 2020
55c8cc3
set default sla timeout to 2 minutes
chadbumstead Oct 30, 2020
a457df6
version bump
chadbumstead Oct 30, 2020
bbfb577
updated lib
chadbumstead Oct 30, 2020
a43514b
add nodemon to devDependencies
chadbumstead Nov 11, 2020
ba9da18
comment out log
chadbumstead Nov 11, 2020
226ac1f
fix broken test
chadbumstead Nov 11, 2020
793fac0
add exit code
chadbumstead Nov 11, 2020
b9d803f
bump version
chadbumstead Nov 11, 2020
c698b72
Bump ini from 1.3.5 to 1.3.8
dependabot[bot] Dec 13, 2020
26cea0c
Bump node-notifier from 8.0.0 to 8.0.1
dependabot[bot] Dec 22, 2020
09410ba
Bump axios from 0.20.0 to 0.21.1
dependabot[bot] Jan 6, 2021
6cf4f63
Bump @graphql-tools/git-loader from 6.2.4 to 6.2.6
dependabot[bot] Jan 29, 2021
c2d5e59
Merge pull request #7 from chad-superhifi/dependabot/npm_and_yarn/gra…
chad-superhifi Feb 23, 2021
0164893
Merge branch 'master' into dependabot/npm_and_yarn/axios-0.21.1
chadbumstead Feb 23, 2021
7460494
Merge pull request #6 from chad-superhifi/dependabot/npm_and_yarn/axi…
chad-superhifi Feb 23, 2021
6eff71d
Merge branch 'master' into dependabot/npm_and_yarn/node-notifier-8.0.1
chadbumstead Feb 23, 2021
cd50802
Merge pull request #4 from chad-superhifi/dependabot/npm_and_yarn/ini…
chad-superhifi Feb 23, 2021
482db5f
remove true hardcode in skipping logic
chadbumstead Mar 9, 2021
4740c46
Merge pull request #8 from chad-superhifi/fix-tests
chad-superhifi Mar 9, 2021
f25e185
Add @wait to readme
chadbumstead Mar 9, 2021
7d25255
add @wait directive
chadbumstead Mar 10, 2021
a714788
bump version
chadbumstead Mar 10, 2021
c618535
Merge branch 'delay-before-running' into release-v1.1
chadbumstead Mar 10, 2021
cdc3e6e
add $ARGS
chadbumstead Mar 11, 2021
788e64b
Bump y18n from 4.0.0 to 4.0.1
dependabot[bot] Apr 1, 2021
81bb1fd
prevent cyclical loop
chadbumstead Apr 19, 2021
c353aa7
playlist:debug script
chadbumstead Apr 19, 2021
dd97eb4
Merge pull request #10 from chad-superhifi/dependabot/npm_and_yarn/y1…
chad-superhifi Apr 19, 2021
3096aec
Merge branch 'master' into dependabot/npm_and_yarn/node-notifier-8.0.1
chadbumstead Apr 19, 2021
88fa8e8
Merge pull request #11 from chad-superhifi/dependabot/npm_and_yarn/no…
chad-superhifi Apr 19, 2021
46a4d09
upgrade to fresh: 0.5.2
chadbumstead Apr 19, 2021
ec0d3d7
Merge pull request #12 from chad-superhifi/dependabot/fresh
chad-superhifi Apr 19, 2021
4a9c42d
update to typescript 4.2.4
chadbumstead Apr 19, 2021
122f59e
Merge pull request #13 from chad-superhifi/upgrade-typescript-4.24
chad-superhifi Apr 19, 2021
7db5ebf
upgrade qs to 6.3.2
chadbumstead Apr 19, 2021
027e212
Merge pull request #14 from chad-superhifi/dependabot/qs
chad-superhifi Apr 19, 2021
695361b
upgrade to mime 1.4.1
chadbumstead Apr 19, 2021
88d2c6e
Merge pull request #15 from chad-superhifi/dependabot/mime
chad-superhifi Apr 19, 2021
15f53e0
Create deno.yml
chad-superhifi Apr 19, 2021
e6fcc6a
Update deno.yml
chad-superhifi Apr 19, 2021
ad7e2a3
Update deno.yml
chad-superhifi Apr 19, 2021
2f882f0
Update deno.yml
chad-superhifi Apr 20, 2021
0276f0c
fix ensure minimum test
chadbumstead Apr 20, 2021
6fd825d
Merge pull request #16 from chad-superhifi/fix-ensure-minimum-test
chad-superhifi Apr 20, 2021
aea9f8a
Merge branch 'master' into output-pluggedin-params
chadbumstead Apr 20, 2021
3181ea7
compiled js
chadbumstead Apr 20, 2021
093c9cf
Merge pull request #17 from chad-superhifi/output-pluggedin-params
chad-superhifi Apr 20, 2021
80393f2
Add multiple directive unit tests
chadbumstead Apr 21, 2021
03c1009
v1.2.0
chadbumstead Apr 21, 2021
3ec52ba
Merge pull request #18 from chad-superhifi/multiple-directives
chad-superhifi Apr 21, 2021
8c65b73
throw on plugin
chadbumstead Apr 22, 2021
136edb0
fix queryClass name empty string
chadbumstead Apr 22, 2021
d32afd2
comment out skipping logic to fix not selecting all fields
chadbumstead Apr 22, 2021
1c4b801
Merge pull request #19 from chad-superhifi/multiple-directives
chad-superhifi Apr 22, 2021
317d578
Create node.js.yml
chad-superhifi Apr 23, 2021
3754ff9
Fix mime integrity
chadbumstead Apr 23, 2021
dad27ae
qs integrity fix
chadbumstead Apr 23, 2021
d8aa6d1
fix fresh integrity
chadbumstead Apr 23, 2021
13936e4
Delete deno.yml
chad-superhifi Apr 23, 2021
38fcf3f
compiled
chadbumstead Apr 23, 2021
8c95826
fix directive issues
chadbumstead Apr 24, 2021
ceaacfe
Merge pull request #25 from chad-superhifi/multiple-directives
chad-superhifi Apr 24, 2021
7ce5e4b
bump v1.2.1
chadbumstead Apr 24, 2021
3b46b85
Merge pull request #26 from chad-superhifi/multiple-directives
chad-superhifi Apr 24, 2021
d1be217
allow directives to be optional
chadbumstead May 28, 2021
635715b
default vebose
chadbumstead May 28, 2021
62c67d3
show alias as part of signature
chadbumstead May 28, 2021
cb8b8bb
increase width
chadbumstead May 28, 2021
bf46191
compiled
chadbumstead May 28, 2021
937f7e8
improve graphql error handling
chadbumstead Jun 1, 2021
f0703e0
handle other cases after getting first item of array
chadbumstead Jun 1, 2021
b88d2b4
cleanup logs
chadbumstead Jun 1, 2021
846e88e
allow to expand
chadbumstead Jun 1, 2021
ad63a24
bump version
chadbumstead Jun 1, 2021
9e172c5
Merge pull request #30 from chad-superhifi/optional-directives
chad-superhifi Jun 1, 2021
3c4f6b1
upgrade terminal kit
chadbumstead Jun 1, 2021
b14caf7
remove consoles
chadbumstead Jun 1, 2021
40b2bf5
changes
chadbumstead Jun 1, 2021
2604e99
add border
chadbumstead Jun 1, 2021
afdbc8c
rollback terminal upgrade
chadbumstead Jun 2, 2021
9e78201
Add new test for string response
chadbumstead Jun 2, 2021
b3bf3af
rename test
chadbumstead Jun 2, 2021
95304a7
skip broken tests
chadbumstead Jun 2, 2021
fae5b33
remove verbose output doubling
chadbumstead Jun 2, 2021
e314d37
add fix to allow optional fields
chadbumstead Jun 2, 2021
c9e50fa
Merge pull request #32 from chad-superhifi/uprade-terminal-kit
chad-superhifi Jun 2, 2021
ae2ee18
Bump lodash from 4.17.20 to 4.17.21
dependabot[bot] Jun 2, 2021
56e4192
Bump hosted-git-info from 2.8.8 to 2.8.9
dependabot[bot] Jun 2, 2021
03a1918
Bump ua-parser-js from 0.7.22 to 0.7.28
dependabot[bot] Jun 2, 2021
08a1885
remove test terminal
chadbumstead Jun 2, 2021
fffd03d
Merge pull request #33 from chad-superhifi/uprade-terminal-kit
chad-superhifi Jun 2, 2021
959cd89
bump version
chadbumstead Jun 2, 2021
74458f0
Merge pull request #34 from chad-superhifi/uprade-terminal-kit
chad-superhifi Jun 2, 2021
7a71318
tsc
chadbumstead Jun 2, 2021
c532508
Merge pull request #35 from chad-superhifi/uprade-terminal-kit
chad-superhifi Jun 2, 2021
2e44a75
Bump glob-parent from 5.1.1 to 5.1.2
dependabot[bot] Jun 12, 2021
31e4b5f
fixes to show error message when api is down
chadbumstead Jun 15, 2021
cd616fe
Bump postcss from 7.0.35 to 7.0.36
dependabot[bot] Jun 15, 2021
9fb5d61
Merge pull request #38 from chad-superhifi/dependabot/npm_and_yarn/po…
chad-superhifi Jun 15, 2021
8889fdc
Merge branch 'master' into dependabot/npm_and_yarn/glob-parent-5.1.2
chad-superhifi Jun 15, 2021
9c230b6
Bump normalize-url from 4.5.0 to 4.5.1
dependabot[bot] Jun 15, 2021
ea23e22
Merge pull request #28 from chad-superhifi/dependabot/npm_and_yarn/ho…
chad-superhifi Jun 15, 2021
5dc9b4b
Merge pull request #27 from chad-superhifi/dependabot/npm_and_yarn/ua…
chad-superhifi Jun 15, 2021
9e01cf4
Merge pull request #29 from chad-superhifi/dependabot/npm_and_yarn/lo…
chad-superhifi Jun 15, 2021
fe81712
Merge pull request #36 from chad-superhifi/dependabot/npm_and_yarn/no…
chad-superhifi Jun 15, 2021
cbde3b9
Merge pull request #37 from chad-superhifi/dependabot/npm_and_yarn/gl…
chad-superhifi Jun 15, 2021
1b297f5
Fix sla responseTime
chadbumstead Jun 25, 2021
d7587e4
compiled
chadbumstead Jun 25, 2021
803c176
Merge pull request #39 from chad-superhifi/fix-response-time-cli
chad-superhifi Jun 25, 2021
3c1bd8f
bump version
chadbumstead Jun 25, 2021
90561b4
Merge pull request #40 from chad-superhifi/fix-response-time-cli
chad-superhifi Jun 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"env": {
"browser": true,
"es2020": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"semi": "off"
}
}
30 changes: 30 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules/
node_modules
.vscode/
.c9/
.idea/
Expand Down
4 changes: 4 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
trailingComma: 'es5'
tabWidth: 2
singleQuote: true
printWidth: 120
30 changes: 30 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Test Sample Playlist",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/bin/cli.js",
"args": ["-v", "playlist"],
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/lib/**/*.js"],
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "node",
"request": "launch",
"name": "Launch Localhost 3000",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/bin/cli.js",
"args": ["-v", "http://localhost:3000/graphql"],
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/lib/**/*.js"],
"internalConsoleOptions": "openOnSessionStart"
}
]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"NOFOLLOW"
]
}
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2020 Super Hi-Fi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading