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

fix(THEEDGE-3703): On immutable tab we can't see the add system option #2102

Merged
merged 21 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d34946e
feat(THEEDGE-3703): fix condition to display tabs; remove federation;…
acosferreira Nov 14, 2023
e72a27a
Merge branch 'master' of github.com:RedHatInsights/insights-inventory…
acosferreira Nov 15, 2023
24abeed
feat(THEEDGE-3703): add validation for inline update action
acosferreira Nov 15, 2023
d2c155f
feat(THEEDGE-3703): fix validation for inline update action
acosferreira Nov 15, 2023
c05fae2
feat(THEEDGE-3703): change endpoint; fix update action to call update…
acosferreira Nov 16, 2023
5b41138
feat(THEEDGE-3703): include update button validation for enable disable
acosferreira Nov 18, 2023
8b17f3f
feat(THEEDGE-3703): call modal to update; add notification;
acosferreira Nov 20, 2023
93f4a97
feat(THEEDGE-3703): fix tab init;
acosferreira Nov 20, 2023
4805c78
feat(THEEDGE-3703): add missing columns;
acosferreira Nov 21, 2023
605c01a
feat(THEEDGE-3703): add values and link to edge columns;
acosferreira Nov 22, 2023
fb07db4
feat(THEEDGE-3703): clean up;
acosferreira Nov 22, 2023
5688daa
feat(THEEDGE-3703): fix total count;
acosferreira Nov 22, 2023
4a4032f
feat(THEEDGE-3703): fix conflict;
acosferreira Nov 22, 2023
62eba51
Merge branch 'master' of github.com:RedHatInsights/insights-inventory…
acosferreira Nov 22, 2023
a483d54
feat(THEEDGE-3703): remove conditional from hooks
acosferreira Nov 22, 2023
d75d218
feat(THEEDGE-3703): clean up; pr fixes
acosferreira Nov 23, 2023
9636d8d
feat(THEEDGE-3703): add usememo; remove code duplication;
acosferreira Nov 23, 2023
6f9f918
feat(THEEDGE-3703): fix padding for buttons
acosferreira Nov 23, 2023
2c879e8
Merge branch 'master' of github.com:RedHatInsights/insights-inventory…
acosferreira Nov 23, 2023
c6a8adf
feat(THEEDGE-3703): enable select all
acosferreira Nov 23, 2023
942a311
Merge branch 'master' of github.com:RedHatInsights/insights-inventory…
acosferreira Nov 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const calculateSystemProfile = ({
osFilter,
rhcdFilter,
updateMethodFilter,
hostTypeFilter,
}) => {
let systemProfile = {};
const osFilterValues = Array.isArray(osFilter)
Expand Down Expand Up @@ -159,6 +160,10 @@ export const calculateSystemProfile = ({
};
}

if (hostTypeFilter) {
systemProfile['host_type'] = hostTypeFilter;
}

return generateFilter({ system_profile: systemProfile });
};

Expand All @@ -172,6 +177,7 @@ export const filtersReducer = (acc, filter = {}) => ({
}),
...('osFilter' in filter && { osFilter: filter.osFilter }),
...('rhcdFilter' in filter && { rhcdFilter: filter.rhcdFilter }),
...('hostTypeFilter' in filter && { hostTypeFilter: filter.hostTypeFilter }),
...('lastSeenFilter' in filter && { lastSeenFilter: filter.lastSeenFilter }),
...('updateMethodFilter' in filter && {
updateMethodFilter: filter.updateMethodFilter,
Expand Down Expand Up @@ -400,6 +406,11 @@ export const fetchEdgeSystem = () => {
}
};

export const useGetImageData = () => {
return (deviceIDs) => {
return instance.post(`${EDGE_API_BASE}/devices/devicesview`, deviceIDs);
};
};
export const fetchEdgeEnforceGroups = () => {
try {
return instance.get(`${EDGE_API_BASE}/device-groups/enforce-edge-groups`);
Expand Down
6 changes: 6 additions & 0 deletions src/api/edge/imagesInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ export const useGetDevice = () => {
const axios = useAxiosWithPlatformInterceptors();
return (id) => axios.get(`${EDGE_API}/devices/${id}`);
};

export const useGetInventoryGroupUpdateInfo = () => {
const axios = useAxiosWithPlatformInterceptors();
return (id) =>
axios.get(`${EDGE_API}/updates/inventory-groups/${id}/update-info`);
};
export const getTableParams = (param) => {
if (param === undefined) {
return '';
Expand Down
Loading