Skip to content

Commit

Permalink
Bed 4402 butterfly impact table updates (#849)
Browse files Browse the repository at this point in the history
* refactor: update risk colors for consistency

* feat: add sort_by param option to /details request

* chore: rip out exposureSeverity

* chore: add license
  • Loading branch information
benwaples authored Oct 2, 2024
1 parent d7722b8 commit f8f2b90
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
16 changes: 16 additions & 0 deletions cmd/api/src/database/migration/migrations/v6.1.0.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
-- Copyright 2024 Specter Ops, Inc.
--
-- Licensed under the Apache License, Version 2.0
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- SPDX-License-Identifier: Apache-2.0

-- OIDC Provider
CREATE TABLE IF NOT EXISTS oidc_providers
(
Expand Down
6 changes: 0 additions & 6 deletions cmd/ui/src/styles/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,4 @@ export const colors = {
green: '#03b603',
softRed: '#FF7E79',
softGreen: '#A8D08D',
exposureSeverity: {
critical: '#B58BE5',
high: '#EA8181',
moderate: '#FFA86D',
low: '#FFD64C',
},
};
2 changes: 2 additions & 0 deletions packages/javascript/js-client-library/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,12 +488,14 @@ class BHEAPIClient {
skip: number,
limit: number,
filterAccepted?: boolean,
sortBy?: string,
options?: types.RequestOptions
) => {
const params: types.RiskDetailsRequest = {
finding: finding,
skip: skip,
limit: limit,
sort_by: sortBy,
};

if (typeof filterAccepted === 'boolean') params.Accepted = `eq:${filterAccepted}`;
Expand Down
1 change: 1 addition & 0 deletions packages/javascript/js-client-library/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export type RiskDetailsRequest = {
finding: string;
skip: number;
limit: number;
sort_by?: string;
Accepted?: string;
};

Expand Down

0 comments on commit f8f2b90

Please sign in to comment.