Skip to content
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

[BO - Document] Mise à jour des types de documents #2529

Merged
merged 1 commit into from
May 6, 2024

Conversation

numew
Copy link
Collaborator

@numew numew commented May 3, 2024

Ticket

#2526

Description

Migration du documentType des fichiers :

  • de fileType = "document" et documentType = "AUTRE" ou "AUTRE_PROCEDURE"
  • Concernant des signalement actif
    Suivant cet algo :
    image
    Certains document pouvant répondre à plusieurs critères la priorité va sur le type "AUTRE_PROCEDURE"

Pré-requis

make execute-migration name=Version20240503102522 direction=up

Tests

  • Vérifier que les type de document correspondent a ceux définis par l'algo
    Ex la requete suivante ne devrait pas retourner de résultat :
SELECT * FROM `file` f INNER JOIN signalement s ON s.id = f.signalement_id 
WHERE (s.statut = 1 OR s.statut = 2) 
and f.title like '%courrier%' 
and f.file_type = 'document' 
and (f.document_type = 'AUTRE');

@numew numew changed the title migration type document #2526 [BO - Document] Mise à jour des types de documents May 3, 2024
Copy link

sonarcloud bot commented May 3, 2024

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Base automatically changed from feature/2553-add-new-docuement-type to develop May 3, 2024 14:31
Copy link
Collaborator

@sfinx13 sfinx13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lecture et test OK

Copy link
Collaborator

@emilschn emilschn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lecture et test OK

@emilschn emilschn merged commit b0377a2 into develop May 6, 2024
2 checks passed
@sfinx13 sfinx13 deleted the feature/2526-migration-type-document branch May 7, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants