Skip to content

feat(Sanitizer): enhance sanitization with ProcessorConfigBuilder and… #9

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

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

walmir-silva
Copy link
Contributor

… improved AttributeHandler

  • Add creation of ProcessorConfigBuilder instance in the constructor and pass it to AttributeHandler.
  • Update AttributeHandler to receive ProcessorConfigBuilder as an additional constructor parameter.
  • Modify the sanitize method to use AttributeHandler methods for obtaining messages and processing errors, providing a richer and more informative return structure.
  • Maintain the sanitize method signature to ensure compatibility with SanitizerContract.
  • Ensure PropertyInspector continues to function as before, as main changes are encapsulated within AttributeHandler.

Additional Considerations:

  • Updated unit tests for Sanitizer to reflect the new return structure and modified internal logic.
  • Adjusted other classes that depend directly on AttributeHandler to accommodate similar changes.
  • Verified that the new return structure of the sanitize method is compatible with the rest of the system, updating usage points as necessary.

… improved AttributeHandler

- Add creation of `ProcessorConfigBuilder` instance in the constructor and pass it to `AttributeHandler`.
- Update `AttributeHandler` to receive `ProcessorConfigBuilder` as an additional constructor parameter.
- Modify the `sanitize` method to use `AttributeHandler` methods for obtaining messages and processing errors, providing a richer and more informative return structure.
- Maintain the `sanitize` method signature to ensure compatibility with `SanitizerContract`.
- Ensure `PropertyInspector` continues to function as before, as main changes are encapsulated within `AttributeHandler`.

**Additional Considerations:**

- Updated unit tests for `Sanitizer` to reflect the new return structure and modified internal logic.
- Adjusted other classes that depend directly on `AttributeHandler` to accommodate similar changes.
- Verified that the new return structure of the `sanitize` method is compatible with the rest of the system, updating usage points as necessary.
@walmir-silva walmir-silva merged commit 0d97db8 into main Oct 18, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant