Skip to content

fix: Support explicit auto-increment fields in Python#5785

Merged
CamilleTeruel merged 1 commit intoapache:mainfrom
merico-ai:fix-python-autoincrement
Aug 1, 2023
Merged

fix: Support explicit auto-increment fields in Python#5785
CamilleTeruel merged 1 commit intoapache:mainfrom
merico-ai:fix-python-autoincrement

Conversation

@keon94
Copy link
Copy Markdown
Contributor

@keon94 keon94 commented Aug 1, 2023

Summary

What does this PR do?
Adds support for user-defined auto-increment fields. Need arose from a bug caused by having composite keys with default auto-increment set to on. See https://gorm.io/docs/composite_primary_key.html.

The Builds model of AzureDevops now defines auto-inc to be False for ID. ConnectionID in all tool structs will have it set to false as well. This was the error we were getting earlier:

image

Does this close any open issues?

Closes n/a
Caused by #5746

Screenshots

image

Other Information

Any other information that is important to this PR.

@keon94 keon94 force-pushed the fix-python-autoincrement branch from 0f71d1b to ea051e6 Compare August 1, 2023 17:53
@keon94 keon94 force-pushed the fix-python-autoincrement branch from ea051e6 to cc7e94d Compare August 1, 2023 18:02
@keon94 keon94 self-assigned this Aug 1, 2023
@keon94 keon94 added this to the v0.19 milestone Aug 1, 2023
@keon94 keon94 added component/pydevlake Relates to the Python framework and/or plugin. pr-type/bug-fix This PR fixes a bug labels Aug 1, 2023
@keon94 keon94 requested a review from CamilleTeruel August 1, 2023 18:04
@CamilleTeruel CamilleTeruel merged commit e84b730 into apache:main Aug 1, 2023
@CamilleTeruel CamilleTeruel deleted the fix-python-autoincrement branch August 1, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/pydevlake Relates to the Python framework and/or plugin. pr-type/bug-fix This PR fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants