Skip to content

Commit

Permalink
Merge pull request #143 from ConagherL/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
tylerezimmerman authored Oct 8, 2024
2 parents 7694a32 + b3792ea commit d29324d
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
SELECT 'Report Version' AS [Item], '1.3.20240925' AS [Value], '' AS [Comment]
SELECT 'Report Version' AS [Item], '1.3.20241004' AS [Value], '' AS [Comment]

UNION ALL

SELECT 'Report Date' AS [Item],
CONVERT(VARCHAR, GETDATE(), 101) AS [Value], -- Format: MM/DD/YYYY
'' AS [Comment]

UNION ALL

Expand Down Expand Up @@ -43,17 +49,17 @@ UNION ALL
SELECT '--> Size' AS [Item],
CASE

WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) < 1000
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) < 2500
AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) < 2 THEN 'Small'
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 1001 AND 14000
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 2501 AND 10000
AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) BETWEEN 3 AND 7 THEN 'Medium'
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 140001 AND 50000
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 10001 AND 25000
AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Large'
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 500001
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 25001
AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Custom'

WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 5000 THEN 'Large'
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 501 AND 5000 THEN 'Medium'
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 10001 THEN 'Large'
WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 2501 AND 10000 THEN 'Medium'
WHEN (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Large'
WHEN (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) BETWEEN 3 AND 7 THEN 'Medium'
ELSE 'Small' -- Default if both categories are small
Expand Down

0 comments on commit d29324d

Please sign in to comment.