mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
DEV: Remove defunct TODOs (#19825)
* Firefox now finally returns PerformanceMeasure from performance.measure * Some TODOs were really more NOTE or FIXME material or no longer relevant * retain_hours is not needed in ExternalUploadsManager, it doesn't seem like anywhere in the UI sends this as a param for uploads * https://github.com/discourse/discourse/pull/18413 was merged so we can remove JS test workaround for settings
This commit is contained in:
@ -57,9 +57,6 @@ class UploadCreator
|
||||
true
|
||||
end
|
||||
)
|
||||
|
||||
# TODO (martin) Validate @opts[:type] to make sure only blessed types are passed
|
||||
# in, since the clientside can pass any type it wants.
|
||||
end
|
||||
|
||||
def create_for(user_id)
|
||||
@ -78,13 +75,13 @@ class UploadCreator
|
||||
is_image ||= @image_info && FileHelper.is_supported_image?("test.#{@image_info.type}")
|
||||
is_image = false if @opts[:for_theme]
|
||||
|
||||
# if this is present then it means we are creating an upload record from
|
||||
# If this is present then it means we are creating an upload record from
|
||||
# an external_upload_stub and the file is > ExternalUploadManager::DOWNLOAD_LIMIT,
|
||||
# so we have not downloaded it to a tempfile. no modifications can be made to the
|
||||
# file in this case because it does not exist; we simply move it to its new location
|
||||
# in S3
|
||||
#
|
||||
# TODO (martin) I've added a bunch of external_upload_too_big checks littered
|
||||
# FIXME: I've added a bunch of external_upload_too_big checks littered
|
||||
# throughout the UploadCreator code. It would be better to have two seperate
|
||||
# classes with shared methods, rather than doing all these checks all over the
|
||||
# place. Needs a refactor.
|
||||
|
Reference in New Issue
Block a user