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

Bugfixes and code cleanup #2865

Merged
merged 5 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions src/store/api/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const reportsApi = baseApi.injectEndpoints({
query: () => ({ path: '/api/BestPracticeAnalyser_List' }),
}),
execBestPracticeAnalyser: builder.mutation({
query: () => ({ path: '/api/BestPracticeAnalyser_OrchestrationStarter' }),
query: () => ({ path: '/api/ExecBPA' }),
}),
execDomainsAnalyser: builder.mutation({
query: () => ({ path: '/api/DomainAnalyser_OrchestrationStarter' }),
query: () => ({ path: '/api/ExecDomainAnalyser' }),
}),
}),
})
Expand Down
21 changes: 4 additions & 17 deletions src/views/email-exchange/administration/EditMailboxPermissions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const MailboxPermissions = () => {
params: {
Endpoint: 'users',
TenantFilter: tenantDomain,
$filter: 'assignedLicenses/$count ne 0 and accountEnabled eq true',
$filter: "assignedLicenses/$count ne 0 and accountEnabled eq true and userType eq 'Member'",
$count: true,
},
})
Expand Down Expand Up @@ -586,7 +586,7 @@ const MailboxForwarding = () => {
params: {
Endpoint: 'users',
TenantFilter: tenantDomain,
$filter: "userType eq 'Member' and mail ge ' '", // filter out guests and users with no mailbox. #HACK "mail ne 'null'" does not work so this horrible hack is required
$filter: "userType eq 'Member' and proxyAddresses/$count ne 0",
},
})
useEffect(() => {
Expand Down Expand Up @@ -803,19 +803,6 @@ const OutOfOffice = () => {
error: userError,
} = useListMailboxPermissionsQuery({ tenantDomain, userId })

const {
data: users = [],
isFetching: usersIsFetching,
error: usersError,
} = useGenericGetRequestQuery({
path: '/api/ListGraphRequest',
params: {
Endpoint: 'users',
TenantFilter: tenantDomain,
$filter: 'assignedLicenses/$count ne 0 and accountEnabled eq true',
$count: true,
},
})
useEffect(() => {
if (postResults.isSuccess) {
// @TODO do something here?
Expand Down Expand Up @@ -865,9 +852,9 @@ const OutOfOffice = () => {
)}
<CRow>
<CCol className="mb-3">
{usersIsFetching && <CSpinner />}
{userIsFetching && <CSpinner />}
{userError && <span>Error loading user</span>}
{!usersIsFetching && (
{!userIsFetching && (
<Form
initialValues={{ ...initialState }}
onSubmit={onSubmit}
Expand Down
2 changes: 1 addition & 1 deletion src/views/endpoint/applications/ListApplicationQueue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const RefreshAction = () => {
<i>Please note: This job runs automatically every 12 hours.</i>
</div>
),
onConfirm: () => execStandards({ path: 'api/AddChocoApp_OrchestrationStarter' }),
onConfirm: () => execStandards({ path: 'api/ExecAppUpload' }),
})

return (
Expand Down
2 changes: 1 addition & 1 deletion src/views/tenant/standards/BestPracticeAnalyser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const RefreshAction = ({ singleTenant = false, refreshFunction = null }) => {
),
onConfirm: () =>
execBestPracticeAnalyser({
path: 'api/BestPracticeAnalyser_OrchestrationStarter',
path: 'api/ExecBPA',
params: params,
}),
})
Expand Down
Loading