Skip to content
Snippets Groups Projects

Don't wait for project authorization sidekiq jobs when creating projects

All threads resolved!

What does this MR do?

When creating a project, ensures the creator's authorizations are refreshed inline, demoting other affected users to asynchronous refresh

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

We only wait so the requesting user can interact with their newly-created project immediately, so we only have to wait for a single user.

Waiting for sidekiq jobs to complete in the HTTP request/response cycle is failure-prone, e.g., during deploys. Since we're only waiting for a single user, we might as well do that inline instead..

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #36792 (closed)

Edited by Nick Thomas

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • assigned to @jamedjo

  • Nick Thomas marked the checklist item Changelog entry added, if necessary as completed

    marked the checklist item Changelog entry added, if necessary as completed

  • Nick Thomas marked the checklist item Tests added for this feature/bug as completed

    marked the checklist item Tests added for this feature/bug as completed

  • Nick Thomas marked the checklist item Conform by the merge request performance guides as completed

    marked the checklist item Conform by the merge request performance guides as completed

  • Nick Thomas marked the checklist item Conform by the style guides as completed

    marked the checklist item Conform by the style guides as completed

  • Nick Thomas marked the checklist item Squashed related commits together as completed

    marked the checklist item Squashed related commits together as completed

  • Nick Thomas changed the description

    changed the description

  • James EJ
  • James EJ
  • James EJ
  • @nick.thomas Looks good, I've added a couple of minor ideas

  • James EJ
  • assigned to @DouweM

  • Nick Thomas added 80 commits

    added 80 commits

    • 086179ea...24244d03 - 79 commits from branch gitlab-org:master
    • 721a0d63 - Move sidekiq-based project authorization refresh out of Projects::CreateService

    Compare with previous version

  • Douwe Maan
  • Nick Thomas added 2 commits

    added 2 commits

    • 8b73df0c - Move sidekiq-based project authorization refresh out of Projects::CreateService
    • 66e18a12 - Don't add admins as masters to projects created in another user's namespace

    Compare with previous version

  • Nick Thomas added 1 commit

    added 1 commit

    • 0a1160e5 - Don't treat gitlab project imports specially in Projects::CreateService

    Compare with previous version

  • Nick Thomas resolved all discussions

    resolved all discussions

  • assigned to @DouweM

  • Author Maintainer

    @DouweM all comments addressed. One more round?

  • @nick.thomas Looks like the spec failure is https://gitlab.com/gitlab-org/gitlab-ce/issues/34323, so can be ignored

  • Douwe Maan approved this merge request

    approved this merge request

  • merged

  • Please register or sign in to reply
    Loading