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

Bed 4805 #905

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Bed 4805 #905

wants to merge 7 commits into from

Conversation

stephanieslamb
Copy link
Contributor

Description

As part of a refactor, moved a few filtering functions and an interface to the api package where it can be used elsewhere. Also updated OpenAPI spec with new fields for attack path details handler.

Motivation and Context

This PR addresses: BED-4805

Why is this change required? What problem does it solve?
This was part of a refactor to clean up duplicated code.

How Has This Been Tested?

Unit tests still pass.

Screenshots (optional):

Types of changes

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

Checklist:

@stephanieslamb stephanieslamb added documentation Improvements or additions to documentation api A pull request containing changes affecting the API code. labels Oct 16, 2024
@stephanieslamb stephanieslamb self-assigned this Oct 16, 2024
@juggernot325 juggernot325 self-requested a review October 18, 2024 18:44
Copy link
Contributor

@juggernot325 juggernot325 left a comment

Choose a reason for hiding this comment

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

Found a couple minor things.

//
// SPDX-License-Identifier: Apache-2.0

package api
Copy link
Contributor

Choose a reason for hiding this comment

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

I really like this refactor! Can we open up a ticket to update all existing endpoints to use these functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, i can do that. i think when alyx and i originally talked about this, we thought it would be more like something i demo in demo/retro and then people will know the option is there. but if a ticket seems better, i can get that created!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api A pull request containing changes affecting the API code. documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants