-
Notifications
You must be signed in to change notification settings - Fork 9
[Part-2] [OSDEV-2065] Update v1 production locations POST/PATCH endpoint to save partner field to extended field model #757
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 38 commits into
main
from
OSDEV-2065-update-v1-production-location-emission-metrics-part-2
Sep 29, 2025
Merged
Changes from 30 commits
Commits
Show all changes
38 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 58819f1
Merge commit 'cf9c92873826a0071d4f439e6053e8fe317b9de1' into OSDEV-20…
roman-stolar 975d113
Bulk implementation of the extended fields creation for partner fields
roman-stolar 974c80f
refactored
roman-stolar ddacda1
error detail message updated to be consistent
roman-stolar aded062
Updated release notes
roman-stolar 9ed6a43
fix linter
roman-stolar 59661d3
fix linter
roman-stolar ef7fc16
Added implementation to support display estimated_emissions_activity …
roman-stolar bba27ce
updated release notes
roman-stolar 81b78ff
fix
roman-stolar d2e94ee
fix linter
roman-stolar fa0e783
added unit tests
roman-stolar c36469b
Merge branch 'main' into OSDEV-2065-update-v1-production-location-emi…
roman-stolar 081fbe0
fix linter
roman-stolar 1d61a6c
fix linter
roman-stolar 3a7e475
possible tests fix
roman-stolar 30aca95
adressed Vadim comments
roman-stolar 309ecb5
addressed
roman-stolar 64d2ba8
fix
roman-stolar 8bdd8ae
fix tests
roman-stolar df3092d
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| from django.db import migrations, models | ||
| import uuid | ||
|
|
||
| class Migration(migrations.Migration): | ||
| """ | ||
|
|
||
22 changes: 22 additions & 0 deletions
22
src/django/api/migrations/0181_add_label_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,22 @@ | ||
| from django.db import migrations, models | ||
|
|
||
| class Migration(migrations.Migration): | ||
| """ | ||
| Migration add unit field to PartnerField model. | ||
| """ | ||
|
|
||
| dependencies = [ | ||
| ('api', '0180_add_unit_to_partner_field'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='partnerfield', | ||
| name='label', | ||
| field=models.CharField( | ||
| max_length=200, | ||
| blank=True, | ||
| help_text=('The partner field label.') | ||
| ), | ||
| ), | ||
| ] |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.