Skip to content

Step 2 - Fix Web IDE on projects without merge requests

What does this MR do?

Previously the Web IDE did not work if merge requests were disabled for a project. Because it didn't work, we also hid the Web IDE button.

This MR fixes the Web IDE so that it works in projects without merge requests and shows the "Web IDE" button if the user can still collaborate. It introduces GraphQL in the IDE codebase to detect user permissions.

Screenshots

20200212_ide_fix_no_mr_demo

Some things that have changed since this demo:

  • Fixed the width of the branch section in the nav dropdown when MR's are not enabled
No MR - Disabled option + tooltip No MR - Disabled option No MR - branch only nav dropdown
Screen_Shot_2020-02-12_at_1.34.29_AM Screen_Shot_2020-02-12_at_1.34.21_AM Screen_Shot_2020-02-12_at_1.33.26_AM
With MR - Same ol' nav 🎉 With MR - Same ol' options
Screen_Shot_2020-02-12_at_1.41.18_AM Screen_Shot_2020-02-12_at_1.41.38_AM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

References

Edited by Paul Slaughter

Merge request reports