-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Another batch of SA2.0 edits in TS2.0 (part 3) #16833
Merged
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
852cb9f
Fix SA2.0 usage, refactor tool_shed.webapp.api.repository_revisions
jdavcs 49cafd0
Fix SA2.0 usage in tool_shed.webapp.api.groups
jdavcs c4e1c9b
Fix SA2.0 usage in tool_shed.webapp.controllers.user
jdavcs 3238b21
Fix SA2.0 usage in tool_shed.webapp.controllers.repository
jdavcs f553b75
Fix SA2.0 usage in tool_shed.webapp.controllers.repository
jdavcs 6a6e5bf
Fix SA2.0 formatting in tool_shed.repository_registry + refactor
jdavcs 70c7f03
Fix SA2.0 usage in tool_shed.test.base.twilltestcase
jdavcs a5110bc
Drop unused functions from tool_shed.test.base.test_db_util
jdavcs 5a70f2f
Fix SA2.0 usage in tool_shed.test.base.test_db_util; refactor
jdavcs 08b5a43
Fix SA2.0 usage in tool_shed.managers.categories
jdavcs ff8f629
Fix SA2.0 usage in tool_shed.managers.users
jdavcs 77df9c9
Fix SA2.0 usage in tool_shed.managers.repositories
jdavcs 4db5e31
Fix SA2.0 usage in tool_shed.managers.groups
jdavcs a5a7d06
Fix SA2.0 usage in tool_shed.util.metadata_util
jdavcs 1711e96
Fix SA2.0 usage in tool_shed.util.shed_util_common
jdavcs d4a0cce
Fix SA2.0 usage in tool_shed.util.shed_index
jdavcs b064064
Fix SA2.0 usage in tool_shed.util.search_util
jdavcs 43500cf
Fix SA2.0 usage in tool_shed.util.commit_util
jdavcs bf919c0
Fix SA2.0 usage in tool_shed.util.repository_util
jdavcs 68831dd
Fix SA2.0 usage in tool_shed.metadata, refactor
jdavcs b0684fa
Import models
jdavcs 3c52785
Ignore typing error (see note)
jdavcs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the user_model here the third and below it always the second argument?
Does the model really need to be passed in? Can we not assume it has the user model by the function name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. I passed all those models to these functions because in a different module directly importing them from
tool_shed.webapp.model
raised an error due to a circular dependency. However, those were modules inutil
, but this is inmanagers
, so there should be no error from an import. Let me clean this up a bit (I hate passing those models).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not reusing the function from
galaxy.managers.users
because that one callsfirst()
, whereas this one callsone()
, so the behavior is slightly different. Most likely the difference is inconsequential, but with the tool shed I cannot be sure. And the calling code would have to be slightly adjusted. Given the scale of these changes, I'm trying to minimize my footprint here.