tjcsl / ion

TJ Intranet 3
https://ion.tjhsst.edu
GNU General Public License v2.0
101 stars 87 forks source link

CSL Apps Toolbar links slow #1663

Open alanzhu0 opened 2 months ago

alanzhu0 commented 2 months ago

Opening CSL apps from the "Apps" toolbar in the top right is slow when the app is associated with an OAuth application and the user is accessing the app for the first time in 24 hours - Ion needs to update the latest access token.

Look into ways to optimize this behavior and reduce load time - currently it can be over 10 seconds. I think it is probably the below SQL query: https://github.com/tjcsl/ion/blob/dev/intranet/apps/cslapps/views.py#L29

devsrivv commented 1 month ago

Whenever you get the chance can you assign this issue to me? Thanks

NotFish232 commented 1 month ago

Done!