Skip to content

Commit 2a560c1

Browse files
Refactor project folder structure for improved organization and scalability
Why these changes are being introduced: * The restructuring of the app's project directory was required to better accommodate the introduction of new DSC workflows. As we've started to plan the implementation of other workflows, it's becoming clear that each workflow is different. This new structure allows us to standardize the way each workflow is organized, while also providing a space for workflow-specific assets that may be needed. How this addresses that need: * Create folders for each DSC workflow implementation * Organize workflow and transformer Python files and metadata mapping JSON files under corresponding workflow dirs * Clean up imports * Update DSC version to 1.3 Side effects of this change: * None. It's worth highlighting that this commit focuses on structural changes to the app's project directory and does not introduce any functional changes to the app. Relevant ticket(s): * TBD
1 parent 96589a0 commit 2a560c1

18 files changed

Lines changed: 605 additions & 583 deletions

dsc/workflows/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
from dsc.workflows.archivesspace import ArchivesSpace
77
from dsc.workflows.base import Workflow
8-
from dsc.workflows.base.simple_csv import SimpleCSV
98
from dsc.workflows.opencourseware import OpenCourseWare
109
from dsc.workflows.sccs import SCCS
10+
from dsc.workflows.simple_csv import SimpleCSV
1111

1212
__all__ = ["SCCS", "ArchivesSpace", "OpenCourseWare", "SimpleCSV", "Workflow"]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from dsc.workflows.archivesspace.workflow import ArchivesSpace
2+
3+
__all__ = ["ArchivesSpace"]
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from dsc.db.models import ItemSubmissionStatus
77
from dsc.item_submission import ItemSubmission
8-
from dsc.workflows.base.simple_csv import SimpleCSV
8+
from dsc.workflows.simple_csv import SimpleCSV
99

1010
logger = logging.getLogger(__name__)
1111

@@ -25,7 +25,7 @@ class ArchivesSpace(SimpleCSV):
2525

2626
@property
2727
def metadata_mapping_path(self) -> str:
28-
return "dsc/workflows/metadata_mapping/archivesspace.json"
28+
return "dsc/workflows/archivesspace/metadata_mapping.json"
2929

3030
@property
3131
def output_path(self) -> str:

0 commit comments

Comments
 (0)