Commit Graph

4 Commits

Author SHA1 Message Date
Artur Pata f169f0caff
Establish saved segments API (#4899)
* Implement segments endpoint controllers

* Refactor endpoint controllers to be based on capabilities

* Add saved_segments feature flag check

* Fix issue when querying all segments on Growth plans

* Validate segment

* Refactor naming to permissions

* Add some permission based tests

* Give more info to compiler about expected args shape

* Implement centralized permission checking module

* Refactor to conventional rights validation

* Update tests

* Add name and segment_data length and filter depth validation

* Refactor route names and add tests for FF check plug

* Refactor mixed segments query name

* Remove inconsistent strict not equals

* Use a different format for result is Map case

* Remove newline between spec and def

* Fix issue with too deep nesting

* Verify in tests that segment is actually removed/not removed from DB

* Fix typo in fn name
2025-01-14 10:12:36 +00:00
Adam Rutkowski bf2b6880c5
Block Stats API for locked sites (#2302)
* Extract Sites.locked? predicate

* Lock Stats API when dashboard is locked

* Tidy tests

* Don't pollute application env from tests

* Add changelog entry

* Revert "Add changelog entry"

This reverts commit 76346074f9.
2022-10-04 15:34:45 +03:00
Uku Taht 1a93542cd7 Add rate limit to API requests 2021-05-25 11:58:49 +03:00
Uku Taht 70f0657327 Update shared link API 2021-04-15 11:38:44 +03:00