-
Notifications
You must be signed in to change notification settings - Fork 9
[Part-1] [OSDEV-2065] Update v1 production locations POST/PATCH endpoint to include partner field type validation #750
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
Merged
roman-stolar
merged 18 commits into
main
from
OSDEV-2065-update-v1-production-location-emission-metrics
Sep 21, 2025
Merged
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e37c68a
WIP
roman-stolar f67877f
added unit field to Partner Field model
roman-stolar c5d37c5
small improve
roman-stolar 61e4ae5
refactored
roman-stolar 867c203
small fix
roman-stolar 9fcaa64
Merge branch 'main' into OSDEV-2065-update-v1-production-location-emi…
roman-stolar 4b61f24
fix migration
roman-stolar 7fb711c
updated release notes
roman-stolar 0c9eaad
fix linter
roman-stolar 88e2d0e
coderabbit suggestion fix
roman-stolar e43ec83
adressed Vadim comments
roman-stolar 981f1bf
addressed Vlad comments
roman-stolar 346dfae
fix linter
roman-stolar baf0aef
updated release notes
roman-stolar 7640c12
fix typo
roman-stolar c3ccd08
fix
roman-stolar 5ee3e92
addressed sonarqube issue
roman-stolar 136d047
Merge branch 'main' into OSDEV-2065-update-v1-production-location-emi…
roman-stolar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/django/api/migrations/0180_add_unit_to_partner_field.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| from django.db import migrations, models | ||
| import uuid | ||
|
|
||
| class Migration(migrations.Migration): | ||
| """ | ||
| Migration add unit field to PartnerField model. | ||
| """ | ||
|
|
||
| dependencies = [ | ||
| ('api', '0179_introduce_enable_v1_claims_flow'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='partnerfield', | ||
| name='unit', | ||
| field=models.CharField( | ||
| max_length=200, | ||
| blank=True, | ||
| help_text=('The partner field unit.') | ||
| ), | ||
| ), | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vlad-shapik marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.