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

Add error message when log in to non-existing project on Central on Pull and Push tab #786

Closed
kkrawczyk123 opened this issue Aug 12, 2019 · 2 comments · Fixed by #787
Closed

Comments

@kkrawczyk123
Copy link
Contributor

Software versions

Briefcase v1.16.x, Java v1.11.x, operating system, Aggregate v1.x.x, Collect v1.x.x...

Problem description

When input Id of non-existing Project on Central Connection Window and click on Connect button and log in but then “Briefcase wasn’t able to reload forms” I think that maybe some other error message should be displayed? The empty list is displayed and Pulling from so it suggests that you can Reload and pull from that project.
On Push tab I am able to log in to the non-existing project, list of form is displayed and I am even able to Push a form there and I have “Success with errors” status which is totally misleading.

Steps to reproduce the problem

Try to log in to Central using Project Id that you are sure that does not exist on Central server.

Expected behavior

I think that "Central not found" error could be enough or maybe more specific @ggalmazor what do you think?

@ggalmazor
Copy link
Contributor

This is a great idea!

Central has an API endpoint that could be used for this. Check the API docs at: https://odkcentral.docs.apiary.io

@mayank8318
Copy link
Contributor

@opendatakit-bot claim

ggalmazor pushed a commit that referenced this issue Aug 26, 2019
…tral (#787)

* Show error message when invalid project id is used for Central

* Remove getCredentialsTestRequest from Central and refactor connection test to reduce redundancy

* Optimize imports

* Removed print statements used for debugging

* Update error message text
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants