-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...in/kotlin/com/atlassian/performance/tools/jiraactions/api/action/DisableRichTextEditor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.atlassian.performance.tools.jiraactions.api.action | ||
|
||
import com.atlassian.performance.tools.jiraactions.api.DISABLE_RTE | ||
import com.atlassian.performance.tools.jiraactions.api.WebJira | ||
import com.atlassian.performance.tools.jiraactions.api.measure.ActionMeter | ||
|
||
class DisableRichTextEditor( | ||
private val jira: WebJira, | ||
private val meter: ActionMeter | ||
) : Action { | ||
override fun run() { | ||
meter.measure(DISABLE_RTE) { | ||
jira.configureRichTextEditor().disable() | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
.../kotlin/com/atlassian/performance/tools/jiraactions/api/action/HideHealthNotifications.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.atlassian.performance.tools.jiraactions.api.action | ||
|
||
import com.atlassian.performance.tools.jiraactions.api.HIDE_HEALTH_NOTIFICATIONS | ||
import com.atlassian.performance.tools.jiraactions.api.WebJira | ||
import com.atlassian.performance.tools.jiraactions.api.measure.ActionMeter | ||
|
||
class HideHealthNotifications( | ||
private val jira: WebJira, | ||
private val meter: ActionMeter | ||
) : Action { | ||
override fun run() { | ||
meter.measure(HIDE_HEALTH_NOTIFICATIONS) { | ||
val systemAdministrationPage = jira.administrate().system() | ||
jira.accessAdmin().runWithAccess { | ||
systemAdministrationPage | ||
.troubleshootingAndSupportTools() | ||
.instanceHealth() | ||
.notifications() | ||
.dontShowAny() | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters