File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77from pydantic import Field , root_validator , validator
88
99from cumulusci .core .enums import StrEnum
10- from cumulusci .tasks .bulkdata .extract_dataset_utils .hardcoded_default_declarations import (
11- DEFAULT_DECLARATIONS ,
12- )
1310from cumulusci .tasks .bulkdata .utils import CaseInsensitiveDict
1411from cumulusci .utils import get_cci_upgrade_command
1512from cumulusci .utils .yaml .model_parser import CCIDictModel
@@ -188,10 +185,6 @@ def standard_generate_query(
188185 filter_clause = user_filter , limit_clause = limit , offset_clause = offset
189186 )
190187 else :
191- # Get the WHERE clause from DEFAULT_DECLARATIONS if available
192- declaration = DEFAULT_DECLARATIONS .get (sobject )
193- if declaration :
194- query += f" WHERE { declaration .where } "
195188 query += f" LIMIT { limit } " if limit else ""
196189 query += f" OFFSET { offset } " if offset else ""
197190 return query , ["Id" ]
@@ -281,10 +274,6 @@ def similarity_generate_query(
281274 filter_clause = user_filter , limit_clause = limit , offset_clause = offset
282275 )
283276 else :
284- # Get the WHERE clause from DEFAULT_DECLARATIONS if available
285- declaration = DEFAULT_DECLARATIONS .get (sobject )
286- if declaration :
287- query += f" WHERE { declaration .where } "
288277 query += f" LIMIT { limit } " if limit else ""
289278 query += f" OFFSET { offset } " if offset else ""
290279
You can’t perform that action at this time.
0 commit comments