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 refresh button for storage container in job upload storage panel #2242

Merged
merged 2 commits into from
Oct 23, 2018

Conversation

t-rufang
Copy link
Contributor

@t-rufang t-rufang commented Oct 22, 2018

To fix #2151

@t-rufang t-rufang added this to the v3.14.0 milestone Oct 22, 2018
}
})
// refresh containers after refresh button is clicked
view.storagePanel.azureBlobCard.storageContainerComboBox.button.addActionListener { _ ->
Copy link
Member

@wezhang wezhang Oct 23, 2018

Choose a reason for hiding this comment

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

Can _ -> be removed? #Resolved

@@ -203,6 +201,7 @@ abstract class SparkSubmissionJobUploadStorageCtrl(val view: SparkSubmissionJobU
errorMsg = "Can't get storage containers, check if the key matches"
}
}
refreshContainersEnabled = true
Copy link
Member

@wezhang wezhang Oct 23, 2018

Choose a reason for hiding this comment

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

The enable operation needs to be put into .doOnEach #Resolved

private val storageAccountTip = "The default storage account of the HDInsight cluster, which can be found from HDInsight cluster properties of Azure portal."
private val storageKeyTip = "The storage key of the default storage account, which can be found from HDInsight cluster storage accounts of Azure portal."
private val storageAccountLabel = JLabel("Storage Account").apply { toolTipText = storageAccountTip }
val storageAccountField = JTextField().apply { toolTipText = storageAccountTip }
private val storageKeyLabel = JLabel("Storage Key").apply { toolTipText = storageKeyTip }
val storageKeyField = JTextArea().apply { toolTipText = storageKeyTip }
private val storageContainerLabel = JLabel("Storage Container")
val storageContainerComboBox = ComboBox<String>()
val storageContainerComboBox = ComboboxWithBrowseButton().apply {
Copy link
Member

@wezhang wezhang Oct 23, 2018

Choose a reason for hiding this comment

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

May we can remove the type ComboBox from the value storageContainerComboBox, just name it storageContainerUI may be enough. #Resolved

Copy link
Member

@wezhang wezhang left a comment

Choose a reason for hiding this comment

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

LGTM! Ship it!

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.

[IntelliJ] Azure Blob container lost in storage container list when user restart the project
2 participants