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

IDirectoryObject Refactor #135

Merged
merged 16 commits into from
Jul 22, 2024
Merged

IDirectoryObject Refactor #135

merged 16 commits into from
Jul 22, 2024

Conversation

rvazarkar
Copy link
Contributor

@rvazarkar rvazarkar commented Jul 19, 2024

Description

Replaces old interfaces with new IDirectoryObject interface for testability and cleanliness. Adds a whole bunch of tests around core logic. Also standardizes casing for LDAP to Ldap

Motivation and Context

How Has This Been Tested?

Tested locally w/ testing + Lab VM. Merging into staging, not into main

Screenshots (if appropriate):

Types of changes

  • Chore (a change that does not modify the application functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Documentation updates are needed, and have been made accordingly.
  • I have added and/or updated tests to cover my changes.
  • All new and existing tests passed.
  • My changes include a database migration.

@rvazarkar rvazarkar changed the title Search result IDirectoryObject Refactor Jul 19, 2024
Copy link
Collaborator

@zinic zinic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honker but good. Lots of excellent refactors and testing. Few minor nits and thoughts. I'd request a review of comments to see if anything is easy to fix before giving this formal approval.

src/CommonLib/OutputTypes/Computer.cs Show resolved Hide resolved
src/CommonLib/Processors/ComputerAvailability.cs Outdated Show resolved Hide resolved
src/CommonLib/LdapProducerQueryGenerator.cs Show resolved Hide resolved
test/unit/CertAbuseProcessorTest.cs Show resolved Hide resolved
test/unit/GroupProcessorTest.cs Outdated Show resolved Hide resolved
test/unit/Utils.cs Outdated Show resolved Hide resolved
test/unit/WellKnownPrincipalTest.cs Outdated Show resolved Hide resolved
Copy link
Collaborator

@zinic zinic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shipit

@rvazarkar rvazarkar merged commit 4a03e01 into utils_rewrite Jul 22, 2024
3 checks passed
@rvazarkar rvazarkar deleted the SearchResult branch July 22, 2024 18:34
@github-actions github-actions bot locked and limited conversation to collaborators Jul 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants