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

Add contributor guide #90

Open
cthoyt opened this issue Jun 19, 2023 · 5 comments
Open

Add contributor guide #90

cthoyt opened this issue Jun 19, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@cthoyt
Copy link
Contributor

cthoyt commented Jun 19, 2023

Related to https://github.com/OBOFoundry/OBOFoundry.github.io/pull/2392/files, I would like there to be some documentation on how I can add new checks to the dashboard. Right now, the layout of this repository is really hard to understand, with minimal documentation and code quality standards. These make it harder to contribute.

This comes back to #54 as well. I am happy to take care of this, assuming I can figure out what's going on in this repo, but that's not a given from how it looks to me now

@matentzn
Copy link
Contributor

Thanks @cthoyt I agree we should do this;

@anitacaron

This is what I think we should do:

  • Add a guide to add SPARQL checks to the robot template system (this is easier, and should be done quickly)
  • Add a new python system similar to what @cthoyt has linked in the PR above for adding custom checks.

The steps to achieve the custom check section should roughly be this:

The one thing I do not want to happen (so we need to find a more smart solution for this) is to parse the ontology with ROBOT again during the "custom checks".

@cthoyt do you just want to be passed a ROBOT JNI instance and work of that in that section?

  1. Add a module to the dashboard for custom checks (separate custom_checks.py file)
  2. All the current code remains as is and should not be touched by external contributors
  3. during dashboard.py, you add a new section, that basically iterates through all tests in the custom_checks.py file.
  4. On the table, you add a new column with Other
  5. You loop through the checks generated by the custom_checks section, and add generate a respective page with the results
  6. (use the "robot template" column as a solution).

@cthoyt
Copy link
Contributor Author

cthoyt commented Jun 20, 2023

I have zero interest in learning how to use java tooling or spending my time with python wrapped Java objects. If you can produce an OBO Graph JSON I can work with that is available throughout testing, this is great. Otherwise, I will make one myself.

Also, I really don't want to touch any code that already exists in this repo. I can help produce a "registry pattern" that automatically discovers code and applies it in an elegant way to enable this.

Not really sure about steps 3-6. I guess you will have to give examples

@matentzn
Copy link
Contributor

I can help produce a "registry pattern" that automatically discovers code and applies it in an elegant way to enable this.

Ok, but dont code anything yet - just say how it would roughly work first, so we can think of an folding it in.

@cthoyt
Copy link
Contributor Author

cthoyt commented Jun 20, 2023

I can do this after I understand how the repo works, which I will be able to do after someone writes an explanation

@matentzn
Copy link
Contributor

It is a bit complicated to explain how it works, because of the deployment.. If you want a comprehensive explanation, it will take weeks, if not months, because we have too much of a backlog right now;

The key part is:

https://github.com/OBOFoundry/OBO-Dashboard/blob/master/util/dashboard/dashboard.py#L207

Every check is a method that "runs the check", and the results are written to some dictionary afterwards. We need to create something like this that is easily extensible for custom checks.

@anitacaron anitacaron self-assigned this Jul 25, 2023
@anitacaron anitacaron added the enhancement New feature or request label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants