Skip to content

Commit

Permalink
Merge pull request #13895 from hellcp-work/revisions
Browse files Browse the repository at this point in the history
Fix missing commit information returned by the backend
  • Loading branch information
hennevogel authored Feb 24, 2023
2 parents fe36208 + fb347cc commit cb314f5
Show file tree
Hide file tree
Showing 44 changed files with 3,993 additions and 8,623 deletions.
3 changes: 2 additions & 1 deletion src/api/app/models/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,8 @@ def serviceinfo
end

def cache_revisions(revision = nil)
opts = revision ? { rev: revision } : {}
opts = { deleted: 0, meta: 0 }
opts[:rev] = revision if revision
doc = Xmlhash.parse(Backend::Api::Sources::Package.revisions(project.name, name, opts))
doc.elements('revision') do |s|
Rails.cache.write(['history', self, s['rev']], s)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cb314f5

Please sign in to comment.