mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Merge pull request #7355 from opf/feature/disable_wp_schema_caching
disable wp schema caching until it is turned save for it again [ci skip]
This commit is contained in:
@@ -35,7 +35,11 @@ module API
|
||||
module WorkPackages
|
||||
module Schema
|
||||
class WorkPackageSchemaRepresenter < ::API::Decorators::SchemaRepresenter
|
||||
include API::Caching::CachedRepresenter
|
||||
# TODO: reenable caching after having ensured that the cache is
|
||||
# user or at least roles in project specific.
|
||||
# Otherwise, the writable information will not be correct and information
|
||||
# cached e.g. in an embedded query (project name) is leaked to the user.
|
||||
# include API::Caching::CachedRepresenter
|
||||
extend ::API::V3::Utilities::CustomFieldInjector::RepresenterClass
|
||||
|
||||
custom_field_injector type: :schema_representer
|
||||
|
||||
@@ -145,7 +145,7 @@ describe API::V3::WorkPackages::Schema::WorkPackageSchemasAPI, type: :request do
|
||||
expect(last_response.headers['ETag']).to match(/W\/\"\w+\"/)
|
||||
end
|
||||
|
||||
it 'caches the response' do
|
||||
it 'caches the response', skip: true do
|
||||
schema_class = API::V3::WorkPackages::Schema::TypedWorkPackageSchema
|
||||
representer_class = API::V3::WorkPackages::Schema::WorkPackageSchemaRepresenter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user