iachat/app/policies
Shivam Mishra 00ee0478eb
feat: IndexedDB based caching for labels, inboxes and teams [CW-50] (#6710)
* feat: allow caching of labels in the account scope

* feat: send cache keys in account json response

* feat: kickstart web worker

* feat: setup basic architecture for workers

* feat: install idb

* feat: add datamanger

* fix: typos

* refactor: rename method

* feat: make init db a manual step

* refactor: separate accountIdFromRoute

* feat: cache enabled API client

* feat: enable caching for inboxes and labels

* feat: enable cache for team

* feat: manage exceptions for team

* feat: add team to data manager

* feat: add a generic listener

* refactor: send only cache keys

* refactor: separate validate method

* feat: add listeners

* feat: add event for revalidate

* feat: add cache keys endpoint

* refactor: fetch cache keys instead of full account data

* fix: key pattern

* feat: don't fetch account for cache_keys

* fix: cache key base class

* refactor: cache keys helper

* feat: add helper

* fix: cache-key update logic

* feat: delete indexeddb on logout

* feat: remove worker.js

* refactor: move data-manager

* refactor: name of file

* feat: add test for DataManager

* refactor: add fake idb to jest setup

* test: cache keys helper

* test: cache keys helper

* test: cache_keys in accounts controller

* refactor: remove cache_keys context

* feat: add policy for cache-keys
2023-03-27 12:16:25 +05:30
..
account_policy.rb feat: IndexedDB based caching for labels, inboxes and teams [CW-50] (#6710) 2023-03-27 12:16:25 +05:30
agent_bot_policy.rb feat: Add AgentBot APIs (#2323) 2021-06-01 22:34:25 +05:30
application_policy.rb chore: Update dependencies (#1173) 2020-09-08 11:24:08 +05:30
article_policy.rb Added one more endpoint to attach tempfile and get logo (#6407) 2023-02-09 14:05:45 +05:30
automation_rule_policy.rb fix: Add Attachment endpoint to save file against automation rule (#4480) 2022-04-24 12:02:40 +05:30
campaign_policy.rb feat: Add APIs for Campaigns (#2175) 2021-04-29 22:23:32 +05:30
category_policy.rb feat: CRUD operation for associated articles to current article (#4912) 2022-07-04 20:29:44 +05:30
contact_policy.rb feat: Update API for contact avatar (#4719) 2022-07-12 10:03:16 +02:00
conversation_policy.rb chore: Ensure privilege validations for API endpoints (#2224) 2021-06-11 11:44:31 +05:30
csat_survey_response_policy.rb chore: Add an option to download CSAT Reports (#4694) 2022-05-17 21:01:45 +05:30
hook_policy.rb feat: APIs for Integration Hooks (#2250) 2021-05-17 10:32:59 +05:30
inbox_policy.rb feat: Ability to remove inbox avatar (#2885) 2021-08-31 15:12:05 +05:30
label_policy.rb Feature: Improve label experience (#975) 2020-06-25 21:04:03 +05:30
macro_policy.rb fix: Macros authorizations (#5779) 2022-11-07 17:46:00 -08:00
portal_policy.rb Added one more endpoint to attach tempfile and get logo (#6407) 2023-02-09 14:05:45 +05:30
team_member_policy.rb chore: Update method for team members (#1734) 2021-02-09 19:21:31 +05:30
team_policy.rb feat: Team APIs (#1654) 2021-01-17 23:56:56 +05:30
user_policy.rb Feature: Ability to switch between multiple accounts (#881) 2020-05-26 22:38:48 +05:30
webhook_policy.rb Feature: Ability to switch between multiple accounts (#881) 2020-05-26 22:38:48 +05:30