Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🫥Remove dot #598

Merged
merged 6 commits into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions cognite_toolkit/_cdf_tk/loaders/_resource_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ class FunctionScheduleLoader(
ResourceLoader[str, FunctionScheduleWrite, FunctionSchedule, FunctionScheduleWriteList, FunctionSchedulesList]
):
folder_name = "functions"
filename_pattern = r"^.*schedule.*$" # Matches all yaml files who's stem contain *.schedule.
filename_pattern = r"^.*schedule.*$" # Matches all yaml files who's stem contain *.schedule
resource_cls = FunctionSchedule
resource_write_cls = FunctionScheduleWrite
list_cls = FunctionSchedulesList
Expand Down Expand Up @@ -1648,7 +1648,8 @@ class TransformationScheduleLoader(
]
):
folder_name = "transformations"
filename_pattern = r"^.*\.schedule$" # Matches all yaml files who's stem contain *.schedule.
# Matches all yaml files whose stem contains *schedule or *TransformationSchedule.
filename_pattern = r"^.*schedule$"
resource_cls = TransformationSchedule
resource_write_cls = TransformationScheduleWrite
list_cls = TransformationScheduleList
Expand Down Expand Up @@ -1869,7 +1870,7 @@ class ExtractionPipelineConfigLoader(
]
):
folder_name = "extraction_pipelines"
filename_pattern = r"^.*\.config$"
filename_pattern = r"^.*config$"
resource_cls = ExtractionPipelineConfig
resource_write_cls = ExtractionPipelineConfigWrite
list_cls = ExtractionPipelineConfigList
Expand Down Expand Up @@ -2154,7 +2155,7 @@ def get_write_cls_parameter_spec(cls) -> ParameterSpecSet:
class SpaceLoader(ResourceContainerLoader[str, SpaceApply, Space, SpaceApplyList, SpaceList]):
item_name = "nodes and edges"
folder_name = "data_models"
filename_pattern = r"^.*\.?(space)$"
filename_pattern = r"^.*space$"
resource_cls = Space
resource_write_cls = SpaceApply
list_write_cls = SpaceApplyList
Expand Down Expand Up @@ -2282,7 +2283,7 @@ class ContainerLoader(
):
item_name = "nodes and edges"
folder_name = "data_models"
filename_pattern = r"^.*\.?(container)$"
filename_pattern = r"^.*container$"
resource_cls = Container
resource_write_cls = ContainerApply
list_cls = ContainerList
Expand Down Expand Up @@ -2467,7 +2468,7 @@ def get_write_cls_parameter_spec(cls) -> ParameterSpecSet:

class ViewLoader(ResourceLoader[ViewId, ViewApply, View, ViewApplyList, ViewList]):
folder_name = "data_models"
filename_pattern = r"^.*\.?(view)$"
filename_pattern = r"^.*view$"
resource_cls = View
resource_write_cls = ViewApply
list_cls = ViewList
Expand Down Expand Up @@ -2661,7 +2662,7 @@ def get_write_cls_parameter_spec(cls) -> ParameterSpecSet:
@final
class DataModelLoader(ResourceLoader[DataModelId, DataModelApply, DataModel, DataModelApplyList, DataModelList]):
folder_name = "data_models"
filename_pattern = r"^.*\.?(datamodel)$"
filename_pattern = r"^.*datamodel$"
resource_cls = DataModel
resource_write_cls = DataModelApply
list_cls = DataModelList
Expand Down Expand Up @@ -2747,7 +2748,7 @@ def get_write_cls_parameter_spec(cls) -> ParameterSpecSet:
class NodeLoader(ResourceContainerLoader[NodeId, NodeApply, Node, NodeApplyListWithCall, NodeList]):
item_name = "nodes"
folder_name = "data_models"
filename_pattern = r"^.*\.?(node)$"
filename_pattern = r"^.*node$"
resource_cls = Node
resource_write_cls = NodeApply
list_cls = NodeList
Expand Down
Loading