Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
transform_api
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
transform_api
Commits
c73bf709
Commit
c73bf709
authored
Jul 18, 2024
by
Martin Giessing
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3458752
by erik_petra: Empty region transform results in error
parent
3000b07b
Branches
Branches containing commit
Tags
1.1.0-beta5
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Entity/TransformBlock.php
+9
-0
9 additions, 0 deletions
src/Entity/TransformBlock.php
src/Plugin/Transform/Type/RequestPath.php
+1
-1
1 addition, 1 deletion
src/Plugin/Transform/Type/RequestPath.php
with
10 additions
and
1 deletion
src/Entity/TransformBlock.php
+
9
−
0
View file @
c73bf709
...
...
@@ -231,6 +231,15 @@ class TransformBlock extends ConfigEntityBase implements TransformBlockInterface
}
}
/**
* {@inheritdoc}
*/
public
function
getCacheTagsToInvalidate
()
{
$tags
=
parent
::
getCacheTagsToInvalidate
();
$tags
[]
=
'config:transform_api.regions'
;
return
$tags
;
}
/**
* {@inheritdoc}
*/
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Transform/Type/RequestPath.php
+
1
−
1
View file @
c73bf709
...
...
@@ -90,7 +90,7 @@ class RequestPath extends TransformationTypeBase {
foreach
(
$this
->
transformBlocks
->
getVisibleBlocksPerRegion
(
$cacheable_metadata_list
)[
$region
]
as
$block
)
{
$transformation
[
$block
->
id
()]
=
BlockTransform
::
createFromBlock
(
$block
);
}
$cacheMetadata
=
$cacheMetadata
->
merge
(
$cacheable_metadata_list
[
$region
]);
$cacheMetadata
=
$cacheMetadata
->
merge
(
$cacheable_metadata_list
[
$region
]
??
new
CacheableMetadata
()
);
}
$cacheMetadata
->
applyTo
(
$transformation
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment