mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:10:43 +07:00
[EA] Remove an old web link for reporters
GitOrigin-RevId: 65138c827ecde2e138d45df039e60ac64017a27e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
12ed79c19b
commit
1f38d81dd7
@@ -57,7 +57,7 @@ internal object ITNProxy {
|
||||
private const val DEFAULT_USER = "idea_anonymous"
|
||||
private const val DEFAULT_PASS = "guest"
|
||||
private const val DEVELOPERS_LIST_URL = "https://ea-report.jetbrains.com/developer/list"
|
||||
private const val OLD_THREAD_VIEW_URL = "https://ea.jetbrains.com/browser/ea_reports/"
|
||||
// private const val OLD_THREAD_VIEW_URL = "https://ea.jetbrains.com/browser/ea_reports/"
|
||||
private const val NEW_THREAD_VIEW_URL = "https://jb-web.exa.aws.intellij.net/report/"
|
||||
|
||||
private val TEMPLATE: Map<String, String?> by lazy {
|
||||
@@ -123,9 +123,9 @@ internal object ITNProxy {
|
||||
return postNewThread(loginAdjusted, passwordAdjusted, error, newThreadPostUrl)
|
||||
}
|
||||
|
||||
fun getBrowseUrl(threadId: Int): String {
|
||||
fun getBrowseUrl(threadId: Int): String? {
|
||||
val isEAPluginInstalled = PluginManagerCore.isPluginInstalled(PluginId.getId(EA_PLUGIN_ID))
|
||||
return (if (isEAPluginInstalled) NEW_THREAD_VIEW_URL else OLD_THREAD_VIEW_URL) + threadId
|
||||
return if (isEAPluginInstalled) NEW_THREAD_VIEW_URL + threadId else null
|
||||
}
|
||||
|
||||
private val ourSslContext: SSLContext by lazy { initContext() }
|
||||
|
||||
@@ -148,10 +148,11 @@ open class ITNReporter(private val postUrl: String = "https://ea-report.jetbrain
|
||||
callback(SubmittedReportInfo(reportUrl, reportId.toString(), SubmittedReportInfo.SubmissionStatus.NEW_ISSUE))
|
||||
val content = DiagnosticBundle.message("error.report.gratitude")
|
||||
val title = DiagnosticBundle.message("error.report.submitted")
|
||||
Notification("Error Report", title, content, NotificationType.INFORMATION)
|
||||
.setImportant(false)
|
||||
.addAction(NotificationAction.createSimpleExpiring(DiagnosticBundle.message("error.report.view.action")) { BrowserUtil.browse(reportUrl) })
|
||||
.notify(project)
|
||||
val notification = Notification("Error Report", title, content, NotificationType.INFORMATION).setImportant(false)
|
||||
if (reportUrl != null) {
|
||||
notification.addAction(NotificationAction.createSimpleExpiring(DiagnosticBundle.message("error.report.view.action")) { BrowserUtil.browse(reportUrl) })
|
||||
}
|
||||
notification.notify(project)
|
||||
}
|
||||
|
||||
private suspend fun onError(
|
||||
|
||||
Reference in New Issue
Block a user