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

gut non schema files and reorganize #100

Merged
merged 5 commits into from
Mar 7, 2022
Merged

gut non schema files and reorganize #100

merged 5 commits into from
Mar 7, 2022

Conversation

bradfordcondon
Copy link
Contributor

@bradfordcondon bradfordcondon commented Mar 7, 2019

implements #79 . The new Chado repo will ONLY be the SQL schema and its documentation. Perl tools for building hte diffs, for loading data, etc, will now live in the Chado Tools repository. There are some files that i am keeping in a "junk drawer" since i think we'll want to adopt them into the documentation, see some of my comments in #79.

I also reorganized the repo so that everything sits at the root instead of chado/

@spficklin spficklin assigned spficklin and unassigned spficklin Mar 22, 2019
@spficklin
Copy link
Contributor

I really like this! Thanks for cleaning this out!

I'm curious, though, what we do about the schemas folder. With the new flyway approach will we continue to create a schemas folder with the fully SQL and a diff SQL? Perhaps we should just get this PR merged in and then we can create a new issue to discuss that part.

@spficklin spficklin self-assigned this Mar 22, 2019
@spficklin
Copy link
Contributor

I'm going to suggest this is a medium change. I approve but I don't have the historical knowledge of Chado to know 100% sure if something was removed that shouldn't be. So, while it looks good to me I think we need more eyes on this one.

@bradfordcondon
Copy link
Contributor Author

bradfordcondon commented Mar 22, 2019

I'm curious, though, what we do about the schemas folder. With the new flyway approach will we continue to create a schemas folder with the fully SQL and a diff SQL? Perhaps we should just get this PR merged in and then we can create a new issue to discuss that part.

My vision of how it would work (agreed it should be sorted in isolation from this general task of cleaning up the repo)

Diff files: no. There will no longer be version-to-version diff files. We will keep the existing ones, perhaps in a "legacy" folder. Diff file functionality is covered by flyway now.

Schemas: Yes. We will create full schema definitions of 1.4, 1.5, etc. We will create them by simply migrating to the desired version with flyway and then dumping them.

Copy link
Contributor

@laceysanderson laceysanderson left a comment

Choose a reason for hiding this comment

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

I would suggest changing the name of the possibly_useful_old_stuff directory to preflyway_archive? 😜 Otherwise this looks good to me 👍

Testing: Checked out the branch and checked the schema files I expected were still there and dug through the other remaining files (all of which I would also keep). 🤷‍♀️

@laceysanderson laceysanderson self-assigned this Mar 22, 2019
@scottcain scottcain self-requested a review August 14, 2019 05:16
Copy link
Member

@scottcain scottcain left a comment

Choose a reason for hiding this comment

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

This is a beast of a pull request, though I commented a few times in the issue that I support doing it. Since https://github.com/GMOD/chado_tools looks good (it contains all the stuff being removed from this repo), I feel pretty good about going forward with this.

@scottcain
Copy link
Member

One other thing: I am reasonably sure looking at the "files affected" that this will not clash with the best practices pull request (https://github.com/GMOD/Chado/pull/92/files) that will place a file in chado/docs/best_practices.rst

Copy link
Member

@jogoodma jogoodma left a comment

Choose a reason for hiding this comment

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

I would dump the possibly_useful_old_stuff directory altogether.

It appears to be mostly code related to and relying on the Data::Stag and DBIx::DBStag perl modules that are no longer maintained (@scottcain can you confirm this?). Some of which is now obsolete with the native XML support in PostgreSQL as well. In addition, it is coupled with the Chado schema in a way that requires it to be manually maintained as the schema changes. It will continue to degrade over time unless someone takes this on.

I see little reason to keep it around.

Other than this, everything looks great and I've verified with Pinglei that the XORT code can be dumped. Thanks for all the work that went into this PR!

This commit removed old code that used the DBIx::DBStag perl module to interact
with a Chado database.  It also removed old and outdated install
and chado module metadata docs.
@scottcain scottcain merged commit dfeca81 into 1.4 Mar 7, 2022
@laceysanderson
Copy link
Contributor

Yay!!! 🎉

@spficklin spficklin mentioned this pull request Mar 7, 2022
@laceysanderson laceysanderson deleted the sql_only branch December 5, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants