Skip to content

Commit

Permalink
PI-1822 Remove DeliusConnectionProvider (#3062)
Browse files Browse the repository at this point in the history
* PI-1822 Remove DeliusConnectionProvider

This appears to have stopped working recently, so I've re-enabled setting the client id via a logon trigger instead: ministryofjustice/hmpps-delius-pipelines#783

* Remove app insights filter
  • Loading branch information
marcus-bcl authored Jan 22, 2024
1 parent e1bde40 commit fd268b3
Show file tree
Hide file tree
Showing 46 changed files with 10 additions and 587 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package uk.gov.justice.digital.hmpps.audit.service

import org.springframework.context.annotation.Condition
import org.springframework.context.annotation.ConditionContext
import org.springframework.context.annotation.Conditional
import org.springframework.core.type.AnnotatedTypeMetadata
import org.springframework.jdbc.core.JdbcTemplate
import org.springframework.stereotype.Service
import org.springframework.transaction.support.TransactionSynchronization
import org.springframework.transaction.support.TransactionSynchronizationManager
import uk.gov.justice.digital.hmpps.audit.config.OracleCondition

@Service
class OptimisationTables(private val optimisationTablesRebuild: OptimisationTablesRebuild?) {
Expand All @@ -25,3 +27,10 @@ class OptimisationTablesRebuild(private val jdbcTemplate: JdbcTemplate) {
})
}
}

class OracleCondition : Condition {
override fun matches(context: ConditionContext, metadata: AnnotatedTypeMetadata): Boolean {
val url = context.environment.getProperty("spring.datasource.url")
return url?.startsWith("jdbc:oracle") ?: false && !context.environment.acceptsProfiles { it.test("oracle") }
}
}

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions projects/accredited-programmes-and-oasys/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/approved-premises-and-delius/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/approved-premises-and-oasys/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/arns-and-delius/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/assessment-summary-and-delius/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/cas2-and-delius/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/cas3-and-delius/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/court-case-and-delius/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/custody-key-dates-and-delius/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/domain-events-and-delius/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
11 changes: 0 additions & 11 deletions projects/dps-and-delius/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
{
"key": "db.statement",
"value": ".*CLIENT_IDENTIFIER.*",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"telemetryType": "dependency",
"attributes": [
Expand Down
Loading

0 comments on commit fd268b3

Please sign in to comment.