Skip to content
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

Fix Operator does not exist bug on explore page with ONLY_SHOW_RELEVANT_REPOS (#22454) #22472

Merged
merged 2 commits into from
Jan 16, 2023

Commits on Jan 16, 2023

  1. Fix Operator does not exist bug on explore page with ONLY_SHOW_RELEVA…

    …NT_REPOS (go-gitea#22454)
    
    Backport go-gitea#22454
    
    There is a mistake in the code for SearchRepositoryCondition where it
    tests topics as a string. This is incorrect for postgres where topics is
    cast and stored as json. topics needs to be cast to text for this to
    work. (For some reason JSON_ARRAY_LENGTH does not work, so I have taken
    the simplest solution of casting to text and doing a string comparison.)
    
    Ref go-gitea#21962 (comment)
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    Co-authored-by: delvh <dev.lh@web.de>
    zeripath and delvh committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    3990211 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c7d1ffd View commit details
    Browse the repository at this point in the history