Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Make sure that the registry is reachable when creating it #437

Merged
merged 1 commit into from
Oct 14, 2015

Conversation

mssola
Copy link
Collaborator

@mssola mssola commented Oct 14, 2015

When creating a new registry, Portus will now check whether it's reachable or
not. If it is, it will continue as usual. However, if it's not reachable, then
Portus will redirect to the registries#new page and alert the user with some
useful message. When this redirect happens, the user will have available an
extra checkbox called "Force". If the user checks it, then it's telling to
Portus to force the creation of the registry, even if it's not reachable.

Fixes #408

Signed-off-by: Miquel Sabaté Solà msabate@suse.com

@mssola mssola mentioned this pull request Oct 14, 2015
@mssola
Copy link
Collaborator Author

mssola commented Oct 14, 2015

A snapshot of a redirect in which we've detected that the registry is not reachable:

error

@flavio
Copy link
Member

flavio commented Oct 14, 2015

Would it be too hard to leave the data the user entered and change the "create" button to "force"?

Other ideas:

  • Provide more clues about the "force" checkbox inside of the error notification
  • Rename "force" to something more obvious like "Ignore network error" or something like that...

@flavio
Copy link
Member

flavio commented Oct 14, 2015

BTW, the code looks fine to me

@mssola
Copy link
Collaborator Author

mssola commented Oct 14, 2015

Would it be too hard to leave the data the user entered and change the "create" button to "force"?

Leaving the data can be a good option. I'd be against changing the "Create" button to "Force", because this way you are saying that the second attempt would effectively force the creation of the registry always, which is not the case. Maybe, as a user, you are just trying out different hostname/ssl variations, so you're not sure and don't want to force it.

Other ideas:

  • Provide more clues about the "force" checkbox inside of the error notification

+1

  • Rename "force" to something more obvious like "Ignore network error" or something like that...

What about "Don't check whether it's reachable or not" ?

@flavio
Copy link
Member

flavio commented Oct 14, 2015

Maybe, as a user, you are just trying out different hostname/ssl variations, so you're not sure and don't want to force it.

Good point, let's leave the "create" button as it is.

What about "Don't check whether it's reachable or not" ?

Maybe something more compact? Like: "Skip remote checks"

@mssola
Copy link
Collaborator Author

mssola commented Oct 14, 2015

Maybe something more compact? Like: "Skip remote checks"

+1

@mssola
Copy link
Collaborator Author

mssola commented Oct 14, 2015

@flavio I'll squash the commits before the actual merge ;)

@flavio
Copy link
Member

flavio commented Oct 14, 2015

LGTM

When creating a new registry, Portus will now check whether it's reachable or
not. If it is, it will continue as usual. However, if it's not reachable, then
Portus will redirect to the registries#new page and alert the user with some
useful message. When this redirect happens, the user will have available an
extra checkbox called "Skip remote checks". If the user checks it, then it's
telling to Portus to force the creation of the registry, even if it's not
reachable.

Fixes SUSE#408

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
mssola added a commit that referenced this pull request Oct 14, 2015
Make sure that the registry is reachable when creating it
@mssola mssola merged commit b1e599a into SUSE:master Oct 14, 2015
@mssola mssola deleted the reachability branch October 14, 2015 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants