-
Notifications
You must be signed in to change notification settings - Fork 7
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
Tech - Migre la liste des règlementations du BackOffice vers Typescript #3777
base: master
Are you sure you want to change the base?
Tech - Migre la liste des règlementations du BackOffice vers Typescript #3777
Conversation
cecdcdc
to
f042650
Compare
f042650
to
b5ef849
Compare
1651c81
to
8500330
Compare
8500330
to
9b5ed99
Compare
ef6e2ba
to
6af70f3
Compare
frontend/src/features/AdministrativeZone/components/AdministrativeZones/index.tsx
Outdated
Show resolved
Hide resolved
frontend/src/features/AdministrativeZone/layers/AdministrativeLayers.tsx
Outdated
Show resolved
Hide resolved
@@ -196,21 +196,18 @@ function UnmemoizedVesselListFilters({ seeMoreIsOpen, setSeeMoreIsOpen }: Vessel | |||
|
|||
// TODO Export to a thunk use-case | |||
const getZones = useCallback(async () => { | |||
const nextZonesPromises = dispatch(getZonesAndSubZonesPromises()) | |||
const nextZones = await Promise.all(nextZonesPromises) | |||
const zonesAndSubZones = await dispatch(getZonesAndSubZonesPromises()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je me demande s'il ne vaut pas mieux garder Promise.all
, pour des raisons de performances
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getZonesAndSubZonesPromises()
utilise lui-même un Promise.all()
maintenant ^^. Il faut que je le renomme en getZonesAndSubZones()
d'ailleurs.
ba7d6fe
to
ccfbc0d
Compare
b286ea0
to
7c286f6
Compare
d794064
to
aefc9ed
Compare
aefc9ed
to
4b44b2c
Compare
Je note quelques retours ici :
|
<MultiCascader | ||
// TODO A deep copy is required to prevent error : "can't define property "parent": Object is not extensible" | ||
data={zonesFilter.map(zone => JSON.parse(JSON.stringify(zone)))} | ||
data={zonesFilterClone} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quality Gate passedIssues Measures |
@@ -224,4 +224,80 @@ context('BackOffice > Regulation Form > Creation', () => { | |||
cy.get('[data-cy="tag-MERLU D\'EUROPE (HKE)"]').should('exist') | |||
cy.get('[data-cy="tag-Espèces eau profonde"]').should('exist') | |||
}) | |||
|
|||
it('Should send the expected request when creating a regulation with a complex period', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai essayé d'écrire un test d'ajout de période "complexe" pour tester le request body (apparemment en XML) mais c'est un petit enfer de faire un input de date via Cypress dans ces composants de date-là. Du coup j'ai poussé mon commit en WIP, c'est clairement pas fini sorry :X.
Linked issues
src/features/Reporting/components/ReportingCard/__tests__/ReportingCard.skippedtest.tsx
MainMap
enMonitorfishMap
+ mergerfeatures/map/*
dedans