[go: up one dir, main page]

Skip to content

Improvement for errors displayed on Repository Settings

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Overview

When entering a bad formatted URL on 'Pull from a remote repository' or ' Push to a remote repository' section, an error is displayed at the top of the page and the current section is collapsed.

Steps to repro

  1. Go to repository settings of a project.
  2. Expand the 'Pull from a remote repository' section.
  3. Set an invalid URL on 'Git repository URL', i.e: http://192.168.10.1:1op/test.git
  4. The application makes a hard reload, displays an error at the top of the page and collapses the section

Screenshot

Screen_Shot_2017-11-15_at_4.40.48_PM

Proposal

  • Submit the form through Ajax rather than the browser's normal submit mechanism, avoiding a hard reload
  • Display the error inside the form: Screen_Shot_2017-11-14_at_11.57.09_AM
Edited by 🤖 GitLab Bot 🤖