Commit Graph

7 Commits

Author SHA1 Message Date
Jonathon Broughton 5c09e22358 Refactor anonymization logic and improve checks
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
- Simplified email check method to ensure param_value is a string.
- Streamlined apply method for better handling of parameter values.
- Enhanced error handling when accessing parameters in Base objects.
- Added debug counters for processed objects in the ParameterProcessor class.
- Updated test cases to reflect changes in input parameters.
2025-03-25 01:49:29 +00:00
Jonathon Broughton 5295f8165d Add email anonymization action
- Introduced `AnonymizationAction` class for email handling.
- Added `EmailMatcher` to identify and anonymize emails.
- Updated `ParameterProcessor` to support value checking.
- Modified main function to create an anonymization action.
- Removed placeholder for the anonymization action.
2025-03-24 23:56:09 +00:00
Jonathon Broughton 6322f38720 Refactor parameter actions and matching strategies
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
- Introduced a new `ParameterMatcher` class for flexible matching.
- Added `PrefixMatcher` and `PatternMatcher` subclasses for specific match logic.
- Updated `ParameterAction` to include a check method.
- Replaced old removal action with a more generic `RemovalAction`.
- Enhanced input schema to clarify sanitization modes and parameters.
- Improved documentation throughout the codebase.
2025-03-24 22:56:45 +00:00
Jonathon Broughton 03bc9449c4 Refactor imports for better structure
- Updated import paths to improve clarity.
- Removed unused imports from the initialisation file.
- Organised imports in various modules for consistency.
2025-03-24 16:16:38 +00:00
Jonathon Broughton 3db077d150 Refactor imports for clarity and organisation
- Removed unnecessary imports from the main module.
- Consolidated import statements for `FunctionInputs` and `automate_function`.
- Updated test file to reflect new import paths.
2025-03-24 13:38:56 +00:00
Jonathon Broughton 99f43e6b3e Add project configuration files and clean up code
- Added .gitignore to exclude IDE-specific files.
- Created inspection profiles for code quality checks.
- Set up project metadata in various XML files.
- Removed unused dependencies from the lock file.
- Refactored main.py to streamline function calls and imports.
2025-03-23 17:05:51 +00:00
Jonathon Broughton 188148c69f Initial commit 2025-01-24 21:24:28 +00:00