TODO List

repox.repox.Repox

  1. Simplify metadata dict parameter for create_dataset method. The contents of the metadata dict is complicated. Add something to make this simpler.

  2. export_dataset() returns a 200 even if permissions are wrong. Do something about this.

  3. Right now, there is only an update_oai_dataset. Either make this more agnostic or add other methods.

  4. get_list_of_running_harvests() always returns a 405 status code.

  5. delete_record() always returns a 200 status code but doesn’t do anything.

  6. add_record() does not work.

  7. 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

(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.)