ballerina-platform / ballerina-central

Ballerina Central Website
Apache License 2.0
106 stars 1 forks source link

Package deprecate labe is appearing randomly when reloading the page #128

Closed anupama-pathirage closed 7 months ago

anupama-pathirage commented 9 months ago

Description:

I have a math package with three versions. I did some deprecate/deprecate steps. Finally, I undepreate all the versions. But still, when I reloaded the page from time to time, a deprecated label appeared on some versions.

Also there is a null word appearing when hovering over the deprecate label.

https://github.com/ballerina-platform/ballerina-central/assets/16300038/804384b6-c74b-4431-b710-24537c734aad

anuruddhal commented 9 months ago

The inconsistency in deprecate label is due to page caching. We currently don't have a way to invalidate the cache. The page will be cached for 30 mins. We will fix the null description.

anupama-pathirage commented 8 months ago

Why there is no way to fix it? Btw it is not a correct user experience. IMO, we need to fix it in some way as deprecating a package is a critical action in the package lifecycle, and having inconsistent behavior is making the user super confused.

anuruddhal commented 8 months ago

@sm1990 Shall we make the deprecate check render from the client side?