-
-
Notifications
You must be signed in to change notification settings - Fork 9
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 Graph support #15
base: master
Are you sure you want to change the base?
Conversation
Here is an overview of what got changed by this pull request: Issues
======
- Added 3
See the complete overview on Codacy |
# we should save the json in Redis and cache it | ||
content = Github.client.contents("voxpupuli/#{name}", path: 'metadata.json', query: { ref: 'master' }) | ||
metadata = content[:content] | ||
module_name = JSON.load(Base64.decode64(metadata))['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.
Issue found: Prefer JSON.parse
over JSON.load
.
|
||
def update_forge_module | ||
# we should save the json in Redis and cache it | ||
content = Github.client.contents("voxpupuli/#{name}", path: 'metadata.json', query: { ref: 'master' }) |
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.
Issue found: Line is too long. [106/100]
@@ -15,6 +15,7 @@ class Repository < ApplicationRecord | |||
primary_key: :github_id, | |||
foreign_key: :gh_repository_id, | |||
inverse_of: :repository) | |||
has_one :module |
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.
Issue found: Specify a :dependent
option.
No description provided.