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

correctif(tech.export): il arrive que des exports soient mal identifié (le content-type), ce qui par la suite renvoie des exports vide (0kb) #9582

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

mfo
Copy link
Contributor

@mfo mfo commented Oct 10, 2023

c'est un peu le bazard ces api active storage. apres avoir creusé la codebase de rails, l'impression que :

aussi, l'attribute pour verifier si il faut inferer le content_type (donc via le identifiable) est stocké sur le metadata nommé identified : https://github.com/rails/rails/blob/main/activestorage/app/models/active_storage/blob.rb#L29

mon impression est que la difference entre

  • create_and_upload utilisant identify, c'est un paramêtre "transiant" qui vient a etre repliqué sur le metadata en fin de cycle.
  • create_before_direct_upload utilise le metadata[:identified] car le cycle de vie de l'upload est different

Martin added 2 commits October 10, 2023 10:39
…is a 0 [mauvais identification due au type de contenu]
…identifie [content_type] est identified, pas identify
@mfo mfo force-pushed the US/fix-export-job branch from 45648bc to f4430ce Compare October 10, 2023 08:40
@mfo mfo changed the title Us/fix export job correctif(tech.export): il arrive que des exports soient mal identifié (le content-type), ce qui par la suite renvoie des exports vide (0kb) Oct 10, 2023
@mfo mfo added this pull request to the merge queue Oct 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 10, 2023
@mfo mfo added this pull request to the merge queue Oct 10, 2023
Merged via the queue into main with commit ade95f5 Oct 10, 2023
15 checks passed
@mfo mfo deleted the US/fix-export-job branch October 10, 2023 12:35
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.

2 participants