Problem
Today I noticed that any new collections I create do not seem to be showing in the Resource Picker in App Bridge. Old collections I created a while ago are still showing, but any new ones do not seem to show.
For example, here is a screenshot of some collections in Shopify admin. The highlighted ones are some that I just created:
Also, I created these new collections and I’ve waited a couple of hours to see if there was just a delay in collections syncing across, but this hasn’t resolved the issue.
It seems like new collections are getting hidden for some reason. They show up when I set the filter option hidden as false in the resource picker following this docs
I’m not exactly sure why these would be appearing as hidden, but if you follow the approach that @Estiak shared above, are the new collections appearing?
At the moment, any new collections that merchants create are not displaying in the collection picker, which means that merchants are not able to select newly created collections.
Any advice or assistance would be very much appreciated
Thank you all very much for your help and support with this. We realised that the Resource Picker, with type: 'collection' does not seem to re-fetch the collection list each time it’s loaded.
So even though we were adding new collections the Resource Picker was just opening each time and showing a cached list.
By implementing @Rex solution of adding the query: timestamp:${Date.now()}, to the filter, it forces the Resource Picker to fetch the latest collection list on each load.
I don’t think this is a solution @Liam-Shopify. New collections should show up in the resource picker the next time the picker is opened, you shouldn’t need to break the cache through creating a timestamped query.
Thanks so much @bkspace - I agree, the query: timestamp:${Date.now()}, is a hacky workaround and I do think that new collections should just show without having to break the cache.