Skip to content

refactor(OG): Update schema_rel_finding db methods to schema_finding#2405

Closed
mistahj67 wants to merge 2 commits intorefactor-rel-findings-to-findingsfrom
refactor-rel-findings-to-findings-2
Closed

refactor(OG): Update schema_rel_finding db methods to schema_finding#2405
mistahj67 wants to merge 2 commits intorefactor-rel-findings-to-findingsfrom
refactor-rel-findings-to-findings-2

Conversation

@mistahj67
Copy link
Contributor

Description

Rename / refactor for new schema_findings table

Motivation and Context

Resolves <TICKET_OR_ISSUE_NUMBER>

Why is this change required? What problem does it solve?

How Has This Been Tested?

Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc.

Screenshots (optional):

Types of changes

  • Chore (a change that does not modify the application functionality)

Checklist:

@mistahj67 mistahj67 self-assigned this Feb 24, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor-rel-findings-to-findings-2

Comment @coderabbitai help to get the list of available commands and usage tips.

@mistahj67 mistahj67 force-pushed the refactor-rel-findings-to-findings-2 branch 2 times, most recently from d930769 to f2ee71c Compare February 24, 2026 02:28
@mistahj67 mistahj67 force-pushed the refactor-rel-findings-to-findings-2 branch from f2ee71c to b7dd62e Compare February 24, 2026 03:04
@mistahj67 mistahj67 added the api A pull request containing changes affecting the API code. label Feb 24, 2026
// CreateSchemaRelationshipFinding - creates a new schema relationship finding.
func (s *BloodhoundDB) CreateSchemaRelationshipFinding(ctx context.Context, extensionId int32, relationshipKindId int32, environmentId int32, name string, displayName string) (model.SchemaRelationshipFinding, error) {
var finding model.SchemaRelationshipFinding
// CreateSchemaFinding - creates a new schema relationship finding.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// CreateSchemaFinding - creates a new schema relationship finding.
// CreateSchemaFinding - creates a new schema finding.

// GetSchemaRelationshipFindingById - retrieves a schema relationship finding by id.
func (s *BloodhoundDB) GetSchemaRelationshipFindingById(ctx context.Context, findingId int32) (model.SchemaRelationshipFinding, error) {
var finding model.SchemaRelationshipFinding
// GetSchemaFindingById - retrieves a schema relationship finding by id.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// GetSchemaFindingById - retrieves a schema relationship finding by id.
// GetSchemaFindingById - retrieves a schema finding by id.

// GetSchemaRelationshipFindingByName - retrieves a schema relationship finding by finding name.
func (s *BloodhoundDB) GetSchemaRelationshipFindingByName(ctx context.Context, name string) (model.SchemaRelationshipFinding, error) {
var finding model.SchemaRelationshipFinding
// GetSchemaFindingByName - retrieves a schema relationship finding by finding name.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// GetSchemaFindingByName - retrieves a schema relationship finding by finding name.
// GetSchemaFindingByName - retrieves a schema finding by finding name.

// DeleteSchemaRelationshipFinding - deletes a schema relationship finding by id.
func (s *BloodhoundDB) DeleteSchemaRelationshipFinding(ctx context.Context, findingId int32) error {
var finding model.SchemaRelationshipFinding
// DeleteSchemaFinding - deletes a schema relationship finding by id.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// DeleteSchemaFinding - deletes a schema relationship finding by id.
// DeleteSchemaFinding - deletes a schema finding by id.

@mistahj67 mistahj67 force-pushed the refactor-rel-findings-to-findings branch 2 times, most recently from 9b40fdb to 2d31431 Compare February 26, 2026 00:09
@mistahj67
Copy link
Contributor Author

Closing because this changeset is needed by #2404

@mistahj67 mistahj67 closed this Feb 26, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2026
@mistahj67 mistahj67 deleted the refactor-rel-findings-to-findings-2 branch February 26, 2026 00:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api A pull request containing changes affecting the API code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants