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

API connector to model server #202

Merged
merged 197 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 188 commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
c8ff3f9
add mongoose model for model api fields
imda-peckyoke Jun 27, 2023
ac6bde2
add custom scalars for openapi types
imda-peckyoke Jun 27, 2023
6f62ed7
add custom scalars for openapi types
imda-peckyoke Jun 27, 2023
0f4983e
add graphql definitions for openapi
imda-peckyoke Jun 27, 2023
5343c3e
remove assets/
imda-peckyoke Jun 27, 2023
ba3b90e
add modelAPI to ModelFileInput
imda-peckyoke Jun 27, 2023
4647b9f
graphql definitions for model api
imda-peckyoke Jun 27, 2023
b734333
add request config section
imda-peckyoke Jun 27, 2023
5453b08
add requestConfig
imda-peckyoke Jun 27, 2023
d050c6b
add custom scaler OpenAPIAuthType
imda-peckyoke Jun 27, 2023
edf263f
adjust required fields and use custom scaler OpenAPIAuthType
imda-peckyoke Jun 27, 2023
07f6c89
add mutation apis
imda-peckyoke Jun 27, 2023
e50cc6e
add API and methods to export openapi schema
imda-peckyoke Jun 27, 2023
18277e0
add validator for modelAPI and returns meaningful error messages on e…
imda-peckyoke Jun 30, 2023
34e8607
add maxItems for array properties
imda-peckyoke Jun 30, 2023
fd5d4b8
prettier
imda-peckyoke Jul 3, 2023
76da611
prettier
imda-peckyoke Jul 3, 2023
dee82a5
prettier
imda-peckyoke Jul 3, 2023
e06a110
add apiConfig to project schema
imda-peckyoke Jul 3, 2023
db71dd0
move apiConfig to under modelAndDatasets
imda-peckyoke Jul 3, 2023
b523079
add exception handling for queueTests and pass the mongoose document …
imda-peckyoke Jul 3, 2023
f0c3308
add error message and description when test output is invalid
imda-peckyoke Jul 4, 2023
29d0dd4
add option to run validator upon update
imda-peckyoke Jul 4, 2023
209f0c9
Merge branch 'main' into feature/issue-41/api-connector-to-model-server
imda-amdlahir Jul 6, 2023
b69d734
fix error where urlParams undefined
imda-peckyoke Jul 7, 2023
ddd09c8
Rename ModelAPIInput in modelapi.graphql to OpenAPIInput to over nam…
imda-peckyoke Jul 7, 2023
ab65d75
update api connector api to rework the handing for array and support …
imda-peckyoke Jul 10, 2023
cbaf818
Merge branch 'main' into feature/issue-41/api-connector-to-model-server
imda-lionelteo Jul 11, 2023
1482687
add checks for path when url has path parameters
imda-peckyoke Jul 11, 2023
4b1f618
Merge branch 'feature/issue-41/api-connector-to-model-server' of gith…
imda-peckyoke Jul 11, 2023
048191c
add init apiconnector
OctoDevNinja Jul 11, 2023
9532f2b
add name field to requestBody type, to allow user to enter property n…
imda-peckyoke Jul 12, 2023
dbaf623
Merge branch 'feature/issue-41/api-connector-to-model-server' of gith…
imda-peckyoke Jul 12, 2023
70b96f8
update logic to model manager and plugins manager
imda-lionelteo Jul 12, 2023
7ce838f
update format to identify format for data model and pipeline
imda-lionelteo Jul 13, 2023
d21abf0
provide fix for kwargs inputs, clean up apiconnector and plugin test
imda-lionelteo Jul 14, 2023
42c080e
check for filePath instead of modelFile
imda-peckyoke Jul 14, 2023
0c36920
add jest/globals
imda-peckyoke Jul 14, 2023
49d7657
fix test unit errors
imda-peckyoke Jul 14, 2023
8b40f59
Merge branch 'main' into feature/issue-41/api-connector-to-model-server
imda-lionelteo Jul 14, 2023
5b075ef
remove mock-fs
imda-peckyoke Jul 17, 2023
1b382c9
remove mock-fs and fix import issues
imda-peckyoke Jul 17, 2023
5753e4a
Merge branch 'feature/issue-41/api-connector-to-model-server' of gith…
imda-peckyoke Jul 17, 2023
8bbeb71
check urlParams defined for paths
imda-peckyoke Jul 21, 2023
b0eb862
add tests for graphql api for model api
imda-peckyoke Jul 21, 2023
6240b72
bare api config screen
imda-amdlahir Jul 11, 2023
718ed8e
api config form and select input components
imda-amdlahir Jul 12, 2023
a901caa
media type field
imda-amdlahir Jul 12, 2023
d6e051c
typecast selectinput option to SelectOption type
imda-amdlahir Jul 13, 2023
2b5c6c7
remove unused css from selectinput component
imda-amdlahir Jul 13, 2023
a4c488f
refactor selectinput options to enums
imda-amdlahir Jul 13, 2023
f1d4707
move select options definitions to separate ts file
imda-amdlahir Jul 13, 2023
4b39446
separate api params input components and tweak css white spaces
imda-amdlahir Jul 16, 2023
b567542
add url parameter type dropdown with help texts tooltips
imda-amdlahir Jul 17, 2023
ff5c1c3
implement editable already added url params and body props
imda-amdlahir Jul 17, 2023
3bf6f84
make already added request headers editable
imda-amdlahir Jul 17, 2023
a9ba780
media type input under response tab
imda-amdlahir Jul 17, 2023
57eec9f
add and edit response properties
imda-amdlahir Jul 17, 2023
38124f6
implement drag drop url params list items
imda-amdlahir Jul 17, 2023
6638f4c
add maxlengths to model api text inputs
imda-amdlahir Jul 18, 2023
49c6da0
aligning model api types to graphql types and refactoring form manage…
imda-amdlahir Jul 18, 2023
4585335
formik fieldarray, separating tabcontent component, generic type for …
imda-amdlahir Jul 20, 2023
a044190
add reactpropid to urlparam type
imda-amdlahir Jul 20, 2023
eb6a205
fix fieldarray
imda-amdlahir Jul 20, 2023
6572201
ref imperative handle to forward arrayhelpers ref for dragdrop
imda-amdlahir Jul 21, 2023
f9afe7a
url params field array completed
imda-amdlahir Jul 21, 2023
5d218dd
fine-tune param input styles
imda-amdlahir Jul 23, 2023
0429f4d
add mediatype input in parameters tab
imda-amdlahir Jul 23, 2023
cc1d205
all tab content moved into sub components
imda-amdlahir Jul 24, 2023
0bcd6a8
add project with api model to queueTests
imda-peckyoke Jul 24, 2023
8cf7814
urlParams paths and queries switch handling
imda-amdlahir Jul 24, 2023
c1b4082
track missed tab components
imda-amdlahir Jul 24, 2023
44e0888
create new modelapi mutation method
imda-amdlahir Jul 24, 2023
2ebfd29
implement other request config tab and result modal
imda-amdlahir Jul 25, 2023
924f251
added model api form formik validation schema
imda-amdlahir Jul 25, 2023
fc4ee58
Merge pull request #143 from IMDA-BTG/feature/api-config-ui
imda-amdlahir Jul 25, 2023
c57de90
fix password field null value with optional chaining operator
imda-amdlahir Jul 25, 2023
708d759
add page level error message on api config form
imda-amdlahir Jul 25, 2023
2ff6f47
dissmisable page level error alert on api config
imda-amdlahir Jul 25, 2023
62849b5
adjust form flex width properties
imda-amdlahir Jul 25, 2023
fb97588
add additional test cases for model api
imda-peckyoke Jul 25, 2023
fb6bb41
Merge branch 'feature/issue-41/api-connector-to-model-server' of gith…
imda-peckyoke Jul 25, 2023
af12beb
add optional id arguments to modelFiles query
imda-amdlahir Jul 26, 2023
dce2102
add dedicated onchange prop in select input to supportr formik handle…
imda-amdlahir Jul 26, 2023
211475c
ssr model config for view and edit modes of api config form
imda-amdlahir Jul 26, 2023
af58d14
edit and save api config feature
imda-amdlahir Jul 26, 2023
2e0d61e
group apiconfig components in subfolder and link edit mode from model…
imda-amdlahir Jul 26, 2023
c5e6a23
update content and hide edit button for new mode
imda-amdlahir Jul 26, 2023
1ea5d27
add model api config delete feature
imda-amdlahir Jul 27, 2023
1fdd7ce
add localhost to url validation pattern
imda-amdlahir Jul 27, 2023
c9ca769
fix api delete confirmation cancel handler
imda-amdlahir Jul 27, 2023
effb259
update changes to apiconnector
imda-lionelteo Jul 27, 2023
b929450
params mapping modal in progress
imda-amdlahir Jul 27, 2023
3dccb62
pass param name value to selectinput in params mapper
imda-amdlahir Jul 28, 2023
e1300a6
added code to support additional server options, support reading requ…
imda-lionelteo Jul 28, 2023
a03636f
fix a bug where it overwrites the data_mapping list
imda-lionelteo Jul 31, 2023
5c01933
add requestConfig to apiConfig sent
imda-peckyoke Aug 1, 2023
6ac7e51
Merge branch 'main' into feature/issue-41/api-connector-to-model-server
imda-lionelteo Aug 1, 2023
7168f53
form field level validations
imda-amdlahir Aug 1, 2023
9298957
request body params duplicate validation
imda-amdlahir Aug 2, 2023
f733647
parameters to dataset columns mapping ui
imda-amdlahir Aug 2, 2023
0375308
include modelAPI in get_project gql
imda-amdlahir Aug 2, 2023
8e4109b
Merge pull request #155 from IMDA-BTG/feature/api-config-ui
imda-amdlahir Aug 2, 2023
dca93f6
select model dset minor refactor... wip
imda-amdlahir Aug 2, 2023
fe7c351
params mapping - use textinput when no data columns
imda-amdlahir Aug 3, 2023
b3a9d8b
add entrypoint to edit config on select Model screen
imda-amdlahir Aug 3, 2023
7b07954
update api form validation schema and input dependencies
imda-amdlahir Aug 3, 2023
b6c4101
update requestConfig to new configurations for backend
imda-peckyoke Aug 7, 2023
537fa99
update graphql queries to new connection settings for backend
imda-peckyoke Aug 7, 2023
e2df873
updated fmtr and openapiconnector to support array and handle request…
imda-kelvinkok Aug 7, 2023
cbef3af
Merge branch 'feature/issue-41/api-connector-to-model-server' of http…
imda-kelvinkok Aug 7, 2023
55cbddb
cast modelapi gql response number values to string for formik and rec…
imda-amdlahir Aug 4, 2023
52b94c9
update api form validation schema to validate parameters and additona…
imda-amdlahir Aug 7, 2023
5031c0a
set default parameters on tab content urlparams render, add connectio…
imda-amdlahir Aug 8, 2023
a12117e
checkbox component and isArray fields
imda-amdlahir Aug 8, 2023
fd96179
format as array checkbox
imda-amdlahir Aug 8, 2023
7e63778
adjust maximum bearer token
imda-amdlahir Aug 8, 2023
e0b9d7e
remove null authtypeconfig property at consume
imda-amdlahir Aug 8, 2023
b117b1a
set default authTypeConfig
imda-amdlahir Aug 8, 2023
6706886
remove name field if paths not array format
imda-amdlahir Aug 8, 2023
60413c0
fix tabcontent request body properties undefined
imda-amdlahir Aug 8, 2023
65fb3b6
fix do not return at find duplicate request body param
imda-amdlahir Aug 8, 2023
8e23697
added comments from test outcome
imda-amdlahir Aug 8, 2023
90bce6a
updated to pass all basic cases for 0.3.0
imda-kelvinkok Aug 11, 2023
eda0707
removed prints
imda-kelvinkok Aug 11, 2023
d32f6b3
fix form values null or undefined fields hadling issues
imda-amdlahir Aug 10, 2023
1945618
new model api config initial test spec
imda-amdlahir Aug 11, 2023
f384810
element test ids and form component unit tests - main 9 tests cases
imda-amdlahir Aug 14, 2023
a4e8fc6
api config form array support, test cases and add connection settings…
imda-amdlahir Aug 15, 2023
cf77737
modified codes to retrieve fieldname from response
imda-kelvinkok Aug 17, 2023
1c16761
fix tooltip placements in connection settings tab
imda-amdlahir Aug 17, 2023
016de57
model list api config icon change and preview details change
imda-amdlahir Aug 17, 2023
b31b1e4
change model list delete confirmation to use confirmationdialog compo…
imda-amdlahir Aug 18, 2023
18bc9f0
Merge branch 'feature/api-config-ui' into feature/issue-41/api-connec…
imda-amdlahir Aug 18, 2023
2ed47b0
update model list preview details buttons and disable edit icon on se…
imda-amdlahir Aug 18, 2023
331559b
api model config flow visual touchups and back to select dataset navi…
imda-amdlahir Aug 18, 2023
3bba54f
desc form ok btn hanndling and field level error assertions
imda-amdlahir Aug 18, 2023
1b0bc4d
update unit tests - assert batch limit required field level error
imda-amdlahir Aug 21, 2023
9fe80ef
Merge branch 'main' into feature/issue-41/api-connector-to-model-server
imda-amdlahir Aug 21, 2023
8dda74f
update ui test snapshot because of iconbutton component update from main
imda-amdlahir Aug 21, 2023
89dde9b
Merge branch 'main' of https://github.com/imda-btg/aiverify into issu…
imda-kelvinkok Sep 6, 2023
5cd4610
updated with first cut of batching
imda-kelvinkok Sep 14, 2023
f85d71d
updated batching to use application/json. added input validation and …
imda-kelvinkok Sep 18, 2023
c5dede1
update to support application/json array and response
imda-peckyoke Sep 25, 2023
beef710
updated algos and modelswith new data type (list) to be used with ope…
imda-kelvinkok Sep 25, 2023
9f98c39
Merge branch 'feature/issue-41/api-connector-to-model-server' of http…
imda-kelvinkok Sep 25, 2023
749482f
update schema for response
imda-peckyoke Sep 26, 2023
c42d796
Merge branch 'feature/issue-41/api-connector-to-model-server' of gith…
imda-peckyoke Sep 26, 2023
cc8f2a8
form guideline component
imda-amdlahir Aug 29, 2023
78f1e7d
form guideline field highlights
imda-amdlahir Sep 13, 2023
b08ad6c
form guideline tooltips
imda-amdlahir Sep 13, 2023
be03e45
refactor formGuide component and variable names to presetHelper
imda-amdlahir Sep 14, 2023
66d8d31
remove unused imports
imda-amdlahir Sep 14, 2023
bfdba7d
Merge pull request #183 from IMDA-BTG/feature/api-config-ui
imda-amdlahir Sep 27, 2023
ac42bf9
added response processing codes for array and object
imda-kelvinkok Sep 27, 2023
2cb0266
add openapi-enforcer package
imda-peckyoke Sep 28, 2023
15a6307
1) update response body: add schema field for response instead of usi…
imda-peckyoke Sep 28, 2023
696843d
add responseBody with schema
imda-peckyoke Sep 28, 2023
af2496c
fix bug with URL parsing
imda-peckyoke Sep 28, 2023
2bf1799
updated API connector to support nested array and cast float64
imda-kelvinkok Oct 5, 2023
ff24c31
Merge remote-tracking branch 'origin/main' into issue-41/api-connecto…
imda-kelvinkok Oct 5, 2023
b8ed80e
updated apiconnector with aiometer codes to handle rate limiting
imda-kelvinkok Oct 10, 2023
d9e9931
Merge branch 'main' into feature/issue-41/api-connector-to-model-server
imda-amdlahir Oct 11, 2023
e7338b2
api config form empty properties and parameters validation and error msg
imda-amdlahir Sep 27, 2023
97a0c05
update input names in unit tests and fix apiconfig form validation sc…
imda-amdlahir Sep 27, 2023
af30ce9
schema in api connection response config
imda-amdlahir Oct 9, 2023
7b2093e
api connector testcases 13 and 14 implementation
imda-amdlahir Oct 11, 2023
be2bbf8
api connector tc015 ok
imda-amdlahir Oct 11, 2023
c0692d5
update gql in assets modellist
imda-amdlahir Oct 11, 2023
df22d29
api connector response schema field validations, dynamic field name u…
imda-amdlahir Oct 12, 2023
27e3190
api connector response preview
imda-amdlahir Oct 12, 2023
1c07792
fix response previews string quotes
imda-amdlahir Oct 12, 2023
d0b18c3
update portal unit tests
imda-amdlahir Oct 12, 2023
f86c5e9
fix api connector array items type not displayed
imda-amdlahir Oct 12, 2023
5ced6bd
updating isArray skips in api connector
imda-amdlahir Oct 13, 2023
76dab6d
move api connector batch ui fields to request body tab
imda-amdlahir Oct 16, 2023
0a0ab35
remove format as array ui from api connector url params tab
imda-amdlahir Oct 16, 2023
5cc17c4
wire up response media type to request tab batch multipart in api con…
imda-amdlahir Oct 16, 2023
ec0bdf6
fixed timeout issue with httpx connection
imda-kelvinkok Oct 16, 2023
dc0c735
Merge branch 'feature/issue-41/api-connector-to-model-server' of http…
imda-kelvinkok Oct 16, 2023
7d39800
assert response mediatype disabled and preset in api connector unit test
imda-amdlahir Oct 20, 2023
fb22ac1
add number to open api datatype dropdown in api connector
imda-amdlahir Oct 20, 2023
cccda3e
complete api conn datastructure previewer tests
imda-amdlahir Oct 20, 2023
52800a2
Add response step api connector preset helper ui
imda-amdlahir Oct 20, 2023
0ad4fad
api connector duplicate name check and fix all static typescript lint…
imda-amdlahir Oct 23, 2023
f89e51b
fix body and url static types in selectDatasetAndModel
imda-amdlahir Oct 23, 2023
e25e400
fix api connector ui schema type is always array for app/json media
imda-amdlahir Oct 23, 2023
8dd7f8b
Merge branch 'main' into feature/issue-41/api-connector-to-model-server
imda-amdlahir Oct 24, 2023
94b11e7
remove console log from mockdata in apigw
imda-amdlahir Oct 24, 2023
57714a7
update url regex in api conn
imda-amdlahir Oct 24, 2023
74b06c9
portal prettier lint fix and api conn unit test timeout increased
imda-amdlahir Oct 24, 2023
0e73a60
bump up next.js minor version to resolve babel vulnerability
imda-amdlahir Oct 24, 2023
eabc31b
remove __typename from apiconfig object returned from get project by id
imda-amdlahir Oct 25, 2023
2682cc6
updated dist packages of plugins and added aiometer in req
imda-kelvinkok Oct 29, 2023
46dcb30
fix broken api connector new config next button when triggered from p…
imda-amdlahir Nov 1, 2023
16d61b0
hide ssl verify checkbox in api conn
imda-amdlahir Nov 3, 2023
9e0c346
updated pdp dist from predict_proba to predict and added checks for n…
imda-kelvinkok Nov 8, 2023
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
3 changes: 2 additions & 1 deletion ai-verify-apigw/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module.exports = {
"browser": true,
"node": true,
"commonjs": true,
"es2021": true
"es2021": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
Expand Down
Loading