SocialGouv / domifa

Faciliter l'accès aux droits pour les personnes sans domicile stable, en simplifiant la gestion de la domiciliation
https://domifa.fabrique.social.gouv.fr
Apache License 2.0
14 stars 10 forks source link

Feat delete admin stats #3513

Closed pYassine closed 1 month ago

socket-security[bot] commented 1 month ago

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

socket-security[bot] commented 1 month ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@eslint-community/regexpp@4.10.0 None 0 431 kB eslint-community-bot
npm/@eslint/eslintrc@2.1.4 filesystem, unsafe +1 732 kB eslintbot
npm/@eslint/js@8.57.0 None 0 13.9 kB eslintbot
npm/@faker-js/faker@8.4.1 None 0 10.2 MB shinigami92
npm/@humanwhocodes/config-array@0.11.14 Transitive: environment +2 133 kB nzakas
npm/@types/bcryptjs@2.4.6 None 0 7.65 kB types
npm/@types/node@20.12.13 None 0 2.09 MB types
npm/@typescript-eslint/eslint-plugin@7.10.0 None 0 2.69 MB jameshenry
npm/@typescript-eslint/parser@7.10.0 None 0 18 kB jameshenry
npm/@typescript-eslint/scope-manager@7.10.0 None 0 613 kB jameshenry
npm/@typescript-eslint/type-utils@7.10.0 None 0 109 kB jameshenry
npm/@typescript-eslint/types@7.10.0 None 0 156 kB jameshenry
npm/@typescript-eslint/typescript-estree@7.10.0 Transitive: environment +2 1.02 MB jameshenry
npm/@typescript-eslint/utils@7.10.0 None 0 332 kB jameshenry
npm/@typescript-eslint/visitor-keys@7.10.0 None 0 19.4 kB jameshenry
npm/acorn-jsx@5.3.2 None 0 24.4 kB rreverser
npm/acorn@8.11.3 None 0 531 kB marijn
npm/bcryptjs@2.4.3 None 0 221 kB dcode
npm/chalk@4.1.2 None 0 35 kB sindresorhus
npm/doctrine@3.0.0 None 0 106 kB eslint
npm/eslint-scope@7.2.2 None 0 146 kB eslintbot
npm/eslint@8.57.0 environment, filesystem 0 3.04 MB eslintbot
npm/esquery@1.5.0 None +1 1.04 MB michaelficarra
npm/esrecurse@4.3.0 None 0 13.5 kB michaelficarra
npm/fast-glob@3.3.2 filesystem +1 109 kB mrmlnc
npm/fastq@1.17.1 None 0 41.9 kB matteo.collina
npm/file-entry-cache@6.0.1 filesystem 0 25.6 kB royriojas
npm/find-up@5.0.0 None 0 11.8 kB sindresorhus
npm/flat-cache@3.2.0 filesystem 0 29.4 kB jaredwray
npm/glob@7.2.3 filesystem 0 55.1 kB isaacs
npm/globby@11.1.0 filesystem 0 21.8 kB sindresorhus
npm/keyv@4.5.4 None 0 27.8 kB jaredwray
npm/levn@0.4.1 None 0 24.9 kB gkz
npm/locate-path@6.0.0 filesystem 0 7.02 kB sindresorhus
npm/micromatch@4.0.8 None 0 56.6 kB doowb
npm/optionator@0.9.4 None +1 71.3 kB gkz
npm/p-limit@3.1.0 None 0 7.75 kB sindresorhus
npm/p-locate@5.0.0 None 0 7.24 kB sindresorhus
npm/prettier@3.2.5 environment, filesystem, unsafe 0 8.39 MB prettier-bot
npm/rimraf@3.0.2 filesystem 0 17.3 kB isaacs
npm/semver@7.6.2 None 0 95.4 kB npm-cli-ops
npm/supports-color@7.2.0 None 0 7.04 kB sindresorhus
npm/ts-api-utils@1.3.0 None 0 828 kB joshuakgoldberg
npm/typescript-eslint@7.10.0 None 0 81.1 kB jameshenry
npm/uri-js@4.4.1 None 0 470 kB garycourt

🚮 Removed packages: npm/@isaacs/cliui@8.0.2, npm/@isaacs/string-locale-compare@1.1.0, npm/@jest/schemas@29.6.3, npm/@npmcli/fs@3.1.1, npm/@npmcli/name-from-folder@2.0.0, npm/@npmcli/node-gyp@3.0.0, npm/@npmcli/query@3.1.0, npm/@npmcli/redact@2.0.1, npm/@pkgjs/parseargs@0.11.0, npm/@sigstore/bundle@2.3.2, npm/@sigstore/core@1.1.0, npm/@sigstore/protobuf-specs@0.3.2, npm/@sigstore/sign@2.3.2, npm/@sigstore/tuf@2.3.4, npm/@sigstore/verify@1.2.1, npm/@sinclair/typebox@0.27.8, npm/@tufjs/canonical-json@2.0.0, npm/@tufjs/models@2.0.1, npm/@types/conventional-commits-parser@5.0.0, npm/abbrev@2.0.0, npm/aggregate-error@3.1.0, npm/ajv@8.17.1, npm/aproba@2.0.0, npm/array-ify@1.0.0, npm/asynckit@0.4.0, npm/base64-js@1.5.1, npm/bin-links@4.0.4, npm/bl@4.1.0, npm/buffer@5.7.1, npm/chownr@2.0.0, npm/clean-stack@2.2.0, npm/cliui@8.0.1, npm/cmd-shim@6.0.3, npm/color-support@1.1.3, npm/combined-stream@1.0.8, npm/common-ancestor-path@1.0.1, npm/compare-func@2.0.0, npm/console-control-strings@1.1.0, npm/conventional-changelog-angular@7.0.0, npm/conventional-changelog-conventionalcommits@7.0.2, npm/conventional-commits-parser@5.0.0, npm/cosmiconfig-typescript-loader@5.0.0, npm/cosmiconfig@9.0.0, npm/cssesc@3.0.0, npm/dargs@8.1.0, npm/decamelize-keys@1.1.1, npm/decamelize@1.2.0, npm/delayed-stream@1.0.0, npm/diff-sequences@29.6.3, npm/dot-prop@5.3.0, npm/eastasianwidth@0.2.0, npm/emoji-regex@8.0.0, npm/end-of-stream@1.4.4, npm/env-paths@2.2.1, npm/err-code@2.0.3, npm/error-ex@1.3.2, npm/exponential-backoff@3.1.1, npm/fast-uri@3.0.1, npm/find-up@7.0.0, npm/foreground-child@3.1.1, npm/form-data@4.0.0, npm/fs-constants@1.0.0, npm/function-bind@1.1.2, npm/get-caller-file@2.0.5, npm/git-raw-commits@4.0.0, npm/global-directory@4.0.1, npm/hard-rejection@2.1.0, npm/has-unicode@2.0.1, npm/http-cache-semantics@4.1.1, npm/import-meta-resolve@4.1.0, npm/indent-string@4.0.0, npm/ini@4.1.1, npm/is-arrayish@0.2.1, npm/is-core-module@2.13.1, npm/is-lambda@1.0.1, npm/is-obj@2.0.0, npm/is-text-path@2.0.0, npm/js-tokens@4.0.0, npm/json-stringify-nice@1.1.4, npm/json-stringify-safe@5.0.1, npm/json5@2.2.3, npm/jsonparse@1.3.1, npm/jsonstream@1.3.5, npm/just-diff-apply@5.5.0, npm/just-diff@6.0.2, npm/kind-of@6.0.3, npm/lines-and-columns@1.2.4, npm/locate-path@7.2.0, npm/lodash.camelcase@4.3.0, npm/lodash.isplainobject@4.0.6, npm/lodash.kebabcase@4.1.1, npm/lodash.mergewith@4.6.2, npm/lodash.snakecase@4.1.1, npm/lodash.startcase@4.4.0, npm/lodash.uniq@4.5.0, npm/lodash.upperfirst@4.3.1, npm/lodash@4.17.21, npm/make-dir@4.0.0, npm/map-obj@4.3.0, npm/meow@12.1.1, npm/merge-stream@2.0.0, npm/mime-db@1.52.0, npm/mime-types@2.1.35, npm/min-indent@1.0.1, npm/minimist@1.2.8, npm/minipass-collect@2.0.1, npm/minipass-flush@1.0.5, npm/minipass-pipeline@1.2.4, npm/minipass-sized@1.0.3, npm/mkdirp@1.0.4, npm/negotiator@0.6.3, npm/nopt@7.2.1, npm/npm-install-checks@6.3.0, npm/npm-packlist@8.0.2, npm/p-limit@4.0.0, npm/p-locate@6.0.0, npm/p-map@4.0.0, npm/package-json-from-dist@1.0.0, npm/parse-conflict-json@3.0.1, npm/parse-json@5.2.0, npm/path-exists@5.0.0, npm/path-parse@1.0.7, npm/proggy@2.0.0, npm/promise-all-reject-late@1.0.1, npm/promise-call-limit@3.0.1, npm/promise-inflight@1.0.1, npm/proxy-from-env@1.1.0, npm/quick-lru@4.0.1, npm/read-cmd-shim@4.0.0, npm/readable-stream@3.6.2, npm/redent@3.0.0, npm/require-directory@2.1.1, npm/require-from-string@2.0.2, npm/resolve-from@5.0.0, npm/resolve@1.22.8, npm/retry@0.12.0, npm/safer-buffer@2.1.2, npm/set-blocking@2.0.0, npm/signal-exit@3.0.7, npm/sigstore@2.3.1, npm/smart-buffer@4.2.0, npm/spdx-correct@3.2.0, npm/spdx-expression-parse@3.0.1, npm/split2@4.2.0, npm/ssri@10.0.6, npm/string-width-cjs@4.2.3, npm/strip-ansi-cjs@6.0.1, npm/strip-indent@3.0.0, npm/supports-color@5.5.0, npm/supports-preserve-symlinks-flag@1.0.0, npm/text-extensions@2.4.0, npm/through@2.3.8, npm/treeverse@3.0.0, npm/trim-newlines@3.0.1, npm/tuf-js@2.2.1, npm/type-fest@0.6.0, npm/unicorn-magic@0.1.0, npm/unique-filename@3.0.0, npm/unique-slug@4.0.0, npm/util-deprecate@1.0.2, npm/uuid@10.0.0, npm/walk-up-path@3.0.1, npm/wide-align@1.1.5, npm/wrap-ansi-cjs@7.0.0, npm/wrap-ansi@7.0.0, npm/y18n@5.0.8, npm/yaml@1.10.2, npm/yargs-parser@21.1.1, npm/yargs@17.7.2, npm/yocto-queue@1.0.0

View full report↗︎

codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 95.58824% with 6 lines in your changes missing coverage. Please review.

Project coverage is 67.20%. Comparing base (42206fd) to head (0971ca0). Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
.../backend/src/stats/services/publicStats.service.ts 94.33% 2 Missing and 1 partial :warning:
packages/backend/src/auth/jwt/jwt.strategy.ts 75.00% 1 Missing :warning:
...port-stats-deploiement/statsDeploiementExporter.ts 50.00% 1 Missing :warning:
...rs/admin-structures/admin-structures.controller.ts 94.73% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513/graphs/tree.svg?width=650&height=150&src=pr&token=ydhKiPXRFO&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv)](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv) ```diff @@ Coverage Diff @@ ## master #3513 +/- ## ========================================== - Coverage 67.69% 67.20% -0.50% ========================================== Files 910 898 -12 Lines 14995 14782 -213 Branches 2091 2093 +2 ========================================== - Hits 10151 9934 -217 + Misses 4804 4693 -111 - Partials 40 155 +115 ``` | [Files with missing lines](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv) | Coverage Δ | | |---|---|---| | [packages/backend/src/\_common/model/index.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2F_common%2Fmodel%2Findex.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvX2NvbW1vbi9tb2RlbC9pbmRleC50cw==) | `100.00% <ø> (ø)` | | | [...I\_SECURITY\_STRUCTURE\_CONTROLLER\_TEST\_DEFS.const.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2F_tests%2FAPI_SECURITY_STRUCTURE_CONTROLLER_TEST_DEFS.const.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvX3Rlc3RzL0FQSV9TRUNVUklUWV9TVFJVQ1RVUkVfQ09OVFJPTExFUl9URVNUX0RFRlMuY29uc3QudHM=) | `100.00% <100.00%> (ø)` | | | [...end/src/\_tests/SECURITY\_TESTS\_NEST\_MODULE.const.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2F_tests%2FSECURITY_TESTS_NEST_MODULE.const.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvX3Rlc3RzL1NFQ1VSSVRZX1RFU1RTX05FU1RfTU9EVUxFLmNvbnN0LnRz) | `100.00% <100.00%> (ø)` | | | [packages/backend/src/app.module.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2Fapp.module.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvYXBwLm1vZHVsZS50cw==) | `100.00% <100.00%> (ø)` | | | [packages/backend/src/auth/auth.module.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2Fauth%2Fauth.module.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvYXV0aC9hdXRoLm1vZHVsZS50cw==) | `100.00% <100.00%> (ø)` | | | [...ackend/src/excel/export-stats-deploiement/index.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2Fexcel%2Fexport-stats-deploiement%2Findex.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvZXhjZWwvZXhwb3J0LXN0YXRzLWRlcGxvaWVtZW50L2luZGV4LnRz) | `100.00% <100.00%> (ø)` | | | [...renderer/exportListeStructuresWorksheetRenderer.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2Fexcel%2Fexport-stats-deploiement%2Fworksheet-renderer%2FexportListeStructuresWorksheetRenderer.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvZXhjZWwvZXhwb3J0LXN0YXRzLWRlcGxvaWVtZW50L3dvcmtzaGVldC1yZW5kZXJlci9leHBvcnRMaXN0ZVN0cnVjdHVyZXNXb3Jrc2hlZXRSZW5kZXJlci50cw==) | `100.00% <100.00%> (ø)` | | | [...heet-renderer/exportListeUsersWorksheetRenderer.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2Fexcel%2Fexport-stats-deploiement%2Fworksheet-renderer%2FexportListeUsersWorksheetRenderer.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvZXhjZWwvZXhwb3J0LXN0YXRzLWRlcGxvaWVtZW50L3dvcmtzaGVldC1yZW5kZXJlci9leHBvcnRMaXN0ZVVzZXJzV29ya3NoZWV0UmVuZGVyZXIudHM=) | `100.00% <100.00%> (ø)` | | | [...port-stats-deploiement/worksheet-renderer/index.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2Fexcel%2Fexport-stats-deploiement%2Fworksheet-renderer%2Findex.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvZXhjZWwvZXhwb3J0LXN0YXRzLWRlcGxvaWVtZW50L3dvcmtzaGVldC1yZW5kZXJlci9pbmRleC50cw==) | `100.00% <ø> (ø)` | | | [...rc/modules/portail-admin/\_dto/MetabaseStats.dto.ts](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree&filepath=packages%2Fbackend%2Fsrc%2Fmodules%2Fportail-admin%2F_dto%2FMetabaseStats.dto.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv#diff-cGFja2FnZXMvYmFja2VuZC9zcmMvbW9kdWxlcy9wb3J0YWlsLWFkbWluL19kdG8vTWV0YWJhc2VTdGF0cy5kdG8udHM=) | `90.00% <ø> (ø)` | | | ... and [23 more](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv) | | ... and [61 files with indirect coverage changes](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv). Last update [42206fd...0971ca0](https://app.codecov.io/gh/SocialGouv/domifa/pull/3513?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SocialGouv).
SocialGroovyBot commented 1 month ago

:tada: This PR is included in version 2.177.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: