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

Azure: Add missing alias for dateOffset #80

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Azure: Add missing alias for dateOffset #80

merged 1 commit into from
Dec 20, 2024

Conversation

JAVGan
Copy link
Collaborator

@JAVGan JAVGan commented Dec 19, 2024

This commit adds a missing alias for the date_offset property on DeprecationSchedule. Without this alias the class was unable to properly parse the value from JSON, which may cause the following error when senting the request to configure:

'badRequest', 'message': "The deprecation schedule for image 'X.Y.Z' of type 'ARCH' is already published and can not be changed in draft."

Refers to SPMM-18578

This commit adds a missing alias for the `date_offset` property on
`DeprecationSchedule`. Without this alias the class was unable to
properly parse the value from JSON, which may cause the following error
when senting the request to configure:

```
'badRequest', 'message': "The deprecation schedule for image 'X.Y.|' of type 'ARCH' is already published and can not be changed in draft."
```

Refers to SPMM-18578
@JAVGan
Copy link
Collaborator Author

JAVGan commented Dec 19, 2024

@jajreidy @ashwini3326 @lslebodn PTAL

Copy link
Collaborator

@lslebodn lslebodn left a comment

Choose a reason for hiding this comment

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

Nice catch. BTW there were even warnings in the code

2024-12-19 14:33:52 +0000 [WARNING ][ThreadPoolExecutor-pubtools-marketplacesvm-push-combined_0] Ignoring unknown attribute dateOffset from DeprecationSchedule.
2024-12-19 14:33:52 +0000 [WARNING ][ThreadPoolExecutor-pubtools-marketplacesvm-push-combined_0] Ignoring unknown attribute dateOffset from DeprecationSchedule.
2024-12-19 14:33:52 +0000 [WARNING ][ThreadPoolExecutor-pubtools-marketplacesvm-push-combined_0] Ignoring unknown attribute dateOffset from DeprecationSchedule.
2024-12-19 14:33:52 +0000 [WARNING ][ThreadPoolExecutor-pubtools-marketplacesvm-push-combined_0] Ignoring unknown attribute dateOffset from DeprecationSchedule.
2024-12-19 14:33:52 +0000 [WARNING ][ThreadPoolExecutor-pubtools-marketplacesvm-push-combined_0] Ignoring unknown attribute dateOffset from DeprecationSchedule.
2024-12-19 14:33:52 +0000 [WARNING ][ThreadPoolExecutor-pubtools-marketplacesvm-push-combined_0] Ignoring unknown attribute dateOffset from DeprecationSchedule.

But there is also another warning

2024-12-19 14:33:56 +0000 [WARNING ][ThreadPoolExecutor-pubtools-marketplacesvm-push-combined_0] Ignoring unknown attribute termsOfUseUrl from ProductProperty.

But very likely not very problematic :-)

LGTM

@JAVGan JAVGan merged commit a92c152 into main Dec 20, 2024
22 checks passed
@JAVGan JAVGan deleted the fix_azure branch December 20, 2024 12:52
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.

2 participants