Files
sure/app/models/provider
MkDev11 eeff4edbea Add warning for TwelveData plan-restricted tickers (#803)
* Add warning for TwelveData plan-restricted tickers

Fixes #800

- Add Security::PlanRestrictionTracker concern using Rails cache
- Detect plan upgrade errors during Security::Price::Importer sync
- Display amber warning on /settings/hosting with affected tickers
- Include unit tests for the new functionality

* Scope plan restriction cache by provider

Addresses review feedback:
- Cache key now includes provider name to support multiple data providers
- Methods now require provider parameter for proper scoping
- Added tests for provider-scoped restrictions
- Added documentation explaining instance-level API key architecture

* Fix RuboCop array bracket spacing

* Fix empty array bracket spacing

* Move plan upgrade detection to Provider::TwelveData

* Fix provider scoping tests to use direct cache writes

---------

Co-authored-by: mkdev11 <jaysmth689+github@users.noreply.github.com>
2026-01-27 15:45:50 +01:00
..
2026-01-11 10:32:03 +01:00
2025-11-24 19:52:34 +01:00
2025-11-25 20:21:29 +01:00
2025-11-24 19:52:34 +01:00
2026-01-22 20:37:07 +01:00
2026-01-22 20:37:07 +01:00
2025-12-20 20:24:32 +00:00
2025-11-25 20:21:29 +01:00
2025-11-25 20:21:29 +01:00
2025-11-12 16:01:19 +01:00
2025-10-28 19:32:27 +01:00