Problem/Motivation
- After entering all the information and hitting
Savebutton, an error message saying required IAM permissions are missing appears. This error message should show before entering the info.
Proposed resolution
- Instead of showing error messages when opening an add resource form, show
Add <Resource Name>button only when all required IAM permissions are set for the add operation.
User interface changes
- If the required IAM permission is missing for adding a resource,
Add <Resource Name>button will now show.
| Comment | File | Size | Author |
|---|
Issue fork cloud-3206834
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
kumikoono commentedPicked
NetworkInterfaceresource for review.Comment #4
yas@kumikoono
Thank you for adding the validation. I posted my comments. Please check. Thanks.
Comment #6
kumikoono commentedVolumeandSnapshotare to be fixed.)Comment #7
yas@kumikoono
Thank you for the update. I posted my comments. Please check the ones. Thanks
Comment #8
kumikoono commentedAddbutton control for all AWS resourcesComment #9
yas@kumikoono
Thank you for the update. I put my above comments. Please check the ones. Thanks
Comment #10
kumikoono commented@yas Thanks for your review.
Per our discussion, I refactored the changes to rebase on Issue #3209211.
I also incorporated your comments.
Comment #11
kumikoono commentedComment #12
yas@kumikoono
Thank you for the update. I posted my comments. Please check the ones. Thanks
Comment #13
baldwinlouie commented@kumikoono, Thank you for the patch. I posted my comments above.
Comment #14
kumikoono commented@yas @baldwin
Thanks for your review. Per our discussion, I tried to minimize the changes to move forward breaking
Ec2Serviceclass into per-resource class.Comment #15
kumikoono commentedFixed coding rule violations.
Comment #16
kumikoono commentedThanks for your comments, @yas @baldwin.
I incorporate your comments.
Comment #19
kumikoono commentedCreated a new branch and a new merge request.
Comment #20
baldwinlouie commented@kumikoono, thank you for the updated patch. It looks good to me.
Comment #21
baldwinlouie commented@yas and @kumikoono, Thank you for adding the test cases. The tests look good to me.
Comment #22
kumikoono commented@yas @baldwind Thanks for your review. I'll add more test cases to cover other resources.
Comment #23
yas@baldwinlouie
Thank you for your review.
@kumikoono
Thank you for the update and refactoring. I reviewed the patch and the logic looks good to me now. I posted my comments above. Please check the ones. Thanks
Comment #24
kumikoono commented@yas Thanks for your review.
Comment #25
yas@kumikoono
Thank you for the update. There look some leftovers in my previous comment and I posted my new comments above. Could you please check them? Thanks
Comment #26
kumikoono commentedComment #27
yas@kumikoono
Thank you for the update. I found the one thing that we needed to modify the header comment at
Ec2Service::describeInstances(). ThanksComment #28
kumikoono commentedIncorporated your comment on the original code.
We know the original code is missing return type hints and has wrong return type comments, but this patch limits the fixes to the related functions.
Comment #29
yas@kumikoono
Thank you for the update. Yes I understand the patch limits the fixes to the related function basically. From a code reviewer's point of view, you removed
$params += $this->getDefaultParameters();fromEc2Service::describeInstances(), so I posted my comment to fix that header comment. I couldn't find the other similar cases inEc2Servicesince it looks all the other functions have{@inheritdoc}as a header comment so we don't have to modify or fix those in theEc2Serviceclass. So could you please fix it?Comment #30
kumikoono commented@yas Thanks for your explanation.
I found
Ec2Service::describeInstances()has its own comment that was exactly the same text as the one in theEc2ServiceInterface, and its signature is also the same. This means{@inheritdoc}is appropriate similar to other functions. I changed that part to be consistent. Is it OK to you?Comment #31
yas@kumikoono
Thank you for the update. Yes, it would be even better to change the header comment with
{@inheritdoc}.Comment #32
yasComment #33
yas@kumikoono
Thank you for the update. It looks good to me now. I'll change the status to RTBC. Please continue to work on the same repository and change the status to Needs review when you are ready for the next milestone.
Comment #36
kumikoono commentedInstead of resolving many conflicts, I created a new branch (-2) as the base code for subsequent work.
This patch consists of the changes made on the previous branch (-1).
Comment #37
kumikoono commentedComment #38
kumikoono commentedThe previous commits include
Import Image/Key Pairbuttons. 26fd22ecNULLreturn type, and extend it to similar functions. 60e085f4Comment #39
yas@kumikoono
Thank you for adding the validations. I tried to apply the patch but the git error occurred as follows due to the merge at #3213753:
Could you please fix that?
Comment #40
kumikoono commentedAs you see the history, the tests passed yesterday when I uploaded the patch. However, re-testing failed 15 hours later. It looks caused by the base file change. I'll rebase and update the patch.
Comment #41
kumikoono commentedComment #42
yas@kumikoono
Thank you for the update. I tested the patch and it looks good to me now. I'll change the status to RTBC. Please continue to work on the same repository and change the status to Needs review when you are ready for the next milestone.
Comment #43
kumikoono commentedAdds
-related button control with test cases.Comment #45
kumikoono commentedSome tests are failing. I'll check them.
Comment #46
kumikoono commentedComment #47
yas@kumikoono
Thank you for adding the valications. I posted my comment above. Please check the ones. Thanks
Comment #48
kumikoono commented@yas Thanks for your review.
Comment #49
kumikoono commentedComment #51
kumikoono commentedComment #52
yas@kumikoono
Thank you for the update. I posted my comments above. Please check the ones. Thanks
Comment #53
kumikoono commented@yas @baldwinlouie Thanks for your review. I incorporated your suggestions.
Regarding the test failure with
AwsCloudConfigTest, I moved theplaceBlock()from the setup to the test case requiring the block.Comment #54
yas@kumikoono
Thank you for the update. I posted my comment above. Please check them. Thanks.
Comment #55
kumikoono commentedComment #56
yas@kumikoono
Thank you for your update. I reviewed the entire patch. I put my comments above. Please check all unresolved comments incl. the previous leftovers.
Thanks
Comment #57
kumikoono commentedComment #58
yas@kumikoono
Thank you for the update. There are some leftovers. I also posted my comment above. Please check the ones. Thanks.
Comment #59
kumikoono commentedComment #60
kumikoono commentedComment #65
kumikoono commentedThis new branch, 3206834-4, is just rebased on the latest 3.x with the patch -59.
Comment #66
kumikoono commented@yas @baldwininoue Thanks for your close review.
Comment #67
yas@kumikoono
Thank you for the update. Introducing
Drupal\aws_cloud\Access\AwsCloudAccessmakes the code even clearer. I posted my minor comments. Please check the ones.@baldwinlouie
What do you think?
Comment #68
kumikoono commented@yas Thanks for review. Updated the patch.
Comment #69
baldwinlouie commented@yas and @kumikoono,
Thank you for the updated patch. It looks good to me!
Comment #70
yas@baldwinlouie
Thank you for your review.
@kumikoono
Thank you for the update. I'll change the status to RTBC. I'll merge the patch to
4.xbranch when it's ready.Comment #71
yas@kumikoono
The patch is now behind against
HEAD. Could you please rebase and resolve the conflicts? I'll change the status to Needs work. ThanksComment #72
yasComment #73
kumikoono commentedRebased onto 4.x and resolved conflicts.
Comment #74
yas@kumikoono
The tests have been passed successfully, so I'll merge the patch to
4.xand close this issue asFixed.Comment #75
yas@kumikoono
I tried to merge the patch however the following errors occurred during the merge process due to the patch at #3209211: Refactor exceptions thrown on DryRun API calls in <AwsService>Service::execute(). So could you please rebase it again? Thanks
Comment #78
kumikoono commentedRebased again.
Comment #79
kumikoono commentedFixed coding rule violations.
Comment #80
kumikoono commentedComment #81
kumikoono commentedResolved issues with rebase.
Comment #82
yas@kumikoono
Thank you for the rebase. I have one quick question at https://git.drupalcode.org/project/cloud/-/merge_requests/271#note_30289. Could you please give me the explanation? Thanks
Comment #83
kumikoono commented@yas Can you review the updated patch?
Comment #84
yas@kumikoono
Thank you for the update. It looks good. The tests have been passed successfully, so I'll merge the patch to
4.xand close this issue asFixed. ThanksComment #87
yas