mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-09 01:17:06 +02:00
removing sort order from diff in change requests (#2587)
This commit is contained in:
parent
0a9fdfc3df
commit
055c2acddd
@ -42,6 +42,7 @@
|
|||||||
"@types/deep-diff": "1.0.1",
|
"@types/deep-diff": "1.0.1",
|
||||||
"@types/jest": "29.2.3",
|
"@types/jest": "29.2.3",
|
||||||
"@types/lodash.clonedeep": "4.5.7",
|
"@types/lodash.clonedeep": "4.5.7",
|
||||||
|
"@types/lodash.omit": "4.5.7",
|
||||||
"@types/node": "17.0.18",
|
"@types/node": "17.0.18",
|
||||||
"@types/react": "17.0.52",
|
"@types/react": "17.0.52",
|
||||||
"@types/react-dom": "17.0.18",
|
"@types/react-dom": "17.0.18",
|
||||||
@ -69,6 +70,7 @@
|
|||||||
"immer": "9.0.16",
|
"immer": "9.0.16",
|
||||||
"jsdom": "20.0.3",
|
"jsdom": "20.0.3",
|
||||||
"lodash.clonedeep": "4.5.0",
|
"lodash.clonedeep": "4.5.0",
|
||||||
|
"lodash.omit": "4.5.0",
|
||||||
"millify": "^5.0.1",
|
"millify": "^5.0.1",
|
||||||
"msw": "0.49.1",
|
"msw": "0.49.1",
|
||||||
"pkginfo": "0.4.1",
|
"pkginfo": "0.4.1",
|
||||||
|
@ -9,9 +9,10 @@ import {
|
|||||||
GetFeatureStrategyIcon,
|
GetFeatureStrategyIcon,
|
||||||
} from '../../../../utils/strategyNames';
|
} from '../../../../utils/strategyNames';
|
||||||
import { Popover, Typography } from '@mui/material';
|
import { Popover, Typography } from '@mui/material';
|
||||||
import { useFeature } from '../../../../hooks/api/getters/useFeature/useFeature';
|
import { useFeature } from 'hooks/api/getters/useFeature/useFeature';
|
||||||
import { StyledCodeSection } from '../../../events/EventCard/EventCard';
|
import { StyledCodeSection } from '../../../events/EventCard/EventCard';
|
||||||
import EventDiff from '../../../events/EventDiff/EventDiff';
|
import EventDiff from '../../../events/EventDiff/EventDiff';
|
||||||
|
import omit from 'lodash.omit';
|
||||||
|
|
||||||
const useCurrentStrategy = (
|
const useCurrentStrategy = (
|
||||||
change:
|
change:
|
||||||
@ -47,6 +48,7 @@ export const PopoverDiff: FC<{
|
|||||||
feature,
|
feature,
|
||||||
environmentName
|
environmentName
|
||||||
);
|
);
|
||||||
|
|
||||||
const changeRequestStrategy =
|
const changeRequestStrategy =
|
||||||
change.action === 'deleteStrategy' ? undefined : change.payload;
|
change.action === 'deleteStrategy' ? undefined : change.payload;
|
||||||
|
|
||||||
@ -54,7 +56,7 @@ export const PopoverDiff: FC<{
|
|||||||
<StyledCodeSection>
|
<StyledCodeSection>
|
||||||
<EventDiff
|
<EventDiff
|
||||||
entry={{
|
entry={{
|
||||||
preData: currentStrategy,
|
preData: omit(currentStrategy, 'sortOrder'),
|
||||||
data: changeRequestStrategy,
|
data: changeRequestStrategy,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -2432,6 +2432,13 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/lodash" "*"
|
"@types/lodash" "*"
|
||||||
|
|
||||||
|
"@types/lodash.omit@4.5.7":
|
||||||
|
version "4.5.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/lodash.omit/-/lodash.omit-4.5.7.tgz#2357ed2412b4164344e8ee41f85bb0b2920304ba"
|
||||||
|
integrity sha512-6q6cNg0tQ6oTWjSM+BcYMBhan54P/gLqBldG4AuXd3nKr0oeVekWNS4VrNEu3BhCSDXtGapi7zjhnna0s03KpA==
|
||||||
|
dependencies:
|
||||||
|
"@types/lodash" "*"
|
||||||
|
|
||||||
"@types/lodash@*":
|
"@types/lodash@*":
|
||||||
version "4.14.182"
|
version "4.14.182"
|
||||||
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.182.tgz#05301a4d5e62963227eaafe0ce04dd77c54ea5c2"
|
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.182.tgz#05301a4d5e62963227eaafe0ce04dd77c54ea5c2"
|
||||||
@ -5491,6 +5498,11 @@ lodash.merge@^4.6.2:
|
|||||||
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
|
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
|
||||||
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
|
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
|
||||||
|
|
||||||
|
lodash.omit@4.5.0:
|
||||||
|
version "4.5.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/lodash.omit/-/lodash.omit-4.5.0.tgz#6eb19ae5a1ee1dd9df0b969e66ce0b7fa30b5e60"
|
||||||
|
integrity sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==
|
||||||
|
|
||||||
lodash.once@^4.1.1:
|
lodash.once@^4.1.1:
|
||||||
version "4.1.1"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac"
|
resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac"
|
||||||
|
Loading…
Reference in New Issue
Block a user