-
- Downloads
HOLI-10700: add anonymous stats API with counter
Adds a new GraphQL API endpoint `anon_count` that takes a counter name as argument. It will insert a row into a counter model for every call with counter name and timestamp as data. To evaluate the counters value, a query needs to count the number of rows for the whole or a specific time frame. Counter evaluation is out-of-scope and left to be done manually at this point in time.
Showing
- anon_stats/__init__.py 0 additions, 0 deletionsanon_stats/__init__.py
- anon_stats/apps.py 5 additions, 0 deletionsanon_stats/apps.py
- anon_stats/migrations/0001_initial.py 21 additions, 0 deletionsanon_stats/migrations/0001_initial.py
- anon_stats/migrations/__init__.py 0 additions, 0 deletionsanon_stats/migrations/__init__.py
- anon_stats/models.py 10 additions, 0 deletionsanon_stats/models.py
- anon_stats/schema/__init__.py 0 additions, 0 deletionsanon_stats/schema/__init__.py
- anon_stats/schema/mutations.py 26 additions, 0 deletionsanon_stats/schema/mutations.py
- anon_stats/tests/__init__.py 0 additions, 0 deletionsanon_stats/tests/__init__.py
- anon_stats/tests/test_mutations.py 58 additions, 0 deletionsanon_stats/tests/test_mutations.py
- openbook/graphql_schema.py 2 additions, 0 deletionsopenbook/graphql_schema.py
- openbook/settings/__init__.py 1 addition, 0 deletionsopenbook/settings/__init__.py
Loading
Please register or sign in to comment