Skip to content

Conversation

zbarbuto
Copy link
Contributor

@zbarbuto zbarbuto commented Jan 10, 2017

Description

Allow properties that are not an ID to be created as SERIAL.

Example use-case: Using GUIDs for a primary id key but still want an auto-incrementing counter value

Related issues

  • None

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style
    guide
@slnode
Copy link

slnode commented Jan 10, 2017

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

@slnode
Copy link

slnode commented Jan 10, 2017

Can one of the admins verify this patch?

2 similar comments
@slnode
Copy link

slnode commented Jan 10, 2017

Can one of the admins verify this patch?

@slnode
Copy link

slnode commented Jan 10, 2017

Can one of the admins verify this patch?

@ssh24
Copy link
Contributor

ssh24 commented Mar 19, 2017

@zbarbuto could you please add some unit tests to go with your PR?

@ssh24
Copy link
Contributor

ssh24 commented Mar 28, 2017

@zbarbuto Any updates on adding unit tests with this patch?

@zbarbuto
Copy link
Contributor Author

@ssh24 Have not had a chance to get to it yet, sorry. Have been focusing my efforts on getting #230 merged first which has been a more critical issue for us.

Hopefully by Friday I will get to this.

@ssh24
Copy link
Contributor

ssh24 commented Apr 13, 2017

@zbarbuto #230 got landed. Any updates on proceeding with this PR?

@zbarbuto
Copy link
Contributor Author

Yes. Hope to look at this soon.

@zbarbuto
Copy link
Contributor Author

Looking at this now.

@zbarbuto zbarbuto force-pushed the non-id-serial-props branch from a9b0dad to be13ad5 Compare April 19, 2017 09:25
@zbarbuto
Copy link
Contributor Author

zbarbuto commented Apr 19, 2017

@ssh24 Test added and rebased off master. Sorry for the delay.

@zbarbuto zbarbuto force-pushed the non-id-serial-props branch from be13ad5 to aa27031 Compare April 19, 2017 09:27
@ssh24
Copy link
Contributor

ssh24 commented Apr 19, 2017

@slnode test please

@ssh24 ssh24 force-pushed the non-id-serial-props branch from aa27031 to 62d146f Compare April 19, 2017 18:46
@ssh24
Copy link
Contributor

ssh24 commented Apr 19, 2017

@slnode test please

},
};
var models = db.modelBuilder.buildModels(schema);
// console.log(models);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the uncommented code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@ssh24 ssh24 left a comment

Choose a reason for hiding this comment

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

@zbarbuto Thank you for the contribution. Code LGTM. Please remove the uncommented code

Copy link
Contributor

@ssh24 ssh24 left a comment

Choose a reason for hiding this comment

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

LGTM. PR is ready to land. @zbarbuto Thank you for your patience for holding onto the PR for long and thank you again for the contribution!

@ssh24 ssh24 self-assigned this Apr 20, 2017
@ssh24 ssh24 added the apex label Apr 20, 2017
@ssh24 ssh24 added this to the Sprint 34 - Apex milestone Apr 20, 2017
@ssh24 ssh24 merged commit 2517bad into loopbackio:master Apr 20, 2017
@ssh24 ssh24 removed the review label Apr 20, 2017
kjdelisle pushed a commit that referenced this pull request May 15, 2017
 * Add docker setup (#256) (Sakib Hasan) * Allow explicit numeric datatype (#254) (Sakib Hasan) * Allow non-id serial properties (#198) (zbarbuto) * Revert PR #246 (#248) (Sakib Hasan) * Add loopback-connector as peer dependencies (#246) (Russ Tyndall) * Fix operations on ended transactions (zbarbuto) * dbdefaults: Cleanup InvalidDefault def after test (Kevin Delisle) * Reuse the data source to avoid too many clients (Raymond Feng)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants