Commit Graph
359 Commits
Author SHA1 Message Date
Miku Laitinen a383b45f57 [IMP] session_redis: allow configuring Redis URL instead of host & port. 2020-05-14 18:16:55 +03:00
Guewen BaconnierandGitHub 0769d3b47e Merge pull request #181 from guewen/13.0-fix-server-env
[13.0] Fix build after changes in server_environment
2020-05-11 09:39:53 +02:00
Guewen Baconnier 9bdd4b6b1d Fix build after changes in server_environment
Now the default env is "test", and we don't need the directory
at all.
See https://github.com/OCA/server-env/pull/44
2020-05-11 08:27:16 +02:00
Guewen Baconnier ac89e923d7 Add (de-)serialization of set objects in sessions 2020-05-11 07:35:05 +02:00
Guewen Baconnier 35fb727d6c Encode/decode date and datetime in redis sessions
In several places, odoo sets a datetime object directly in the
session. It works with the default session handler of odoo which
uses pickle.

But datetime and date are not json serializable by default.

Add custom encoder / decoder to handle them (from
https://github.com/OCA/queue/blob/dc12a6a20ecfd15c5b90f9b089c9a64cf9d8bbe4/queue_job/fields.py#L57-L99)

See the discussion raised by @PCatinean on https://github.com/camptocamp/odoo-cloud-platform/pull/176
2020-05-04 16:09:55 +02:00
Akim JuilleratandGitHub 323158763b Merge pull request #166 from grindtildeath/13.0-fix_auth_to_keystone_v3
[13.0] attachment_swift: Fix authentication to Keystone v3
2020-03-09 13:33:09 +01:00
Akim Juillerat 7bd76d3cd0 Fix authentication to Keystone v3
- Use newer version from python lib.
 - Define project_domain_id + user_domain_id in auth
2020-03-09 13:01:43 +01:00
Akim JuilleratandGitHub 3470cd4667 Merge pull request #147 from grindtildeath/13.0_dev_attachments
[13.0]Require AWS_BUCKETNAME for prod, integration and labs environments only
2020-03-05 10:13:34 +01:00
Akim Juillerat a372cabeb6 Require AWS_BUCKETNAME for prod, integration and labs environments only
AWS_BUCKETNAME is only needed in order to write on the bucket, but
read-only access should be allowed for other environments.

Fixes bug introduced by 6c3b610610
2020-03-05 09:56:09 +01:00
Akim JuilleratandGitHub 99bf5ffef1 Merge pull request #151 from yvaucher/13.0-aws-bucketname-unstructured
[13.0] Add AWS_BUCKETNAME_UNSTRUCTURED to by-pass check
2020-03-05 09:53:36 +01:00
Patrick TombezandGitHub c4691d05a0 Merge pull request #142 from smussie/BSCLOUDFR-6
[13.0] Use keystoneauth v3 for Swift attachments
2020-03-04 10:23:00 +01:00
Mussie SirakandPatrick Tombez 426d7cbe87 Use keystoneauth v3 for Swift attachments 2020-03-04 10:17:02 +01:00
Yannick Vaucher feb737cb25 Swift same by-pass structured store location 2020-02-25 16:28:35 +01:00
Yannick Vaucher 6f66af94ab Add AWS_BUCKETNAME_UNSTRUCTURED to by-pass check
Curently the name of the bucket is cross checked with the
running environment. In rare case you can have a bucket name
that doesn't match the structure <project>-odoo-<env> in place.
2020-02-25 16:28:35 +01:00
Simone OrsiandGitHub 8a1a78fe8e Merge pull request #136 from camptocamp/fixes
cloud_platform: fix default config
2020-02-04 13:39:11 +01:00
Simone Orsi ec6f8ee541 cloud_platform: fix default config
`_config_by_server_env` should always retutn a `PlatformConfig` instance
2020-02-04 11:42:35 +01:00
Patrick TombezandGitHub 7d3b359e3f Merge pull request #129 from p-tombez/13.0-anon_redis_session
Add anonymous redis session expiration configuration
2020-01-29 16:27:48 +01:00
Patrick Tombez 5fcef3926f Add anonymous redis session expiration configuration 2020-01-27 15:56:22 +01:00
Guewen BaconnierandGitHub 20c0138588 Merge pull request #126 from sbidoul/patch-1
[FIX] logging_json: PyPI package as python external dep
2020-01-14 16:17:51 +01:00
Stéphane Bidoul (ACSONE)andGitHub 24675ae14c [FIX] logging_json: PyPI package as python external dep 2019-12-21 15:03:35 +01:00
Vincent RenavilleandGitHub 7276de9cf0 Merge pull request #123 from vrenaville/fix_attachment_result
[13.0] Add method to force storage of special attachments to DB
2019-12-20 13:54:46 +01:00
Guewen Baconnierandvrenaville 3d25e59f0f Add method to force storage of special attachments to DB
Some attachments (e.g. image_small, image_medium) are stored in DB
instead of the object storage for faster access.

In some situations, we may have pushed all these files on the Object
Storage (migration from a filesystem to object storage) and want to
bring back these attachments from the object storage to the database.

This method is not called anywhere but can be called by RPC or scripts.
2019-12-20 13:23:48 +01:00
Yannick VaucherandGitHub b083eaf63b Merge pull request #118 from leemannd/description_added
[13.0] Add description to model
2019-12-10 10:59:09 +01:00
Denis Leemann 07f7b3b19f Add description to model
This removes the useless warning at startup
2019-12-09 15:06:55 +01:00
Vincent RenavilleandGitHub d6b0c59488 Merge pull request #115 from vrenaville/imp_db_storage
[IMP] route file to db base on size and mimetype
2019-12-05 13:54:17 +01:00
vrenaville 29e6271a70 [IMP] route file to db base on size and mimetype 2019-12-05 09:34:23 +01:00
Vincent RenavilleandGitHub 3726b264ba Merge pull request #93 from Tonow-c2c/BSRD-286_MIG-13.0_cloud_platform_ovh
BSRD-286: MIG V13 cloud_platform_ovh
2019-12-03 14:02:02 +01:00
Vincent RenavilleandGitHub 8f023ce2f0 Merge pull request #86 from Tonow-c2c/BSRD-286_MIG-13.0_base_fileurl_field
BSRD-286: MIG V13 base_fileurl_field
2019-12-03 14:01:34 +01:00
Tonow-c2candGitHub 3a0492182f Merge pull request #85 from Tonow-c2c/BSRD-286_MIG-13.0_attachment_swift
Bsrd 286 mig 13.0 attachment swift
2019-12-03 11:47:12 +01:00
Tonow-c2c 7d0889750f BSRD-286: MIG V13 cloud_platform_ovh 2019-12-03 11:45:36 +01:00
Tonow-c2c 65cdd3dd64 BSRD-286: MIG V13 base_fileurl_field 2019-12-03 11:44:23 +01:00
Tonow-c2c be6a79fa87 BSRD-286: MIG V13 attachement_swift 2019-12-03 10:51:59 +01:00
Guewen BaconnierandGitHub 3cb8ce8b8b Merge pull request #113 from guewen/13.0-add-support-running-env-labs
[13.0] Add support of 'labs' RUNNING_ENV in cloud_platform
2019-11-29 15:52:23 +01:00
Guewen Baconnier d9307f44cb Add an advice in error message 2019-11-18 16:25:34 +01:00
Guewen Baconnier a482f186ce Add support of 'labs' RUNNING_ENV in cloud_platform
The labs env can be anything starting by 'labs', such as
'labs-logistics', 'labs-finance', ...

* At install, s3/swift is set as default storage
* However, unlike prod/integration, the storage is not forced to be an
object storage
* Redis is required
* When the storage is set on s3/swift, then the bucket name is mandatory
(otherwise, there is no place where to create the files...)

The redis prefix regex match is relaxed: anything starting by a project
name, then '-odoo-', then any combination of letters, digits, and dashes
is accepted (so a prefix my-project9-odoo-labs-web3 is valid).
2019-11-18 16:25:34 +01:00
Guewen BaconnierandGitHub 7684760065 Merge pull request #106 from camptocamp/revert-101-13.0-monitoring_check_db_connection
Revert "[13.0] [IMP] monitoring_status: check the db is reachable"
2019-11-18 14:45:09 +01:00
Guewen Baconnier bb0d50418e Use python3.6 2019-11-18 13:59:58 +01:00
Tonow-c2candGitHub 47f80319f9 Merge pull request #90 from Tonow-c2c/BSRD-286_MIG-13.0_monitoring_statsd
BSRD-286: MIG V13 monitoring_statsd
2019-11-08 14:33:26 +01:00
Tonow-c2candGitHub c9c25df645 Merge pull request #92 from Tonow-c2c/BSRD-286_MIG-13.0_session_redis
BSRD-286: MIG V13 session_redis
2019-11-08 08:20:00 +01:00
Tonow-c2candGitHub e079271cbc Merge pull request #91 from Tonow-c2c/BSRD-286_MIG-13.0_monitoring_status
BSRD-286: MIG V13 monitoring_status
2019-11-08 08:19:49 +01:00
Tonow-c2candGitHub 2d634eb77e Merge pull request #94 from Tonow-c2c/BSRD-286_MIG-13.0_monitoring_log_requests
BSRD-286: MIG V13 monitoring_log_requests
2019-11-08 08:19:19 +01:00
Tonow-c2candGitHub c8bd7c1440 Merge pull request #89 from Tonow-c2c/BSRD-286_MIG-13.0_logging_json
Bsrd 286 mig 13.0 logging json
2019-11-08 08:18:55 +01:00
Guewen BaconnierandGitHub e5cd6a8f87 Revert "[13.0] [IMP] monitoring_status: check the db is reachable" 2019-10-29 17:32:39 +01:00
Tonow-c2candGitHub 622d56b8cf Merge pull request #88 from Tonow-c2c/BSRD-286_MIG-13.0_cloud_platform_exoscale
BSRD-286: MIG V13 cloud_platform_exoscale
2019-10-28 16:41:01 +01:00
Tonow-c2candGitHub 6b90dcaf92 Merge pull request #87 from Tonow-c2c/BSRD-286_MIG-13.0_cloud_platform
BSRD-286: MIG V13 cloud_platform
2019-10-28 16:40:38 +01:00
Tonow-c2candGitHub 6b8b2da4a3 Merge pull request #83 from grindtildeath/13.0-mig-base_attachment_object_storage
[MIG] base_attachment_object_storage: Migration to 13.0
2019-10-28 16:40:17 +01:00
Tonow-c2candGitHub 41c3bae719 Merge pull request #82 from Tonow-c2c/BSRD-286_MIG-13.0_attachment_s3
Bsrd 286 mig 13.0 attachment s3
2019-10-28 16:39:53 +01:00
Simone OrsiandGitHub 2c6b11763e Merge pull request #101 from gurneyalex/13.0-monitoring_check_db_connection
[13.0] [IMP] monitoring_status: check the db is reachable
2019-10-28 08:13:38 +01:00
Alexandre Fayolle 7a4f43d1fa [IMP] monitoring_status: check the db is reachable
make a real SQL query on GET /monitoring/status and return a 503
if the query failed.
2019-10-25 16:25:54 +02:00
Tonow-c2c 702b8c2039 BSRD-286: MIG V13 monitoring_statsd 2019-10-08 18:18:58 +02:00