TODO List¶
repox.repox.Repox¶
Simplify metadata dict parameter for create_dataset method. The contents of the metadata dict is complicated. Add something to make this simpler.
export_dataset() returns a 200 even if permissions are wrong. Do something about this.
Right now, there is only an update_oai_dataset. Either make this more agnostic or add other methods.
get_list_of_running_harvests() always returns a 405 status code.
delete_record() always returns a 200 status code but doesn’t do anything.
add_record() does not work.
add_mapping() does not work.
Master List of Autogenerated Todos¶
Todo
(markpbaggett) Although this follows the API docs, this doesn’t seem to do anything.
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.add_a_record, line 3.)
Todo
(markpbaggett) This still needs to be implemented. See note from Simon: https://github.com/europeana/REPOX/issues/40
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.add_mapping, line 3.)
Todo
(markpbaggett) Determine which keys are required and which are not and write something to help with unpacking this.
(markpbaggett) This is all about OAI. What about other things? File sets?
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.create_dataset, line 13.)
Todo
(markpbaggett) Describe the required parts of a metadata dict.
(markpbaggett) Add a static method to check the contents of metadata to avoid 400 / 406 status codes.
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.create_provider, line 13.)
Todo
(markpbaggett) While this returns a 200, it does not seem to do anything. Post an issue in Repox GitHub repo about this.
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.delete_record, line 9.)
Todo
(markpbaggett) This returns a 200 even if permissions are wrong. Can we do something about this.
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.export_dataset, line 12.)
Todo
(markpbaggett) This seems to always return a 405 status code: method not allowed for the requested resource. Find out why.
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.get_list_of_running_harvests, line 3.)
Todo
(markpbaggett): Implement a method to get a list of all scheduled harvests from a particular provider.
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.get_scheduled_harvests, line 11.)
Todo
(markpbaggett) Create similar update methods for other dataset types.
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.update_oai_dataset, line 28.)
Todo
(markpbaggett) Determine if there is a list of allowed country codes.
(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/pyrepox/checkouts/latest/repox/repox.py:docstring of repox.repox.Repox.update_provider, line 28.)