Sysmo DB
  1. Sysmo DB
  2. SYSMO-1455

add a upgrade task to clear avatars, model_images, image_assets under filestore/tmp

    Details

    • Type: Task Task
    • Status: Resolved Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20
    • Labels:
      None

      Activity

      Hide
      Stuart Owen added a comment -

      It needs to be a general rake task, that gets called from the upgrade tasks. I could even be built into rake tmp:clear
      the whole filestore/tmp directory should be cleared - no need to select particular folders

      Show
      Stuart Owen added a comment - It needs to be a general rake task, that gets called from the upgrade tasks. I could even be built into rake tmp:clear the whole filestore/tmp directory should be cleared - no need to select particular folders
      Hide
      Quyen Nguyen added a comment -

      Im just afraid of some speed problems, e.g. if we delete the converted pdf folder, the file needs to be converted again when viewing the content

      Show
      Quyen Nguyen added a comment - Im just afraid of some speed problems, e.g. if we delete the converted pdf folder, the file needs to be converted again when viewing the content
      Hide
      Stuart Owen added a comment -

      This is generally what we want, because these are cached files and we would like them to be re-generated to reflect changes either in our code or in the libraries used (such as soffice).
      If you prefer, rather than building into tmp:clear, they could be separate rake tasks that are added to our set of upgrade tasks when and if we think they are required.

      No need to worry too much about the cached pdf conversions, these get regenerated immediately after an upgrade anyway as they are reindexed.

      Show
      Stuart Owen added a comment - This is generally what we want, because these are cached files and we would like them to be re-generated to reflect changes either in our code or in the libraries used (such as soffice). If you prefer, rather than building into tmp:clear, they could be separate rake tasks that are added to our set of upgrade tasks when and if we think they are required. No need to worry too much about the cached pdf conversions, these get regenerated immediately after an upgrade anyway as they are reindexed.
      Hide
      Stuart Owen added a comment -

      I think currently, looking at https://testing.sysmo-db.org/models/17, it will delete the filestore/tmp relative to where you run the rake task. I needs to be relative to Rails.root, and the tmp path is configurable and may change.

      It should use Seek::Config.temporary_filestore_path to detemine the path to delete

      Show
      Stuart Owen added a comment - I think currently, looking at https://testing.sysmo-db.org/models/17 , it will delete the filestore/tmp relative to where you run the rake task. I needs to be relative to Rails.root, and the tmp path is configurable and may change. It should use Seek::Config.temporary_filestore_path to detemine the path to delete

        People

        • Assignee:
          Quyen Nguyen
          Reporter:
          Quyen Nguyen
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: