Skip to content

Commit

Permalink
Merge pull request #38 from openimis/release/23.10
Browse files Browse the repository at this point in the history
MERGING release/23.10 into develop
  • Loading branch information
delcroip authored Dec 11, 2023
2 parents 511da4e + 8841deb commit fe05826
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 6 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "39 17 * * 0"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ javascript ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
1 change: 1 addition & 0 deletions src/pages/ExtractsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { People, Autorenew as RenewIcon, Keyboard } from "@material-ui/icons";
import FeedbackIcon from "@material-ui/icons/SpeakerNotesOutlined";
import Block from "../components/Block";
import { RIGHT_EXTRACTS } from "../constants";
import {string} from "prop-types";

const EXTRACTS_URL = `${baseApiUrl}/tools/extracts`;

Expand Down
10 changes: 4 additions & 6 deletions src/pages/RegistersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Dialog,
DialogContent,
DialogTitle,
DialogActions,
DialogActions
} from "@material-ui/core";

import {
Expand Down Expand Up @@ -84,7 +84,6 @@ const RegistersPage = () => {
const rights = useSelector((state) => state.core?.user?.i_user?.rights ?? []);
const [dialogState, setDialogState] = useState({});
const [popupState, setPopupState] = useState({});

const REGISTERS_URL = `${baseApiUrl}/tools/registers`;
const EXPORTS_URL = `${baseApiUrl}/tools/exports`;
const IMPORTS_URL = `${baseApiUrl}/tools/imports`;
Expand Down Expand Up @@ -141,6 +140,7 @@ const RegistersPage = () => {
});
};


const onDialogClose = (reason) => {
if (reason === "escapeKeyDown" || reason === "backdropClick") {
return;
Expand All @@ -165,10 +165,8 @@ const RegistersPage = () => {
anchorEl: null,
error: null,
});

const fileFormat = values.file.type;
let formData = new FormData();

formData.append("file", values.file);

let url_import;
Expand Down Expand Up @@ -227,7 +225,7 @@ const RegistersPage = () => {
});
}
};

console.log("TOOLS RENDERING")
return (
<>
{dialogState?.open && (
Expand Down Expand Up @@ -515,7 +513,7 @@ const RegistersPage = () => {
/>
</Grid>
<Grid item>
<Button
<Button
variant="contained"
color="primary"
onClick={(e) => openPopup(e, LOCATIONS_TYPE)}
Expand Down

0 comments on commit fe05826

Please sign in to comment.