Skip to content

Add info and ok endpoint and refactor code #360

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

Merged
merged 16 commits into from
Sep 19, 2022
Merged

Add info and ok endpoint and refactor code #360

merged 16 commits into from
Sep 19, 2022

Conversation

rrooij
Copy link
Contributor

@rrooij rrooij commented Sep 9, 2022

Fixes #358

@codecov
Copy link

codecov bot commented Sep 9, 2022

Codecov Report

Merging #360 (a0dcb8c) into main (31261fd) will increase coverage by 0.24%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #360      +/-   ##
==========================================
+ Coverage   69.77%   70.02%   +0.24%     
==========================================
  Files          11       11              
  Lines        3841     3806      -35     
==========================================
- Hits         2680     2665      -15     
+ Misses       1161     1141      -20     
Impacted Files Coverage Δ
terminusdb_client/client/Client.py 83.41% <100.00%> (+1.51%) ⬆️
terminusdb_client/schema/schema.py 78.37% <100.00%> (ø)
terminusdb_client/woql_utils.py 76.92% <100.00%> (+0.60%) ⬆️
terminusdb_client/scripts/scripts.py 87.58% <0.00%> (+0.17%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

It had the exact same implementation as get_documents except
that it added an extra argument.
Checking string constants each time is in my opinion not good.
We should use proper types for this like the GraphType enum.

I also made sure it is backwards compatible. Calling the functions
the old way will work fine.
@rrooij rrooij changed the title Add info endpoint Add info and ok endpoint and refactor code Sep 9, 2022
_ref_extract was not called anywhere inside the codebase
and no docs even mention it. The tests don't call it as well.
This test case was not covered
It was used for type hinting but not imported
@matko matko merged commit 1d04acc into main Sep 19, 2022
@matko matko deleted the add_info_endpoint branch September 19, 2022 10:51
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.

Implement TerminusDB info endpoint
3 participants