1. Explain plan crashes query tool after SonarQube fixes.

2. Fix XSS issue in query tool.
3. Process details for cloud process not showing complete command.
4. Confirm dialog before removing processes.
This commit is contained in:
Aditya Toshniwal
2022-08-18 18:42:03 +05:30
committed by Akshay Joshi
parent f873ab5374
commit 09e2c0eac0
63 changed files with 35 additions and 21 deletions

View File

@@ -28,6 +28,7 @@ const useStyles = makeStyles((theme)=>({
},
containerBody: {
marginTop: '1rem',
overflowWrap: 'break-word',
},
containerSuccess: {
borderColor: theme.palette.success.main,

View File

@@ -22,6 +22,7 @@ import HelpIcon from '@material-ui/icons/HelpRounded';
import url_for from 'sources/url_for';
import { Box } from '@material-ui/core';
import { useMemo } from 'react';
import Notifier from '../../../../static/js/helpers/Notifier';
const useStyles = makeStyles((theme) => ({
@@ -251,6 +252,12 @@ export default function Processes() {
sortOptions={[{id: 'stime', desc: true}]}
getSelectedRows={(rows)=>{setSelectedRows(rows);}}
isSelectRow={true}
tableProps={{
autoResetSelectedRows: false,
getRowId: (row)=>{
return row.id;
}
}}
CustomHeader={()=>{
return (
<Box>
@@ -260,7 +267,9 @@ export default function Processes() {
aria-label="Acknowledge and Remove"
title={gettext('Acknowledge and Remove')}
onClick={() => {
pgAdmin.Browser.BgProcessManager.acknowledge(selectedRows.map((p)=>p.original.id));
Notifier.confirm(gettext('Remove Processes'), gettext('Are you sure you want to remove the selected processes?'), ()=>{
pgAdmin.Browser.BgProcessManager.acknowledge(selectedRows.map((p)=>p.original.id));
});
}}
disabled={selectedRows.length <= 0}
></PgIconButton>