Skip to content

[RDBMS] BREAKING CHANGE: az postgres flexible-server migration: Rename --migration-id to --migration-name#19149

Merged
evelyn-ys merged 2 commits intoAzure:devfrom
cpj2195:cpj2195/postgresmigrations/update_migration_id
Aug 11, 2021
Merged

[RDBMS] BREAKING CHANGE: az postgres flexible-server migration: Rename --migration-id to --migration-name#19149
evelyn-ys merged 2 commits intoAzure:devfrom
cpj2195:cpj2195/postgresmigrations/update_migration_id

Conversation

@cpj2195
Copy link
Copy Markdown
Contributor

@cpj2195 cpj2195 commented Aug 6, 2021

Description
Changed --migration-id parameter to migration-name in az postgres flexible-server migration [create, show, update, delete]
Changed test recordings file name to follow the naming convention

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Aug 6, 2021
@ghost
Copy link
Copy Markdown

ghost commented Aug 6, 2021

Thank you for your contribution cpj2195! We will review the pull request and get back to you soon.

@ghost
Copy link
Copy Markdown

ghost commented Aug 6, 2021

CLA assistant check
All CLA requirements met.

@yonzhan yonzhan added this to the Aug 2021 (2021-09-07) milestone Aug 6, 2021
@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Aug 6, 2021

RDBMS

Comment on lines -576 to +577
c.argument('migration_id', arg_type=migration_id_arg_type, options_list=['--migration-id'],
help='Name or ID of the migration.')
c.argument('migration_name', arg_type=migration_id_arg_type, options_list=['--migration-name'],
help='Name of the migration.')
Copy link
Copy Markdown
Member

@evelyn-ys evelyn-ys Aug 10, 2021

Choose a reason for hiding this comment

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

Can you query name out of the provided id? It's better to not cause breaking change for CX. Both id and name are supported before.

If only name is valid input, can it still be named --migration-id in param definition but migration_name in custom function?

Copy link
Copy Markdown
Contributor Author

@cpj2195 cpj2195 Aug 10, 2021

Choose a reason for hiding this comment

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

it will have to be migration_name because we are already using migration_id in the server-side code for internal identification in this migration workflow. The changes have already been shipped for this. Although, the migration_name can accept any strings(read guid's).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's a breaking change for cx's existing scripts.

I can help merge if you insist

@evelyn-ys evelyn-ys changed the title [RDBMS] Change migration-id to migration-name in az postgres flexible-server migration: [RDBMS] BREAKING CHANGE: az postgres flexible-server migration: Rename --migration-id to --migration-name Aug 11, 2021
@evelyn-ys evelyn-ys merged commit f2cda69 into Azure:dev Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants