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

Add copy outputs to outputs table #2194

Merged
merged 11 commits into from
Nov 12, 2020
Merged

Add copy outputs to outputs table #2194

merged 11 commits into from
Nov 12, 2020

Conversation

hunterwerlla
Copy link
Contributor

@hunterwerlla hunterwerlla commented Nov 11, 2020

Screenshot

Kapture 2020-11-11 at 12 38 51

related issues

#2179

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hunterwerlla hunterwerlla requested a review from a team as a code owner November 11, 2020 18:22
@hunterwerlla
Copy link
Contributor Author

hunterwerlla commented Nov 11, 2020

/runUiTests

@abrooksv
Copy link
Contributor

Seems a little funny they all have the copy icon IMO

@hunterwerlla
Copy link
Contributor Author

Seems a little funny they all have the copy icon IMO

I mean maybe, but that's how it already was for the rest of the cfn table

@hunterwerlla
Copy link
Contributor Author

hunterwerlla commented Nov 11, 2020

/retryBuilds

@kiiadi
Copy link
Contributor

kiiadi commented Nov 11, 2020

I'm wondering if there's a way to change the default behaviour to copy-selected cell rather than copy row - I think that's what customers would expect 99% of the time.

@hunterwerlla
Copy link
Contributor Author

I'm wondering if there's a way to change the default behaviour to copy-selected cell rather than copy row - I think that's what customers would expect 99% of the time.

That is a good point, that is also easy to do, so changed

DynamicTableView.Field(message("cloudformation.stack.outputs.description")) { it.description() },
DynamicTableView.Field(message("cloudformation.stack.outputs.export")) { it.exportName() }
).apply { component.border = JBUI.Borders.empty() }
private val key = DynamicTableView.Field<Output>(message("cloudformation.stack.outputs.key")) { it.outputKey() }
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this just for code-style? These no longer need to be broken out right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah this change can be reverted now, will do

table.addMouseListener(ResourceActionPopup(this::selected))
}

private fun selected(): SelectedResource? {
Copy link
Contributor

Choose a reason for hiding this comment

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

awesome - I hated myself for this


step("Check Logical ID action") {
resource.click(MouseButton.RIGHT_BUTTON)
findAndClick("//div[@text='Copy Logical ID']")
Copy link
Contributor

Choose a reason for hiding this comment

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

the copy is actually in a few places I think ...

Copy link
Contributor Author

@hunterwerlla hunterwerlla Nov 11, 2020

Choose a reason for hiding this comment

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

We have it in cloudwatch logs as well, but I'm not sure why I put it in there. Copying multiple rows/columns works as expected, so removing it from that as well

@aws aws deleted a comment from sonarqubecloud bot Nov 11, 2020
@aws aws deleted a comment from sonarqubecloud bot Nov 11, 2020
@aws aws deleted a comment from sonarqubecloud bot Nov 11, 2020
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@hunterwerlla hunterwerlla merged commit 679faa8 into master Nov 12, 2020
@hunterwerlla hunterwerlla deleted the werlla/copyOutputs branch November 12, 2020 16:41
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.

3 participants