Skip to content

Commit

Permalink
Merge branch 'pgadmin-org:master' into fix-external-config-pgdb-sqlal…
Browse files Browse the repository at this point in the history
…chemy
  • Loading branch information
sdsys-ch authored Nov 7, 2024
2 parents a256d12 + 947dbf6 commit 109c4e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 3 additions & 1 deletion docs/en_US/release_notes_8_13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ New features
************

| `Issue #1780 <https://github.com/pgadmin-org/pgadmin4/issues/1780>`_ - Replace infinite scrolling with pagination in query tool data output for better UX and performance.
| `Issue #1984 <https://github.com/pgadmin-org/pgadmin4/issues/1984>`_ - Add an object menu option to disconnect all server and database connections.
| `Issue #2874 <https://github.com/pgadmin-org/pgadmin4/issues/2874>`_ - Alternate the background color of rows to enhance readability.
| `Issue #5869 <https://github.com/pgadmin-org/pgadmin4/issues/5869>`_ - Allow to pass PGADMIN_CONFIG_CONFIG_DATABASE_URI from docker secrets.
| `Issue #6016 <https://github.com/pgadmin-org/pgadmin4/issues/6016>`_ - Format dashboard graph metrics for better readability.
| `Issue #7393 <https://github.com/pgadmin-org/pgadmin4/issues/7393>`_ - Added support for auto-detecting and setting the End-of-line character (LF/CRLF) in the query tool editor.
| `Issue #7863 <https://github.com/pgadmin-org/pgadmin4/issues/7863>`_ - Make the background color for the serial number and header cells distinct.
Expand All @@ -31,6 +33,7 @@ Housekeeping

| `Issue #8061 <https://github.com/pgadmin-org/pgadmin4/issues/8061>`_ - Updated the react-menu library from v2 to v4.
| `Issue #8077 <https://github.com/pgadmin-org/pgadmin4/issues/8077>`_ - Remove bootstrap from the runtime code.
| `Issue #8102 <https://github.com/pgadmin-org/pgadmin4/issues/8077>`_ - Remove the dependency on python packages eventlet and greenlet.
Bug fixes
*********
Expand All @@ -40,7 +43,6 @@ Bug fixes
| `Issue #7655 <https://github.com/pgadmin-org/pgadmin4/issues/7655>`_ - Fixed an issue where the query tool was crashing when an empty geometry was being rendered.
| `Issue #7837 <https://github.com/pgadmin-org/pgadmin4/issues/7837>`_ - Fixed an issue where role properties were not loading.
| `Issue #7883 <https://github.com/pgadmin-org/pgadmin4/issues/7883>`_ - Fix multiple issues related to debugger params dialog input.
| `Issue #7907 <https://github.com/pgadmin-org/pgadmin4/issues/7907>`_ - Ensure server connection is successful for sslrootcert=system in server configuration.
| `Issue #7919 <https://github.com/pgadmin-org/pgadmin4/issues/7919>`_ - Fixed an issue where the dock layout was not saved upon closing a tab.
| `Issue #7920 <https://github.com/pgadmin-org/pgadmin4/issues/7920>`_ - Fixed an issue where the copy shortcut CTRL +C was not working in the Query Tool data grid.
| `Issue #7955 <https://github.com/pgadmin-org/pgadmin4/issues/7955>`_ - Fixed an issue where Dashboard tab showing 'Something went wrong'.
Expand Down
13 changes: 6 additions & 7 deletions web/pgadmin/dashboard/static/js/Graphs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {useInterval, usePrevious} from 'sources/custom_hooks';
import PropTypes from 'prop-types';
import StreamingChart from '../../../static/js/components/PgChart/StreamingChart';
import { Grid, useTheme } from '@mui/material';
import { getChartColor } from '../../../static/js/utils';
import { getChartColor, toPrettySize } from '../../../static/js/utils';

export const X_AXIS_LENGTH = 75;

Expand Down Expand Up @@ -253,36 +253,35 @@ export function GraphsWrapper(props) {
lineBorderWidth: props.lineBorderWidth,
theme: props.theme,
}), [props.showTooltip, props.showDataPoints, props.lineBorderWidth, props.theme]);

return (
<>
<Grid container spacing={0.5}>
<Grid item md={6}>
<ChartContainer id='sessions-graph' title={props.isDatabase ? gettext('Database sessions') : gettext('Server sessions')}
datasets={props.sessionStats.datasets} errorMsg={props.errorMsg} isTest={props.isTest}>
<StreamingChart data={props.sessionStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} />
<StreamingChart data={props.sessionStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} valueFormatter={(v)=>toPrettySize(v, '')}/>
</ChartContainer>
</Grid>
<Grid item md={6}>
<ChartContainer id='tps-graph' title={gettext('Transactions per second')} datasets={props.tpsStats.datasets} errorMsg={props.errorMsg} isTest={props.isTest}>
<StreamingChart data={props.tpsStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} />
<StreamingChart data={props.tpsStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} valueFormatter={(v)=>toPrettySize(v, '')}/>
</ChartContainer>
</Grid>
</Grid>
<Grid container spacing={0.5} style={{marginTop: '4px', marginBottom: '4px'}}>
<Grid item md={4}>
<ChartContainer id='ti-graph' title={gettext('Tuples in')} datasets={props.tiStats.datasets} errorMsg={props.errorMsg} isTest={props.isTest}>
<StreamingChart data={props.tiStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} />
<StreamingChart data={props.tiStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} valueFormatter={(v)=>toPrettySize(v, '')}/>
</ChartContainer>
</Grid>
<Grid item md={4}>
<ChartContainer id='to-graph' title={gettext('Tuples out')} datasets={props.toStats.datasets} errorMsg={props.errorMsg} isTest={props.isTest}>
<StreamingChart data={props.toStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} />
<StreamingChart data={props.toStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} valueFormatter={(v)=>toPrettySize(v, '')}/>
</ChartContainer>
</Grid>
<Grid item md={4}>
<ChartContainer id='bio-graph' title={gettext('Block I/O')} datasets={props.bioStats.datasets} errorMsg={props.errorMsg} isTest={props.isTest}>
<StreamingChart data={props.bioStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} />
<StreamingChart data={props.bioStats} dataPointSize={DATA_POINT_SIZE} xRange={X_AXIS_LENGTH} options={options} valueFormatter={(v)=>toPrettySize(v, '')}/>
</ChartContainer>
</Grid>
</Grid>
Expand Down

0 comments on commit 109c4e4

Please sign in to comment.