This is the manifest.yml
of a dummy test app:
modules:
confluence:contentBylineItem:
- key: test-hello-world-content-byline-item
resource: main
resolver:
function: resolver
viewportSize: medium
title: test
dynamicProperties:
function: a
function:
- key: resolver
handler: index.handler
- key: a
handler: index.a
resources:
- key: main
path: static/hello-world/build
app:
id: ari:cloud:ecosystem::app/...
The index.a
handler is just a dummy method returning an empty object. No icons are defined, the test code doesn’t even contain the word ‘icon’. Running forge lint
shows the following warning:
0:0 warning When using dynamic content properties along with icons, make sure to add the icon URL into the external images permissions of your app manifest. Otherwise, the icon will not be rendered. egress-permission-required
To make things worse, this warning is shown for each file in the src
directory of the app. The warning is gone if I remove the dynamicProperties
definition.
If this warning is really just that, i.e. a general warning about limiting the usage of external images, then this should not be displayed for each build, and certainly not for each file. Either log it to the browser console when an external image is actually blocked, or do not display it at all. Especially that the documentation already warns about this issue: https://developer.atlassian.com/platform/forge/manifest-reference/modules/confluence-content-byline-item/