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

Add Organization Wide Labels #10814

Merged
merged 53 commits into from
Apr 1, 2020
Merged

Commits on Mar 24, 2020

  1. Add organization wide labels

    Implement organization wide labels similar to organization wide
    webhooks. This lets you create individual labels for organizations that can be used
    for all repos under that organization (so being able to reuse the same
    label across multiple repos).
    
    This makes it possible for small organizations with many repos to use
    labels effectively.
    
    Fixes go-gitea#7406
    mrsdizzie committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    6548c80 View commit details
    Browse the repository at this point in the history
  2. Add migration

    mrsdizzie committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    b7dc22c View commit details
    Browse the repository at this point in the history
  3. remove comments

    mrsdizzie committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    350569a View commit details
    Browse the repository at this point in the history
  4. fix tests

    mrsdizzie committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    c562eef View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2020

  1. Update options/locale/locale_en-US.ini

    Removed unused translation string
    mrsdizzie committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    140d87d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00729a2 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2020

  1. Use more clear var name

    mrsdizzie committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    8af0f6c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1ac0851 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    101d4e7 View commit details
    Browse the repository at this point in the history
  4. comment typo

    mrsdizzie committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    33ca43e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    adf4235 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    76ae932 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    13fadae View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a82a29b View commit details
    Browse the repository at this point in the history
  9. fmt

    mrsdizzie committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    27209ee View commit details
    Browse the repository at this point in the history
  10. Apply suggestions from code review

    Co-Authored-By: guillep2k <[email protected]>
    mrsdizzie and guillep2k committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    eae4724 View commit details
    Browse the repository at this point in the history
  11. remove unused code

    mrsdizzie committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    a68f6f8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3a0b210 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2020

  1. Configuration menu
    Copy the full SHA
    f4afe50 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    835ee95 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    503998b View commit details
    Browse the repository at this point in the history
  4. remove comment

    mrsdizzie committed Mar 28, 2020
    Configuration menu
    Copy the full SHA
    007ff15 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    88c37d1 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2020

  1. only use issues in that repo when calculating number of open issues f…

    …or org label on repo label page
    mrsdizzie committed Mar 29, 2020
    Configuration menu
    Copy the full SHA
    e4714fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    70529e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    967335e View commit details
    Browse the repository at this point in the history
  4. remove unused function

    mrsdizzie committed Mar 29, 2020
    Configuration menu
    Copy the full SHA
    2604c39 View commit details
    Browse the repository at this point in the history
  5. Update models/issue_label.go

    Co-Authored-By: guillep2k <[email protected]>
    mrsdizzie and guillep2k committed Mar 29, 2020
    Configuration menu
    Copy the full SHA
    72b4c5c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8c1f393 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a8517ab View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5688933 View commit details
    Browse the repository at this point in the history
  9. fix more tests

    mrsdizzie committed Mar 29, 2020
    Configuration menu
    Copy the full SHA
    e5809c4 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2ecf5d1 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2020

  1. Configuration menu
    Copy the full SHA
    1b94717 View commit details
    Browse the repository at this point in the history
  2. IssuesSearch api now uses new BuildLabelNamesIssueIDsCondition. Add a…

    … few more tests as well
    mrsdizzie committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    a01f7a9 View commit details
    Browse the repository at this point in the history
  3. update comment for clarity

    mrsdizzie committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    47d1b8e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d17c8c2 View commit details
    Browse the repository at this point in the history
  5. Don't sort repos by date in IssuesSearch API

    After much debugging I've found a strange issue where in some cases MySQL will return a different result than other enigines if a query is sorted by a null collumn. For example with our integration test data where we don't set updated_unix in repository fixtures:
    
    SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `avatar`, `created_unix`, `updated_unix` FROM `repository` ORDER BY updated_unix DESC LIMIT 15 OFFSET 45
    
    Returns different results for MySQL than other engines. However, the similar query:
    
    SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `avatar`, `created_unix`, `updated_unix` FROM `repository` ORDER BY updated_unix DESC LIMIT 15 OFFSET 30
    
    Returns the same results.
    
    This causes integration tests to fail on MySQL in certain cases but would never show up in a real installation. Since this API call always returns issues based on the optionally provided repo_priority_id or the issueID itself, there is no change to results by changing the repo sorting method used to get ids earlier in the function.
    mrsdizzie committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    59f0586 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8887170 View commit details
    Browse the repository at this point in the history
  7. linter is back!

    mrsdizzie committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    a5bb033 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2020

  1. code review

    mrsdizzie committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    e4ed7ec View commit details
    Browse the repository at this point in the history
  2. remove now unused option

    mrsdizzie committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    893650b View commit details
    Browse the repository at this point in the history
  3. Fix newline at end of files

    mrsdizzie committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    7e40622 View commit details
    Browse the repository at this point in the history
  4. more unused code

    mrsdizzie committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    235d420 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fbee66a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    731dd89 View commit details
    Browse the repository at this point in the history
  7. update to master

    mrsdizzie committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    0013cd3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f74a1b8 View commit details
    Browse the repository at this point in the history
  9. Update models/issue_label.go

    Co-Authored-By: 6543 <[email protected]>
    mrsdizzie and 6543 committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    551f3b5 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d39f303 View commit details
    Browse the repository at this point in the history
  11. update comments

    mrsdizzie committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    0bddcf7 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    69cf00e View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2020

  1. Configuration menu
    Copy the full SHA
    aae5286 View commit details
    Browse the repository at this point in the history