Skip to content

Conversation

@GrabowskiM
Copy link
Contributor

🎫 Issue IBX-10168

Related PRs:

Description:

There's bigger issue in resolving config, also in other bundles, so someone from backend will need to look into it. Without this check site access resolver was always returning empty array therefore it didn't resolved default one. @Steveb-p looked into it, so he'll be able to tell more.

For QA:

Documentation:

@GrabowskiM GrabowskiM requested review from a team and dew326 July 2, 2025 11:55
@ezrobot ezrobot requested review from Steveb-p, ViniTou, adamwojs, alongosz, barw4, ciastektk, konradoboza, mikadamczyk, tbialcz and wiewiurdp and removed request for a team July 2, 2025 11:55
Copy link
Contributor

@Steveb-p Steveb-p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically what happens is that configuration parser does not care if configuration value is null, empty array ([]), or is actually filled up with some data.

Since parameter defaulted to empty array, it was not possible to go through SiteAccessConfigResolver (site access specific) and defaults were never loaded.

That said, we might need to revisit this, because usually when looking for icon we are looking for a specific one. And if site access does not define a copy, it will not go and try to resolve icon from defaults.

@alongosz alongosz changed the title IBX-10168: Missing icons IBX-10168: Fixed missing assets icons Jul 3, 2025
@@ -1,5 +1,5 @@
system:
admin_group:
default:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please explain reasoning behind this change ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this particular case there were missing icons in customer portal, which isn't one of admin_group, therefore icon mapping was missing there.

There will be same problem with each site access that isn't part of admin_group that was using our icons through icon helper, so default will catch all of them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per description of the issue in the linked ticket:

Missing icon for:

Embed block in PB
Several blocks in Dashboard builder (see screenshot)
Spilt/Unified option in version compare
Customer portal - Members list
Customer portal - Address book - Add
Customer portal -My profile - Edit - AI icon
Customer portal - Invite members modal

This means that there are several site accesses that are missing icon sets. Making those sets part of the default, paired with change that empty icon sets are not considered "valid" for the purposes of establishing a site-access parameter, alleviates the immediate issue.

I would like to open this discussion further into how we could deal with - basically - merging of different configuration levels, which is currently impossible. Site access level of icon sets overwrites site group access settings, which overwrite defaults (don't gonna even mention global...).

But that is a different story and broader in scope than resolving this issue.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 8, 2025

@adamwojs
Copy link
Member

adamwojs commented Jul 8, 2025

It works!

image
image

@adamwojs adamwojs merged commit 1f1afdc into main Jul 8, 2025
22 checks passed
@adamwojs adamwojs deleted the IBX-10168 branch July 8, 2025 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants