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:
Oliver Günther
2019-06-04 07:36:42 +03:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
@@ -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