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

C2DEVEL-14695: return support of the backup service #34

Open
wants to merge 2 commits into
base: C2DEVEL-13798
Choose a base branch
from

Conversation

RudeZwloki7
Copy link

@RudeZwloki7 RudeZwloki7 commented Sep 16, 2024

Based on #33

Changes:

  • Add UpdateBackupSelection operation to API and docs.
  • Mark ResourceArns as required field in BackupSelection structure
  • Remove validation that provided region not an empty string in endpoint handler

Copy link
Collaborator

@PixarV PixarV left a comment

Choose a reason for hiding this comment

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

Сделай пожалуйста коммитные сообщения чуть более подробными)

if r.ClientInfo.SigningRegion == "" && aws.StringValue(r.Config.Region) == "" {
r.Error = aws.ErrMissingRegion
} else if r.ClientInfo.Endpoint == "" {
// if r.ClientInfo.SigningRegion == "" && aws.StringValue(r.Config.Region) == "" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Не очень понятно зачем этот кусок кода закомментирован, а в истории коммитов и в задаче нет информаци про это изменение. Вынеси его в отдельный коммит пожалуйста и где-нибудь опиши

Copy link
Author

Choose a reason for hiding this comment

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

В отдельный коммит вынес. Изначально убирал здесь проверку для возможности проставления пустого региона в конфиге провайдера. В целом, если будем работать с пустыми регионами только на уровне arn в теле запроса, можно будет откатить эти изменения.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Пустой регион использовать не получается, тк есть датасорсы, которые используют значение региона как id, так что эту валидацию я бы все таки сохранила.

aws/corehandlers/handlers.go Outdated Show resolved Hide resolved
models/apis/backup/2018-11-15/api-2.json Outdated Show resolved Hide resolved
models/apis/backup/2018-11-15/api-2.json Outdated Show resolved Hide resolved
models/apis/backup/2018-11-15/api-2.json Outdated Show resolved Hide resolved
@RudeZwloki7 RudeZwloki7 changed the base branch from develop to C2DEVEL-13798 September 23, 2024 08:16
Copy link
Collaborator

@PixarV PixarV left a comment

Choose a reason for hiding this comment

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

Оставила коммент + замечание про валидацию для региона еще осталось)

Переоформи еще пожалуйста немного описание ПРа. Мы забираем его прямо в changelog обычно, в качестве примера оформления можешь использовать #28

@@ -1230,7 +1240,8 @@
"type":"structure",
"required":[
"SelectionName",
"IamRoleArn"
"IamRoleArn",
"ResourceArns"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Кажется тут должно быть Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants