yeg-relief / youcanbenefit

YouCanBenefit is a web application that increases social benefit program discoverability for people of lesser means and their allies.
https://youcanbenefit.edmonton.ca
MIT License
13 stars 9 forks source link

Fix program caching #88

Closed CodyGramlich closed 5 years ago

CodyGramlich commented 5 years ago

Fixes #81. Fixes #80.

Programs are cached the first time ProgramModelService getPrograms() is called. Currently the cache is only updated when the details of a program are edited. If a program is deleted or queries are edited, the user must refresh the page to see that the changes have taken effect. I added code to update the program cache when

This also fixes the problem of potentially creating a program where the program queries and program details have a different guid as discussed in #81.

Now when you delete a program from the program overview, the program list UI will be updated immediately.

I also have the fix for the program deletion while in program-edit here (#80).