- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 6.2k
 
Fix external renderer #16401
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
          
     Merged
      
      
            techknowlogick
  merged 5 commits into
  go-gitea:main
from
6543-forks:fix-external-renderer
  
      
      
   
  Jul 12, 2021 
      
    
                
     Merged
            
            Fix external renderer #16401
                    techknowlogick
  merged 5 commits into
  go-gitea:main
from
6543-forks:fix-external-renderer
  
      
      
   
  Jul 12, 2021 
              
            Conversation
  
    
      This file contains hidden or 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
    
  
  
    
    
              
                    zeripath
  
              
              reviewed
              
                  
                    Jul 11, 2021 
                  
              
              
            
            
              
                    lunny
  
              
              approved these changes
              
                  
                    Jul 12, 2021 
                  
              
              
            
            
| 
           might be unrelated, but the demo links you provided give a 500 Internal Server Error  | 
    
| 
           @noerw no its related, external renderer are broken, ot test clome mentioned repos to your test instamce and setup restructured text renderer. It should throw a 500, if you checkout this pull you should get a rendered page back  | 
    
              
                    noerw
  
              
              approved these changes
              
                  
                    Jul 12, 2021 
                  
              
              
            
            
              
                    zeripath
  
              
              approved these changes
              
                  
                    Jul 12, 2021 
                  
              
              
            
            
    
  lengyuqu 
      pushed a commit
        to lengyuqu/gitea
      that referenced
      this pull request
    
      Jul 13, 2021 
    
    
      
  
    
      
    
  
* fix external renderer * use GBackground context as fallback * no fallback, return error Co-authored-by: Lauris BH <[email protected]>
    
  lunny 
      added a commit
      that referenced
      this pull request
    
      Jul 23, 2021 
    
    
      
  
    
      
    
  
* 企业微信webhook * 企业微信webhook * 企业微信webhook * Update templates/admin/hook_new.tmpl Co-authored-by: a1012112796 <[email protected]> * Update services/webhook/wechatwork.go Co-authored-by: a1012112796 <[email protected]> * 修善wechatwork * 修善wechatwork * fix * Update locale_cs-CZ.ini fix * fix build * fix * fix build * make webhooks.zh-cn.md * delet unnecessary blank line * delet unnecessary blank line * 企业微信webhook * 企业微信webhook * 企业微信webhook * Update templates/admin/hook_new.tmpl Co-authored-by: a1012112796 <[email protected]> * Update services/webhook/wechatwork.go Co-authored-by: a1012112796 <[email protected]> * 修善wechatwork * 修善wechatwork * fix * fix build * fix * fix build * make webhooks.zh-cn.md * delet unnecessary blank line * delet unnecessary blank line * 企业微信webhook * 企业微信webhook * 企业微信webhook * 企业微信webhook * 企业微信webhook * fix * fix * 企业微信webhook * 企业微信webhook * 企业微信webhook * fix wechat * fix wechat * fix wechat * fix wechat * Fix invalid params and typo of email templates (#16394) Signed-off-by: Meano <[email protected]> * Add LRU mem cache implementation (#16226) The current default memory cache implementation is unbounded in size and number of objects cached. This is hardly ideal. This PR proposes creating a TwoQueue LRU cache as the underlying cache for Gitea. The cache is limited by the number of objects stored in the cache (rather than size) for simplicity. The default number of objects is 50000 - which is perhaps too small as most of our objects cached are going to be much less than 1kB. It may be worth considering using a different LRU implementation that actively limits sizes or avoids GC - however, this is just a beginning implementation. Signed-off-by: Andrew Thornton <[email protected]> * [skip ci] Updated translations via Crowdin * Replace `plugins/docker` with `techknowlogick/drone-docker`in ci (#16407) * plugins/docker -> techknowlogick/drone-docker * It is multi-arch * docs: rewrite email setup (#16404) * Add intro for both the docs page and mailer methods * Fix numbering level in SMTP section * Recommends implicit TLS Signed-off-by: Bagas Sanjaya <[email protected]> * Validate Issue Index before querying DB (#16406) * Fix external renderer (#16401) * fix external renderer * use GBackground context as fallback * no fallback, return error Co-authored-by: Lauris BH <[email protected]> * Add checkbox to delete pull branch after successful merge (#16049) * Add checkbox to delete pull branch after successful merge * Omit DeleteBranchAfterMerge field in json * Log a warning instead of error when PR head branch deleted * Add DefaultDeleteBranchAfterMerge to PullRequestConfig * Add support for delete_branch_after_merge via API * Fix for API: the branch should be deleted from the HEAD repo If head and base repo are the same, reuse the already opened ctx.Repo.GitRepo * Don't delegate to CleanupBranch, only reuse branch deletion code CleanupBranch contains too much logic that has already been performed by the Merge * Reuse gitrepo in MergePullRequest Co-authored-by: Andrew Thornton <[email protected]> * [skip ci] Updated translations via Crowdin * Detect encoding changes while parsing diff (#16330) * Detect encoding changes while parsing diff * Let branch/tag name be a valid ref to get CI status (#16400) * fix #16384# * refactor: move shared helper func to utils package * extend Tests * use ctx.Repo.GitRepo if not nil * fix * fix * 企业微信webhook * 企业微信webhook * 企业微信webhook * fix build * fix build * Apply suggestions from code review Co-authored-by: a1012112796 <[email protected]> Co-authored-by: myheavily <myheavily> Co-authored-by: zhaoxin <[email protected]> Co-authored-by: Meano <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: GiteaBot <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: Bagas Sanjaya <[email protected]> Co-authored-by: Norwin <[email protected]> Co-authored-by: Lauris BH <[email protected]> Co-authored-by: Jimmy Praet <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
    
  AbdulrhmnGhanem 
      pushed a commit
        to kitspace/gitea
      that referenced
      this pull request
    
      Aug 10, 2021 
    
    
      
  
    
      
    
  
* fix external renderer * use GBackground context as fallback * no fallback, return error Co-authored-by: Lauris BH <[email protected]>
    
  AbdulrhmnGhanem 
      pushed a commit
        to kitspace/gitea
      that referenced
      this pull request
    
      Aug 10, 2021 
    
    
      
  
    
      
    
  
* 企业微信webhook * 企业微信webhook * 企业微信webhook * Update templates/admin/hook_new.tmpl Co-authored-by: a1012112796 <[email protected]> * Update services/webhook/wechatwork.go Co-authored-by: a1012112796 <[email protected]> * 修善wechatwork * 修善wechatwork * fix * Update locale_cs-CZ.ini fix * fix build * fix * fix build * make webhooks.zh-cn.md * delet unnecessary blank line * delet unnecessary blank line * 企业微信webhook * 企业微信webhook * 企业微信webhook * Update templates/admin/hook_new.tmpl Co-authored-by: a1012112796 <[email protected]> * Update services/webhook/wechatwork.go Co-authored-by: a1012112796 <[email protected]> * 修善wechatwork * 修善wechatwork * fix * fix build * fix * fix build * make webhooks.zh-cn.md * delet unnecessary blank line * delet unnecessary blank line * 企业微信webhook * 企业微信webhook * 企业微信webhook * 企业微信webhook * 企业微信webhook * fix * fix * 企业微信webhook * 企业微信webhook * 企业微信webhook * fix wechat * fix wechat * fix wechat * fix wechat * Fix invalid params and typo of email templates (go-gitea#16394) Signed-off-by: Meano <[email protected]> * Add LRU mem cache implementation (go-gitea#16226) The current default memory cache implementation is unbounded in size and number of objects cached. This is hardly ideal. This PR proposes creating a TwoQueue LRU cache as the underlying cache for Gitea. The cache is limited by the number of objects stored in the cache (rather than size) for simplicity. The default number of objects is 50000 - which is perhaps too small as most of our objects cached are going to be much less than 1kB. It may be worth considering using a different LRU implementation that actively limits sizes or avoids GC - however, this is just a beginning implementation. Signed-off-by: Andrew Thornton <[email protected]> * [skip ci] Updated translations via Crowdin * Replace `plugins/docker` with `techknowlogick/drone-docker`in ci (go-gitea#16407) * plugins/docker -> techknowlogick/drone-docker * It is multi-arch * docs: rewrite email setup (go-gitea#16404) * Add intro for both the docs page and mailer methods * Fix numbering level in SMTP section * Recommends implicit TLS Signed-off-by: Bagas Sanjaya <[email protected]> * Validate Issue Index before querying DB (go-gitea#16406) * Fix external renderer (go-gitea#16401) * fix external renderer * use GBackground context as fallback * no fallback, return error Co-authored-by: Lauris BH <[email protected]> * Add checkbox to delete pull branch after successful merge (go-gitea#16049) * Add checkbox to delete pull branch after successful merge * Omit DeleteBranchAfterMerge field in json * Log a warning instead of error when PR head branch deleted * Add DefaultDeleteBranchAfterMerge to PullRequestConfig * Add support for delete_branch_after_merge via API * Fix for API: the branch should be deleted from the HEAD repo If head and base repo are the same, reuse the already opened ctx.Repo.GitRepo * Don't delegate to CleanupBranch, only reuse branch deletion code CleanupBranch contains too much logic that has already been performed by the Merge * Reuse gitrepo in MergePullRequest Co-authored-by: Andrew Thornton <[email protected]> * [skip ci] Updated translations via Crowdin * Detect encoding changes while parsing diff (go-gitea#16330) * Detect encoding changes while parsing diff * Let branch/tag name be a valid ref to get CI status (go-gitea#16400) * fix go-gitea#16384# * refactor: move shared helper func to utils package * extend Tests * use ctx.Repo.GitRepo if not nil * fix * fix * 企业微信webhook * 企业微信webhook * 企业微信webhook * fix build * fix build * Apply suggestions from code review Co-authored-by: a1012112796 <[email protected]> Co-authored-by: myheavily <myheavily> Co-authored-by: zhaoxin <[email protected]> Co-authored-by: Meano <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: GiteaBot <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: Bagas Sanjaya <[email protected]> Co-authored-by: Norwin <[email protected]> Co-authored-by: Lauris BH <[email protected]> Co-authored-by: Jimmy Praet <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
  
      Sign up for free
      to subscribe to this conversation on GitHub.
      Already have an account?
      Sign in.
  
      Labels
      
    issue/regression
  Indicates a previously functioning feature or behavior that has broken or regressed after a change 
  
    lgtm/done
  This PR has enough approvals to get merged. There are no important open reservations anymore. 
  
    type/bug
  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.
  
    
  
    
as title