Fix #1: Source size not shown on uploading extension #8

Merged
Dalai Felinto merged 1 commits from dfelinto/extensions-website:fix-source-size into main 2024-01-09 11:09:40 +01:00

The error was:

  • Missing f, before f''.
  • Not dividing the size to MBs before showing.

The fix went a bit further and is accepting uploaded files up to <11MB.

That makes the error message simpler to understand. Otherwise a file
which was 10.0001MB would trigger the error, yet we wouldn't want to
expose this level of detail to users. So now the error will only show up
when the file is at least 11MB, and we can stick to showing integers.

The error was: * Missing f, before f''. * Not dividing the size to MBs before showing. The fix went a bit further and is accepting uploaded files up to <11MB. That makes the error message simpler to understand. Otherwise a file which was 10.0001MB would trigger the error, yet we wouldn't want to expose this level of detail to users. So now the error will only show up when the file is at least 11MB, and we can stick to showing integers.
Dalai Felinto requested review from Francesco Siddi 2024-01-08 16:51:45 +01:00
Francesco Siddi approved these changes 2024-01-09 10:41:21 +01:00
Dalai Felinto force-pushed fix-source-size from bf125edcdd to 885aae59f2 2024-01-09 11:06:30 +01:00 Compare
Dalai Felinto force-pushed fix-source-size from 885aae59f2 to 5cc0f19ffa 2024-01-09 11:09:20 +01:00 Compare
Dalai Felinto merged commit 9f8334e8f1 into main 2024-01-09 11:09:40 +01:00
Dalai Felinto deleted branch fix-source-size 2024-01-09 11:09:41 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/extensions-website#8
No description provided.