Skip to content

Commit c09ab5c

Browse files
breaking change: skip history tables for integration users, remove unused history tables (#2661)
1 parent e6dbfa0 commit c09ab5c

143 files changed

Lines changed: 315445 additions & 506392 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.task/checksum/generate-ent-smart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
53c61b55348f208ed98a4d174ef3a818
1+
f75f9c7b4718489f967a5a0fa165d8c8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c5eb43ad1c63f1cfec2cabb77faa6d4
1+
82f5052cf2c10768d5fbe2c6cd788f4a
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1be7e3224324e59c37cdbee9f14bfe3b
1+
7911e1722214c4803f7e8745210389d7

cli/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require (
2121
github.com/theopenlane/core/common v1.0.24
2222
github.com/theopenlane/go-client v0.12.5
2323
github.com/theopenlane/httpsling v0.3.0
24-
github.com/theopenlane/iam v0.35.6
24+
github.com/theopenlane/iam v0.35.7
2525
github.com/theopenlane/utils v0.7.1
2626
golang.org/x/oauth2 v0.36.0
2727
golang.org/x/term v0.45.0

cli/go.sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ github.com/theopenlane/go-client v0.12.5 h1:ueY1s8ku6Col7JUISNw8ZIa/P+n3I1mMXO63
489489
github.com/theopenlane/go-client v0.12.5/go.mod h1:Q4+MZWZVABWtySfRTLh7bTj2wQqJMohyPGgIK1F8UOs=
490490
github.com/theopenlane/httpsling v0.3.0 h1:Bad0dGdqCqAB8UVDyVo+YCevzRvGHhmkK22F7T3pXtY=
491491
github.com/theopenlane/httpsling v0.3.0/go.mod h1:iJc3XRLYTFIpfCnPpLZVMBP0xsWIPAb7ozARtQoclAE=
492-
github.com/theopenlane/iam v0.35.6 h1:sLKqnpvcHOPQHUzpKlU0NNVOS2nn98tdF+eKmkGlY8c=
492+
github.com/theopenlane/iam v0.35.7 h1:avxRd4HSzjoG056Kd7LcZ4qC7xPIsbEcJw80nHGOCBc=
493493
github.com/theopenlane/riverboat v0.9.18 h1:ea15FbJ3XMroIfR0h3XvKLMtRCB702NQuciVhim4MlQ=
494494
github.com/theopenlane/riverboat v0.9.18/go.mod h1:rUslZO2OUQXXKa3GNgrtTK5U95TmolRG6HfAgGkxNAg=
495495
github.com/theopenlane/utils v0.7.1 h1:x+9kVMgOALYqAH6GaLaDb9tj16nzasoGM8X0v0XNTn8=

db/migrations-goose-postgres/20260806055955_drop_integration_history_tables.sql

Lines changed: 58 additions & 0 deletions
Large diffs are not rendered by default.

db/migrations-goose-postgres/atlas.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
h1:zhghWuJj8cFQsphNo4RL1225kMLetvPuU0mu9AqwGCw=
1+
h1:aWZe+Nu31OmFlBvmf10NwG+FpDG7rPewJHBUQleU6EE=
22
20251229183203_init.sql h1:g/05irCXoqKFObJV2PPLuvDRqma+da41VPsZ5fXQgfE=
33
20251229183205_init_history.sql h1:P/q2kAHb8zfNMOWzYkKtPbOwoh9GdJUQljSNAiPEjYI=
44
20251231045229_workflow.sql h1:uUPRLO4yw2y//fPGeqIXRrL+fiEN1TRGkF4wHiqPaPk=
@@ -172,3 +172,4 @@ h1:zhghWuJj8cFQsphNo4RL1225kMLetvPuU0mu9AqwGCw=
172172
20260728193957_directorymembershipindex.sql h1:v0+GK6MFeTEDEEg8Px5FbjuXO9uU8dRdM8RrAntQKxs=
173173
20260730170846_dropassetnameindex.sql h1:87FQbYhZYp8TkCRHUmBe/3n2XxIBo+AOct1Q2JAGImg=
174174
20260803213558_drop_notification_user_edge.sql h1:1oL/MV2MdtYqnz9sKV0CED/yt01j45eTrEe0wbQCKpM=
175+
20260806055955_drop_integration_history_tables.sql h1:iF8wKuPtK4tAqxhVpBdC6407ptkgOUnc46azCkr9z/Y=
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
-- Drop "check_result_history" table
2+
DROP TABLE "check_result_history";
3+
-- Drop "directory_account_history" table
4+
DROP TABLE "directory_account_history";
5+
-- Drop "directory_group_history" table
6+
DROP TABLE "directory_group_history";
7+
-- Drop "directory_membership_history" table
8+
DROP TABLE "directory_membership_history";
9+
-- Drop "dns_verification_history" table
10+
DROP TABLE "dns_verification_history";
11+
-- Drop "integration_history" table
12+
DROP TABLE "integration_history";
13+
-- Drop "org_subscription_history" table
14+
DROP TABLE "org_subscription_history";
15+
-- Drop "scan_history" table
16+
DROP TABLE "scan_history";
17+
-- Drop "workflow_event_history" table
18+
DROP TABLE "workflow_event_history";
19+
-- Drop "workflow_instance_history" table
20+
DROP TABLE "workflow_instance_history";
21+
-- Drop "workflow_object_ref_history" table
22+
DROP TABLE "workflow_object_ref_history";

db/migrations/atlas.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
h1:bjR8lISdyt+XEmbAtsQAKWrUomrbQ+m3BjKLsG3TQh8=
1+
h1:LZozbwRDwq/IbKHCRQy7qQPK+HHWaFlD6z4aoaVnXak=
22
20251229183159_init.sql h1:3uf/ftr28zW8YUD9qAaY2GESQHC7pYmkhlI6oDWUCKU=
33
20251229183201_init_history.sql h1:1tFSeCDWvZgb2Ctw80C/s3tqVPNLADQw9fSDACzL8WA=
44
20251231045221_workflow.sql h1:5bLq4cHh2kxUV7xajK5bq5McKKpr88HmufYauTdsgUw=
@@ -172,3 +172,4 @@ h1:bjR8lISdyt+XEmbAtsQAKWrUomrbQ+m3BjKLsG3TQh8=
172172
20260728193948_directorymembershipindex.sql h1:GMmB5LtkGz7WAmqILpbWGoqmZD1e8kq7eRcPyOrFs7Y=
173173
20260730170837_dropassetnameindex.sql h1:vfvgvcqSsRer9jd8g6JzlRg/l+LOmKw5ytLMCEcqTgk=
174174
20260803213537_drop_notification_user_edge.sql h1:988ebIeIjtpxaIckXmIRbRl9V2GzENRBUWdLa9CTx9I=
175+
20260806055946_drop_integration_history_tables.sql h1:WpsMuHDxGn3t4hAepDLBUePTYZBgh0P/cx/DgRQCj1Q=

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ require (
108108
github.com/theopenlane/go-client v0.12.5
109109
github.com/theopenlane/gqlgen-plugins v0.14.7
110110
github.com/theopenlane/httpsling v0.3.0
111-
github.com/theopenlane/iam v0.35.6
111+
github.com/theopenlane/iam v0.35.7
112112
github.com/theopenlane/newman v0.4.2
113113
github.com/theopenlane/riverboat v0.9.18
114114
github.com/theopenlane/utils v0.7.1

0 commit comments

Comments
 (0)