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

Node version V3 #491

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Node version V3 #491

merged 2 commits into from
Jan 4, 2024

Conversation

MXPOL
Copy link
Collaborator

@MXPOL MXPOL commented Jan 4, 2024

No description provided.

@MXPOL MXPOL merged commit 61907e2 into managed-adapter Jan 4, 2024
18 checks passed
@MXPOL MXPOL deleted the node-version branch January 4, 2024 09:27
Idokah added a commit that referenced this pull request Jan 4, 2024
* wip

* wip

* disconnected all database implementations from the adapter (Only mysql left)

* removed databases from main.yaml

* transferring find tests to query endpoint

* Data spi V3 (#353)

* Capabilities endpoint + test (#359)

* Managed adapter auth scheme (#360)

* adapter-auth: change according to Wix-Data returned response (#364)

* refactor: disable import of unsupported libraries (#361)

* Managed adapter lint fixes (#366)

* lint fixes

* enable husky

* refactor app data e2e (#372)

* refactor app_data_e2e

* .

* rebase

* filter by date v3 (#374)

* filter by date v3

* remove ts-ignore

* implementing errors spi (#365)

* implementing errors spi

* wip

* added some tests

* wip

* changed 400 to 500

* applied pr commesnts

* wip

* use data test support

* fix duplicate item insert test

* lint

Co-authored-by: Ido Kahlon <[email protected]>

* fixes for provision flow (#377)

* New Collection SPI implementation (#354)

* feat: new collection related types

* refactor: collection spi update

* feat: list all collection in the new format

* feat: getColumnCapabilitiesFor implementation in MySql

* feat: new type and interface methods

* feat: new collection implementations

* feat: changeColumn mysql implementation

* feat: new collection routes

* feat: some of the functions of the class will be optional

* feat: stream collection api

* test: expect to the right things

* feat: give subtype to field type

* test: new collection e2e tests

* feat: clear cache when refreshing

* tests: delete collection test

* feat: new column compare function and tests

* test: extract some function in class

* refactor: rename function in schema utils

* style: some lint fixes

* style: some lint fixes

* style: some lint fixes

* refactor: extracted function from schema provider

* test: new tests for schema utils

* test: remove unsupported field types from gen

* refactor: deleted old schema routes

* test: disable schema hooks test

* test: disabled test

* test: refactor some tests

* refactor: delete old schema functions

* refactor: extract some internal logic to function

* refactor: removed schemas tests

* refactor: schema import names

* test: schema hooks tests rename and skip

* refactor: lint fixes + extract collection types to a new file

* lint fixes after rebase

* test: new collection update test - change type

* fix: added collection name to catch in change type

* Change float default precision (#380)

* new number column - float ,mysql float- percision (15,2)

* fix unit tests

* test: moved some tests

Co-authored-by: Ido Kahlon <[email protected]>
Co-authored-by: Ido Kahlon <[email protected]>

* Capabilities property in collection object (#381)

* feat: capabilities property in collection object

* refactor: some refactors

* refactor: refactors based on review

* refactor: some refactors based on reviews

* refactor: rename some variables and methods

* temp - comment new tests

* insert/update null tests to v3 format (#388)

* Support queries on nested fields (MySQL) (#393)

* query validator, check only field name exists without nested fields

* add support for queries on nested fields in mysql

* can use any operator on object

* add data e2e test

* update columnCapabilities for object

* fix flaky test

* change upsert test to be bulk

* Collection and field capabilities tests refactor  (#396)

* refactor: extract ColumnsCapabilities to capabilities file

* test: accurate matchers

* refactor: extracted some types to a dedicated types file

* refactor: some refactors based on code review

* fix: disable sorting on object columns

* Errors v3 add e2e tests (#399)

* add some data errors, data e2e for error handling

* not supported by collection

* fix query_validator test

* fix e2e error tests

* without include (#401)

* New properties in CollectionCapabilities and FieldCapabilities (#398)

* fix: removed some unsupported ops from readwriteOps

* feat: new collection capabilities properties

* fix: added the missing properties

* Postgres to v3 (#400)

* wip

* wip

* all tests pass

* added postgres to workflows/main.yaml

* lint fixs

* fixed aggregations

* added nested fields query support

* applied pr changes

* fixed postgres data provider

* removed redundant code

* added nested fields filter unit test

* fix postgres collectionCapabilities

* fix flaky test postgres

* MSSQL to v3 (#395)

* remove comments from e2e setup/teardown, factory, replace createApp in e2e_resources

* fix typo

* mssql schema to V3

* lint

* fix schema_translator

* add sort,skip, limit to aggregate

* upsert mssql

* mssql upsert, change insert one by one to bulk insert

* lint

* fix sql_schema_translator

* fix schema, activate CI, workspace, etc.

* mssql errors to v3

* extractColumnName

* collectionCapabilities after rebase

* uncomment mssql cleanup

* fix typo

* Spanner to v3 (#404)

* e2e env

* schema

* return subtype with schema

* aggregate, upsert

* support nested queries

* partially error handling

* add to ci

* add default value for upsert

* Mongo to V3 (#397)

* feat: new capabilities file

* feat: new capabilities property in the schema list

* fix: fixed the types in mongo_schema_provider

* feat: upsert insert implementation

* feat: aggregate implementation

* feat: enable query nested fields

* feat: new supported ops and test

* test: enable mongo tests on github cli

* fix: updated mssql supported ops

* refactor: some changes according to the review

* test: new supported operations

* test: spanner supported ops update

* rebasing

* Data hooks to v3 (#413)

* read data hooks v3

* e2e read operations before refactoring

* inert, update e2es

* remove, truncate, error handling

* custom, service context

* fix postgres offset without having

* lint

* renaming, refactoring

* refactor payload

* Dynamo to v3 (#411)

* dynamo schema

* dynamo capabilities

* always readwrite

* lint

* support upsert

* support nested queries

* lint

* error handling

* CI

* refactor collectionDataFor

* pr comments applied

* Firestore v3 (#414)

* data e2e passes

* some cleanups

* added firestore to main.yaml and workspace.json

* applied pr comments

* removed test.only

* Update libs/external-db-firestore/src/firestore_schema_provider.ts

Co-authored-by: Max Polsky <[email protected]>

* fixed lint error

---------

Co-authored-by: Max Polsky <[email protected]>

* steam collection list correctly (#429)

* fix: stream collection

* test: new test for list all collections

* fix: correct collection get response

* Change response from schema service (#430)

* return array of collections from schema service and create the stream in router

* fix schema test

---------

Co-authored-by: Ido Kahlon <[email protected]>

* Fix collections API responses (#431)

* return the responses according to spi

* fix tests

* Bigquery to v3  (#421)

* init: bigquery to v3

* refactor: returned needed ops to the test

* fix: returned needed ops to test

* test: remove from each unsupported tests

* refactor: refactors based on comments

* feat: added QueryNestedFields support

* test: test for object type

* test: queries on nested fields test

* Schema hooks v3 (#428)

* schema hooks utils v3

* e2e

* beforeCreate, beforeUpdate

* beforeDelete

* after hooks tests

* typo

* retrieveSchemaFor instead retrieveAllCollections

* test custom,service context

* error handling tests

* rename files

* remove log

* Fix collection response (#442)

* rename json to object, datetime to timestamp, replace enums from numbers to strings

* fix tests

* support short syntax of filter (#444)

* don't authorize jwt on /provision (#440)

* Fix request context (#443)

* pass metaSiteId in res.locals after authorize

* change RequestContext type

* change requestContextFor

* pass to requestContextFor res.locals

* add \n after each item (#439)

* App info refactor (#446)

* feat: new route to get connection status

* refactors: some refactors

* rebase with sort of fixed test

* omit total count test fix (#458)

* Data SPI v4 implementation  (#459)

* feat: data spi v4 support

* test: data hooks tests refactor

* test: restore data e2e tests

* fix: dynamodb update item fix

* refactor: some code refactors based on reviews

* test: spanner test fix

* test: data-hooks tests refactor

* test: completed data_hooks tests

* refactors: some refactors

* fix: dynamo update test

* fix: mysql update fix

* feat: firestore new translated error

* refactor: some refactors

* jwt-verifier-decoder (#461)

* jwt-verifier-decoder

* undo comment

* Managed adapter lint fixes (#462)

* fix: dynamo type fix

* Collection v4 SPI support (#463)

* feat: collection v4 support

* test: enable error logs

* fix: mysql collection support

* fix: mssql collection support

* fix: spanner support

* fix: collection v4 spanner support

* feat: new PagingMode enum

* feat: new types

* refactor: type reorganization

* refactor: some refactors

* test: updated sql schemas trans tests

* refactor: some lint refactors

* refacotor: ts error fix

* refactor: ts compiltaion error

* rector: another ts compilation fix

* fix: ts ignore

* fix: another ts ignore cause github action fails

* refactor: removed unused arguments

* test: convert some tests to test each

* JWT config reader refactor (#467)

* feat: new jwt envs

* lint: lint fixes

* lint: some lint fixes

* Enable JWT middleware (#468)

* feat: new jwt middlware

* test: new auth test

* feat: unauthorized error

* refactor: data routes renaming (#469)

* refactor: remove allowed metaSite env (#473)

* Schema create refactor (#474)

* refacor: schema create fun refactor

* test: typo fix

* refactor: some refactors

* test: spanner test fix

* refactor: create collection in nosql db

* refactor: postgres refactor

* test:postgres test fix

* refactor: ignoreUndefinedProperties in firestore

* rector: updated max length of test field

* revert: revert field size

* fix: typo

* refctor: another refactor

* test: new schema tests

* refactor: last refactor

* fix: remove async

* refactor: typo

* route update for app info page (#476)

* Publish action refactor (#477)

* fix: added push all tag flag (#479)

* Projection fix (#480)

* fix: projection fix

* fix: _projection fix

* refactor: nop

* Fix column type (#481)

* Fix column type in SQL schema translator

* Fix column type in postgres schema translator

* Refactor SQL schema translation for text and object fields (#482)

* Refactor mysql schema translation for text and object
fields

* Refactor postgres schema translator & schema utils

* Refactor Postgres schema column translation

* Fix translation of date type in schemaTranslator

* Add support for time and date columns in BigQuery,
MSSQL, MySQL, and Postgres capabilities

* Refactor columnToDbColumnSql method in spanner schema
Column Translator

* Fix translation of DATE type in schemaTranslator

* updated supportedFieldTypes

* Data item modification result refactor (#483)

* refactor: DataItemModificationResult

* refactor: new wixdataitem function

* refactor: review changes

* Add debug logs using hooks (#484)

* add debug logs using hooks

* fix import

* json stringify (#485)

* Set timeout for requests (#486)

* set 2 minute timeout for request

* Refactor router timeout to use a constant

---------

Co-authored-by: Max Polsky <[email protected]>

* Collection change not supported error (#487)

* Add CollectionChangeNotSupportedError class and update error handling

* Fix CollectionChangeNotSupportedError constructor parameters

* Export error classes and use nullish coalescing operator

* Publish yaml refactor (#490)

* set node version to version 20 -  V3 (#491)

* Update Node.js version in workflows and Dockerfile

* Update Node.js version in GitHub Actions workflow

---------

Co-authored-by: Vered Rosen <[email protected]>
Co-authored-by: Max Polsky <[email protected]>
Co-authored-by: Ido Kahlon <[email protected]>
Co-authored-by: Ido Kahlon <[email protected]>
Co-authored-by: Justinas Simanavicius <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant