From 511abf659d3f4e740d2898c71decbd222492b024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Wed, 12 Oct 2022 23:00:07 -0300 Subject: [PATCH] Remove skipQueries option from modifiers since it was not working yet --- internal/modifiers/contract.go | 1 - internal/modifiers/global_modifiers.go | 1 - internal/modifiers/skip_modifiers.go | 4 ---- test_adapters.go | 1 - 4 files changed, 7 deletions(-) diff --git a/internal/modifiers/contract.go b/internal/modifiers/contract.go index 69356e6..dda135e 100644 --- a/internal/modifiers/contract.go +++ b/internal/modifiers/contract.go @@ -11,7 +11,6 @@ type AttrModifier struct { // and queries respectively. SkipOnInsert bool SkipOnUpdate bool - SkipOnQuery bool // Implement these functions if you want to override the default Scan/Value behavior // for the target attribute. diff --git a/internal/modifiers/global_modifiers.go b/internal/modifiers/global_modifiers.go index 3fb7722..6f99799 100644 --- a/internal/modifiers/global_modifiers.go +++ b/internal/modifiers/global_modifiers.go @@ -23,7 +23,6 @@ func init() { // to test the feature of skipping updates, inserts and queries. modifiers.Store("skipUpdates", skipUpdatesModifier) modifiers.Store("skipInserts", skipInsertsModifier) - modifiers.Store("skipQueries", skipQueriesModifier) } // RegisterAttrModifier allow users to add custom modifiers on startup diff --git a/internal/modifiers/skip_modifiers.go b/internal/modifiers/skip_modifiers.go index 150b027..e7e1135 100644 --- a/internal/modifiers/skip_modifiers.go +++ b/internal/modifiers/skip_modifiers.go @@ -7,7 +7,3 @@ var skipInsertsModifier = AttrModifier{ var skipUpdatesModifier = AttrModifier{ SkipOnUpdate: true, } - -var skipQueriesModifier = AttrModifier{ - SkipOnQuery: true, -} diff --git a/test_adapters.go b/test_adapters.go index beadd82..ccb6ea8 100644 --- a/test_adapters.go +++ b/test_adapters.go @@ -2986,7 +2986,6 @@ func ModifiersTest( tt.AssertEqual(t, taggedUser.Name, "Marta Ribeiro") }) }) - }) }