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

Fix #735 - Provide message when pulling non-existent form from odk dir using cmd #776

Merged
merged 1 commit into from
Aug 23, 2019

Conversation

mayank8318
Copy link
Contributor

Closes #735

What has been done to verify that this works as intended?

Manually tested it as shown in the screenshot:
Screenshot from 2019-08-07 21-05-06

Why is this the best possible solution? Were any other approaches considered?

This approach is similar to the one used in PullFormFromAggregate class.
https://github.com/opendatakit/briefcase/blob/master/src/org/opendatakit/briefcase/operations/PullFormFromAggregate.java#L118

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

This change will inform the user in case the form id they entered is invalid. Before this, briefcase gave no error message and the user was under the impression that the desired pull operation was successful.

Does this change require updates to documentation? If so, please file an issue at https://github.com/opendatakit/docs/issues/new and include the link below.

No

@codecov-io
Copy link

Codecov Report

Merging #776 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #776      +/-   ##
============================================
- Coverage     47.53%   47.52%   -0.01%     
  Complexity     1471     1471              
============================================
  Files           178      178              
  Lines          9665     9667       +2     
  Branches        672      673       +1     
============================================
  Hits           4594     4594              
- Misses         4780     4782       +2     
  Partials        291      291
Impacted Files Coverage Δ Complexity Δ
...pendatakit/briefcase/operations/ImportFromODK.java 0% <0%> (ø) 0 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ced8814...edfd670. Read the comment docs.

Copy link
Contributor

@ggalmazor ggalmazor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Thanks, @mayank8318!

@ggalmazor ggalmazor added this to the v1.17.0 milestone Aug 8, 2019
@kkrawczyk123
Copy link
Contributor

Tested with success!
Verified on Ubuntu, MacOS and Windows.
Message in the cmd output:
Screenshot from 2019-08-09 14-49-38
Thanks @mayank8318!

@opendatakit-bot unlabel "needs testing"
@opendatakit-bot label "behavior verified"

@ggalmazor ggalmazor merged commit 7206a02 into getodk:master Aug 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No information when trying to pull not existing form from odk dir using cmd
5 participants