-
Notifications
You must be signed in to change notification settings - Fork 2
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 optional file name column, admin interface, and help #20
Conversation
There is a display problem with my implementation. Some file URLs will be of a format that doesn't have a useful file name, such as
and this will display as To resolve this, a mechanism for obtaining a file name from these types of URLs would be needed. It would have to be an additional column in the chado.fileloc table? |
With the Nov. 4, 2021 commit, I have done the unthinkable and added a column to the There is now a And the associated widget is where you can enter this optional value Note that none of this appears unless file name is enabled from the admin page. |
Hey @dsenalik, I've issued a pull request to your fork to resolve the merge conflict. Can you merge that in? It should then be part of this PR. I'm still working on reviewing the PR but thought I'd get this merge problem out of the way first. |
Thanks for looking at this. I wasn't sure if this was something you would like to incorporate or not, comments welcome! |
I think you're right, we do need a filename field somewhere, and it makes sense that it would go into the
|
I have finally worked on making these changes. I did not yet rename the The update function was lost when I merged commit 1f84ea9 but with all these suggested changes it needed to be updated anyway. One question, is this okay, because I explicitly specify chado, that might not be right?
I also added a couple more default licenses. |
After some discussion as to how it is confusing where to click to download the actual file, why can't you click on the filename, I made the change with d4b9eac so that when the "filename" column is enabled, the download link moves there. An example of how it looks: |
Moved the file name generation code from the formatter to the loader, so that web services work as they should. |
Thanks @dsenalik for all the recent updates! I think I may make the change of the renaming that database 'name' field as it bugs me. |
I think I'm done for now except for my |
Oh, right I forgot to answer that question. Try the But for creating the column if it doesn't exist I don't think we have a corresponding function to replace the |
Okay, I see now what we did. I had to go look back at the code that upgrades from Chado v1.2 to v1.3. That upgrade adds new fields to the organism table and we just wrote out the SQL to "ALTER TABLE" and then passed in that SQL to the |
I stole the code to generate a tripal job to update db2cv_mview for tripal/tripal_analysis_expression#411 but in doing this, noticed that in update 7100 the variable $mview_id was never defined, so the job would not have worked. I fixed that here and have added similar code there. |
Hey @dsenalik thanks for all your work on this PR. I did not change the database column name as I said I wanted. I didn't want to keep this PR hanging out there. If I feel strongly enough to fix it later (and have time) I will. |
For Issue #1
This pull request adds an additional optional column to display file name, and adds an administrative page to enable this column. Most of the changes are the addition of this admin page!
While I was in there I added a help page, copying the text from README.md (and there was a typo there that I fixed that made one of the links not work)
For example:
The new configuration page:
The new help page: