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

bugs #13494 fix(pastis): create PA #2116

Merged
merged 1 commit into from
Oct 7, 2024
Merged

bugs #13494 fix(pastis): create PA #2116

merged 1 commit into from
Oct 7, 2024

Conversation

Regzox
Copy link
Contributor

@Regzox Regzox commented Oct 4, 2024

Description

  • Corrige le problème de création des PA

Problème lié à la modification du DTO de création d'une notice de PA. Il n'est plus permis d'ajouter les informations calculées par Vitam (tenant, ...Date).

Par contre ça ne règle pas:

  • le problème de remontée d'erreur entre référential internal et external de Vitam UI.
  • le problème de gestion du spinner si jamais la sauvegarde du PA échoue.
savePA() {
  if (!this.editProfile) {
    this.profileService.createProfilePa(this.profile).subscribe((createdProfile) => {
      if (createdProfile) {
        // STEP 2 : ASSIGNER LE PROFIL A LA NOTICE
        this.profileService
          .uploadFile(this.data, this.profileDescription, ProfileType.PA, createdProfile.sedaVersion)
          .subscribe((retrievedData) => {
            const myFile = this.blobToFile(retrievedData, 'file');
            this.profileService.updateProfileFilePa(createdProfile, myFile).subscribe(() => {
              this.toggleService.hidePending();
              this.success('La création du profil a bien été effectué');
            });
          });
      }
    });
  }

@Regzox Regzox added bug Something isn't working java Pull requests that update Java code small pr embarquant peu de changements et à review rapide, ne nécessitant qu'un reviewer VAS VAS contribution labels Oct 4, 2024
@Regzox Regzox added this to the IT 142 milestone Oct 4, 2024
@Regzox Regzox self-assigned this Oct 4, 2024
@Regzox Regzox merged commit df424d9 into develop Oct 7, 2024
13 of 14 checks passed
@Regzox Regzox deleted the bugs_13494 branch October 7, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working java Pull requests that update Java code small pr embarquant peu de changements et à review rapide, ne nécessitant qu'un reviewer VAS VAS contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants