Hyperion icon indicating copy to clipboard operation
Hyperion copied to clipboard

Raid registering issue tracker

Open maximeroucher opened this issue 1 year ago • 2 comments

Since we want to publish as soon as possible, some things can be improved after, here is the list :

  • [x] #556
  • [x] #555
  • [x] #553
  • [ ] 1 - Join team sometimes fail
  • [x] 1 - Security file issue with emergency person
  • [ ] 2 - Don't keep PDF files that won't be linked to a document, if the second call, after the upload fail. We could technically have orphan sensitive documents
  • [ ] 2 - Don't let the module choose path on the file system but use existing utils
  • [ ] 2 - run post_update_action in a separate thread
  • [ ] 3 - Adding missing tests to improve coverage
  • [ ] 3 - Adding delete all team button
  • [ ] 3 - Restricting file size
  • [ ] 3 - Remove the two pdf python dependencies used only for this module
  • [ ] 3 - Run postupgradeactions as a background task
  • [ ] 3 - Maybe remove get_drive_file_manager dependency

maximeroucher avatar Aug 18 '24 13:08 maximeroucher

500 for raid/security_file/?participant_id= when updating security file:

sqlalchemy.exc.IntegrityError: (sqlalchemy.dialects.postgresql.asyncpg.IntegrityError) <class 'asyncpg.exceptions.ForeignKeyViolationError'>: update or delete on table "raid_security_file" violates foreign key constraint "raid_participant_security_file_id_fkey" on table "raid_participant"

armanddidierjean avatar Aug 24 '24 13:08 armanddidierjean

Error while creating pdf Traceback (most recent call last): File "/app/app/modules/raid/utils/utils_[raid.py](http://raid.py/)", line 142, in save_team_info file_path = pdf_writer.write_team(team) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app/modules/raid/utils/pdf/pdf_[writer.py](http://writer.py/)", line 114, in write_team return self.add_pdf() ^^^^^^^^^^^^^^ File "/app/app/modules/raid/utils/pdf/pdf_[writer.py](http://writer.py/)", line 76, in add_pdf writer.write("data/raid/" + self.file_name) File "/usr/local/lib/python3.11/site-packages/pypdf/_[writer.py](http://writer.py/)", line 1274, in write stream = FileIO(stream, "wb") ^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: data/raid/Équipe de xxxx.pdf

armanddidierjean avatar Aug 28 '24 16:08 armanddidierjean