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

feat: lb3 migration tests for models customized with db metadata #4710

Merged
merged 1 commit into from
Feb 25, 2020

Conversation

deepakrkris
Copy link
Contributor

@deepakrkris deepakrkris commented Feb 21, 2020

satisfies: #3810

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@dhmlau
Copy link
Member

dhmlau commented Feb 25, 2020

@deepakrkris, there's error in npm run lint. Could you please run npm run lint:fix to see if it resolves the problem? Thanks.

Copy link
Contributor

@jannyHou jannyHou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 For fixing the lint error.

Otherwise LGTM 👍

Copy link
Contributor

@agnes512 agnes512 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@deepakrkris deepakrkris merged commit c58cc11 into master Feb 25, 2020
@deepakrkris deepakrkris deleted the issue3810 branch February 25, 2020 15:24
type: `'string'`,
tsType: 'string',
length: 25,
postgresql: `{columnName: 'name', dataType: 'character varying', dataLength: 25, dataPrecision: null, dataScale: null, nullable: 'YES'}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deepakrkris I'm just wondering why a string and not an object passed here. Why is this not like this?:

{
  type: `'string'`,
  tsType: 'string',
  length: 25,
  postgresql: {
    columnName: 'name',
    dataType: 'character varying',
    dataLength: 25,
    dataPrecision: null,
    dataScale: null,
    nullable: 'YES'
  },
},

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derdeka thanks for the review. The unit test is for the function importLb3ModelDefinition it returns json values as strings. But the template generator takes care of converting into json objects.

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.

6 participants