diff --git a/README.md b/README.md index ff878c435f..47e903cffc 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ addon | version | maintainers | summary [fs_product_brand_multi_image](fs_product_brand_multi_image/) | 17.0.1.0.0 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Link images to product brands [fs_product_multi_image](fs_product_multi_image/) | 17.0.1.0.0 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Manage multi images from extenal file system on product [fs_product_multi_media](fs_product_multi_media/) | 17.0.1.0.0 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Link media to products and categories -[fs_storage](fs_storage/) | 17.0.1.0.2 | | Implement the concept of Storage with amazon S3, sftp... +[fs_storage](fs_storage/) | 17.0.2.0.0 | | Implement the concept of Storage with amazon S3, sftp... [image_tag](image_tag/) | 17.0.1.0.0 | | Image tag model [//]: # (end addons) diff --git a/fs_storage/README.rst b/fs_storage/README.rst index 445c949f88..e126bdb905 100644 --- a/fs_storage/README.rst +++ b/fs_storage/README.rst @@ -7,7 +7,7 @@ Filesystem Storage Backend !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:6e7abac468ff2942178ac2df68774f75820b618173acf8c7b76f51fbdbe3b7bc + !! source digest: sha256:07c52fc9fe367da79feadc09de58055fb840d44872e33a4970312410c930111a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -108,21 +108,38 @@ When you create a new backend, you must specify the following: - The name of the backend. This is the name that will be used to identify the backend into Odoo + - The code of the backend. This code will identify the backend into the store_fname field of the ir.attachment model. This code must be unique. It will be used as scheme. example of the store_fname field: ``odoofs://abs34Tg11``. + - The protocol used by the backend. The protocol refers to the supported protocols of the fsspec python package. + - A directory path. This is a root directory from which the filesystem will be mounted. This directory must exist. + - The protocol options. These are the options that will be passed to the fsspec python package when creating the filesystem. These options depend on the protocol used and are described in the fsspec documentation. + - Resolve env vars. This options resolves the protocol options values starting with $ from environment variables +- Check Connection Method. If set, Odoo will always check the + connection before using a storage and it will remove the fs + connection from the cache if the check fails. + + - ``Create Marker file``: create a hidden file on remote and then + check it exists with Use it if you have write access to the remote + and if it is not an issue to leave the marker file in the root + directory. + - ``List file``: list all files from the root directory. You can use + it if the directory path does not contain a big list of files (for + performance reasons) + Some protocols defined in the fsspec package are wrappers around other protocols. For example, the SimpleCacheFileSystem protocol is a wrapper around any local filesystem protocol. In such cases, you must specify @@ -212,6 +229,16 @@ Known issues / Roadmap Changelog ========= +17.0.2.0.0 (2024-10-07) +----------------------- + +Features +~~~~~~~~ + +- Invalidate FS filesystem object cache when the connection fails, + forcing a reconnection. + (`#320 `__) + 16.0.1.1.0 (2023-12-22) ----------------------- diff --git a/fs_storage/__manifest__.py b/fs_storage/__manifest__.py index d209fd8ea7..7cd9f13e1e 100644 --- a/fs_storage/__manifest__.py +++ b/fs_storage/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Filesystem Storage Backend", "summary": "Implement the concept of Storage with amazon S3, sftp...", - "version": "17.0.1.0.2", + "version": "17.0.2.0.0", "category": "FS Storage", "website": "https://github.com/OCA/storage", "author": " ACSONE SA/NV, Odoo Community Association (OCA)", diff --git a/fs_storage/readme/HISTORY.md b/fs_storage/readme/HISTORY.md index 432d8e2ead..4b4c6270e9 100644 --- a/fs_storage/readme/HISTORY.md +++ b/fs_storage/readme/HISTORY.md @@ -1,3 +1,10 @@ +## 17.0.2.0.0 (2024-10-07) + +### Features + +- Invalidate FS filesystem object cache when the connection fails, forcing a reconnection. ([#320](https://github.com/OCA/storage/issues/320)) + + ## 16.0.1.1.0 (2023-12-22) **Features** diff --git a/fs_storage/readme/newsfragments/320.feature b/fs_storage/readme/newsfragments/320.feature deleted file mode 100644 index 5644d66085..0000000000 --- a/fs_storage/readme/newsfragments/320.feature +++ /dev/null @@ -1 +0,0 @@ -Invalidate FS filesystem object cache when the connection fails, forcing a reconnection. diff --git a/fs_storage/static/description/index.html b/fs_storage/static/description/index.html index 588354460a..a142addf8f 100644 --- a/fs_storage/static/description/index.html +++ b/fs_storage/static/description/index.html @@ -367,7 +367,7 @@

Filesystem Storage Backend

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:6e7abac468ff2942178ac2df68774f75820b618173acf8c7b76f51fbdbe3b7bc +!! source digest: sha256:07c52fc9fe367da79feadc09de58055fb840d44872e33a4970312410c930111a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: LGPL-3 OCA/storage Translate me on Weblate Try me on Runboat

This addon is a technical addon that allows you to define filesystem @@ -442,16 +442,20 @@

Filesystem Storage Backend

  • Known issues / Roadmap
  • Changelog @@ -478,6 +482,18 @@

    Configuration

    documentation.
  • Resolve env vars. This options resolves the protocol options values starting with $ from environment variables
  • +
  • Check Connection Method. If set, Odoo will always check the +connection before using a storage and it will remove the fs +connection from the cache if the check fails. +
  • Some protocols defined in the fsspec package are wrappers around other protocols. For example, the SimpleCacheFileSystem protocol is a wrapper @@ -564,7 +580,18 @@

    Known issues / Roadmap

    Changelog

    -

    16.0.1.1.0 (2023-12-22)

    +

    17.0.2.0.0 (2024-10-07)

    +
    +

    Features

    +
      +
    • Invalidate FS filesystem object cache when the connection fails, +forcing a reconnection. +(#320)
    • +
    +
    +
    +
    +

    16.0.1.1.0 (2023-12-22)

    Features

    -
    -

    16.0.1.0.3 (2023-10-17)

    +
    +

    16.0.1.0.3 (2023-10-17)

    Bugfixes

    -
    -

    16.0.1.0.2 (2023-10-09)

    +
    +

    16.0.1.0.2 (2023-10-09)

    Bugfixes

    • Avoid config error when using the webdav protocol. The auth option is @@ -595,7 +622,7 @@

      16.0.1.0.2 (2023-10-09)

    -

    Bug Tracker

    +

    Bug Tracker

    Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -603,22 +630,22 @@

    Bug Tracker

    Do not contact contributors directly about support or help with technical issues.

    -

    Credits

    +

    Credits

    -

    Authors

    +

    Authors

    • ACSONE SA/NV
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association