Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/data api #58

Merged
merged 20 commits into from
Aug 2, 2023
Merged

feat/data api #58

merged 20 commits into from
Aug 2, 2023

Conversation

almosnow
Copy link
Contributor

@almosnow almosnow commented Aug 2, 2023

feat: added _count parameter
added dfamily, dphylum, dsequence and rsra tables
(granted select privilege to viewer on db)

fix: explicitly closing SQL connections from model builder

A single endpoint for all Serratus API operations
changed default cache timeout from 0 (!) to one day
added route to clear cache /data/cache/clear (GET)
/data/<view> (GET) is a cached map to /data/<view> (POST)
+ column fields are now filled up automatically based on the table schema
+ added GET -> POST request mapping
+ docs
changed limit, offset to _limit, _offset query parameters
added __columns__ property to db model classes
added 'greater than', 'less than' query clauses
      added dfamily, dphylum, dsequence and rsra tables
      (granted select privilege to viewer on db)

fix: explicitly closing SQL connections from model builder
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Patch coverage: 25.00% and project coverage change: -0.58% ⚠️

Comparison is base (bc812c3) 86.96% compared to head (136b797) 86.39%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
- Coverage   86.96%   86.39%   -0.58%     
==========================================
  Files          36       36              
  Lines         982      992      +10     
==========================================
+ Hits          854      857       +3     
- Misses        128      135       +7     
Files Changed Coverage Δ
route/data.py 28.57% <7.69%> (-1.55%) ⬇️
model/data.py 94.73% <100.00%> (+0.61%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@almosnow almosnow merged commit fa2afb2 into main Aug 2, 2023
1 of 3 checks passed
@almosnow almosnow deleted the feat/data-api branch August 2, 2023 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant