-
Notifications
You must be signed in to change notification settings - Fork 357
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
Refactor store.service
Add support for relations, enums, subscription on Schema Migration
#2251
Conversation
…eIndex with historical, add relations support, update util functions
…s, add test for subscriptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One concern i have is that this will break local development, what happens with schema changes when not dealing with projects? The behaviour should be the same as before.
packages/node-core/src/configure/migration-service/SchemaMigration.service.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/SchemaMigration.service.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/SchemaMigration.service.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/SchemaMigration.service.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration-helpers.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/SchemaMigration.service.spec.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration-helpers.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
packages/node-core/src/configure/migration-service/migration.ts
Outdated
Show resolved
Hide resolved
There still seems to be quite a few TODOs scattered about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There still seem to be a couple of TODOs in places
: field.isArray | ||
? getTypeByScalarName('Json')?.sequelizeType | ||
: getTypeByScalarName(field.type)?.sequelizeType; | ||
|
||
if (type === undefined) { | ||
if (type === undefined || type === 'undefined') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats going on here? Why would it be 'undefined'
?
Description
Fixes and Updates
Refactor store.serivce to use generate queries instead of
sequelize.sync()
Fixes:
#2249
#2241
Documentation:
subquery/documentation#474
Type of change
Please delete options that are not relevant.
Checklist