analytics/test/plausible_web
hq1 0007c0c108
Plugins API: 2nd pass with Goals resource + SharedLinks schema changes (#3396)
* Remove "Context" namespace level

* Change Goal string representation

* Alias Schemas in Plugin API Test Case template

* Update schema & tests for SharedLink resource

* Update Goals interface

- make it possible to create revenue goals
- extract "for site" query to a standalone function

* Fixup typespecs

* Alias Errors module in OpenAPI controllers

* Add missing goals test

* Implement Goals Plugins API resource

* Add extra test to confirm changeset error propagation

* Mute credo

* Fix typos

* Handle changeset traversal in `Errors`

* Use upserts in `Goals.find_or_create`

* Extract touch_site! to Site.Cache, address credo, improve code docs

* Apply formatting

* Remove unused inner join

* Update test/plausible_web/plugins/api/controllers/goals_test.exs

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update test/plausible_web/plugins/api/controllers/goals_test.exs

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update test/plausible_web/plugins/api/controllers/goals_test.exs

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update test/plausible_web/plugins/api/controllers/goals_test.exs

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update test/plausible_web/plugins/api/controllers/goals_test.exs

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update error message on revenue goal currency clash

* Remove unused code

---------

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
2023-10-05 11:54:18 +02:00
..
controllers Improve domain cleanup on site creation (#3393) 2023-10-04 12:32:27 +02:00
live Plugins API: 2nd pass with Goals resource + SharedLinks schema changes (#3396) 2023-10-05 11:54:18 +02:00
plugins/api Plugins API: 2nd pass with Goals resource + SharedLinks schema changes (#3396) 2023-10-05 11:54:18 +02:00
plugs Implement Plugins API authorization (#3373) 2023-09-26 13:13:08 +02:00
views Simplify Phoenix error template (#2913) 2023-05-16 10:52:17 +02:00
captcha_test.exs Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02:00
email_test.exs Add new priority email template (#3283) 2023-08-21 13:21:20 -03:00