Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

api: enriched claims #34

Merged
merged 5 commits into from
Aug 31, 2015
Merged

Conversation

jbenito3
Copy link
Member

Enables to query for claims using many different parameters.

@jbenito3 jbenito3 assigned jbenito3 and tiborsimko and unassigned jbenito3 Aug 28, 2015
@tiborsimko tiborsimko added the api label Aug 28, 2015
@tiborsimko tiborsimko added this to the v0.3.0 milestone Aug 28, 2015
@tiborsimko
Copy link
Member

Now that #35 is merged, can you please rebase against latest master and amend docs/index.rst changes that now belong to another file? You may also want to update docs/api.rst WRT autodoc.

@tiborsimko tiborsimko assigned jbenito3 and unassigned tiborsimko Aug 30, 2015
* Refactors the restful api in order to use Flask-Restful.

* Improves Exception management.

* Modifies slightly the GET claims response by removing the json_list
  wrapping dictionary.

Signed-off-by: Jose Benito Gonzalez Lopez <jose.benito.gonzalez@cern.ch>
* Renames `datetime` (inside claim) with `created` the JSON schema,
  examples and RFC.

Signed-off-by: Jose Benito Gonzalez Lopez <jose.benito.gonzalez@cern.ch>
@jbenito3 jbenito3 force-pushed the 23-search-claims branch 2 times, most recently from 178d35e to b3c661c Compare August 30, 2015 19:13
@jbenito3
Copy link
Member Author

@tiborsimko rebase and re-pushed done.

@jbenito3 jbenito3 assigned tiborsimko and unassigned jbenito3 Aug 30, 2015
@@ -1,38 +0,0 @@
# -*- coding: utf-8 -*-
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following up the removal of decorators.py, please also update docs/api.py, otherwise one gets:

/code/docs/api.rst:57: WARNING: autodoc: failed to import module 'claimstore.core.decorators'; the following exception was raised:
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/sphinx/ext/autodoc.py", line 385, in import_object
    __import__(self.modname)
ImportError: bad magic number in 'claimstore.core.decorators': b'\x03\xf3\r\n'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks!

* Enriches the resource GET claims by adding a by-argument-search. Now
  one can search by any combination of: claimant, predicate,
  certainty, human, actor, role, since, from, object/subject or
  type/value. (addresses inveniosoftware#23)

* Refactores the database model: `uid` columns are now simply `id`,
  certainty became a float number and human is a 0/1 value.

Signed-off-by: Jose Benito Gonzalez Lopez <jose.benito.gonzalez@cern.ch>
* Explains how to do requests through python.

* Lists all arguments that can be used in GET claims. (addresses inveniosoftware#23)

Signed-off-by: Jose Benito Gonzalez Lopez <jose.benito.gonzalez@cern.ch>
* Tests all possible queries for GET claims. (closes inveniosoftware#23)

Signed-off-by: Jose Benito Gonzalez Lopez <jose.benito.gonzalez@cern.ch>
@jbenito3
Copy link
Member Author

@tiborsimko Thanks for the comments. Changed and pushed.

@tiborsimko
Copy link
Member

Docs are now OK, but I still see SQL exception mentioned above #34 (comment). Shall we address this later?

@tiborsimko tiborsimko merged commit a0334bc into inveniosoftware:master Aug 31, 2015
@jbenito3 jbenito3 deleted the 23-search-claims branch August 31, 2015 07:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants