Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add residual errors to readme.md #393

Closed
Stephen-Gates opened this issue Jan 17, 2018 · 10 comments
Closed

Add residual errors to readme.md #393

Stephen-Gates opened this issue Jan 17, 2018 · 10 comments
Labels
f:Feature-request This issue is a request for a new feature fn:Validation
Milestone

Comments

@Stephen-Gates
Copy link
Contributor

Stephen-Gates commented Jan 17, 2018

Desired Behaviour

If publishing invalid data is allowed, add residual errors to readme.md (or to a .json or .csv depending on frictionlessdata/datapackage#364)

To discuss at next sprint planning meeting.

@Stephen-Gates Stephen-Gates added the f:Feature-request This issue is a request for a new feature label Jan 17, 2018
@Stephen-Gates Stephen-Gates added this to the v0.11.0 milestone Jan 17, 2018
@Stephen-Gates Stephen-Gates added fn:Validation f:Question A question for project maintainers and contributors labels Jan 17, 2018
@Stephen-Gates Stephen-Gates self-assigned this Jan 27, 2018
@Stephen-Gates
Copy link
Contributor Author

@louisjasek @mattRedBox do you have a view on this feature?

At the end of a Validation step, I'm thinking append the errors to the end of the README.md file

### Known Data Errors

This data is published with the following data errors:

Error message 1
...
Error message n

I'm concerned that:

  • we don't know if the data was changed but not validated before the export
  • that people may not look at the provenance as the export currently fails if no provenance is entered

@louisjasek
Copy link

Yeh that's a good point. I guess what is worse for the user?

  • correct data with potentially incorrect error reporting
  • potentially incorrect data without error reporting

@mattRedBox as a developer, what would you least prefer?

@Stephen-Gates
Copy link
Contributor Author

See #388 for suggestion giving user control of adding error messages to readme

@Stephen-Gates Stephen-Gates assigned ghost and unassigned Stephen-Gates Mar 18, 2018
@ghost
Copy link

ghost commented Mar 19, 2018

Hi
@Stephen-Gates , @louisjasek
For residual errors:

  • do users have to have these published with the the metadata?
    • if it's not compulsory, then we should just allow the user to choose:
      • if they wish to validate (prompt just before the publishing)
      • if they wish to add the errors to the metadata.
    • if it is compulsory, then we should automatically validate right before publishing and add these errors silently to the metadata.
  • compulsory or not compulsory could also be an option in settings/preferences later

I'm not sure I understand why a person needs to look at the provenance report? I guess just making it clear in the how-tos that whatever the process is, is enough. Or we could somehow track whether the provenance data is simply error collation and remind the user that they haven't added their own data - and check that this is OK before export/publish.

@Stephen-Gates
Copy link
Contributor Author

I’ve suggested that the user has control in #388.

If we add automatically then the error that currently shows when no provenance information is present will not appear. I like this error as it prompts users to think about this.

I guess at some stage we could get fancy and track if data changes after writing errors to readme and warn of potentially incorrect provenance information

@ghost
Copy link

ghost commented Mar 20, 2018

Hi @Stephen-Gates
There's possibly a way to keep the data added by user and errors separate. We may be able to show the errors as a read-only display, but keep the logic for user entry separate - I guess it's more about the business logic -> is a provenance file with only errors in it, valid? That should determine whether the user still gets prompted.

@Stephen-Gates
Copy link
Contributor Author

Makes sense. Protect errors from being changed. Allow user to remove block of errors. Overwrite errors on next "write errors to provenance" command.

@Stephen-Gates
Copy link
Contributor Author

Invoke "write errors to provenance" command from bottom panel or pop-out error window after error count message, e.g. error count message, button with tooltip

3 error(s) found in this validation.
screenshot 2018-03-17 04 12 10 Write errors to Provenance Information

Rough but that's the general idea

@Stephen-Gates Stephen-Gates removed the f:Question A question for project maintainers and contributors label Mar 24, 2018
ghost pushed a commit that referenced this issue Mar 28, 2018
ghost pushed a commit that referenced this issue Mar 28, 2018
ghost pushed a commit that referenced this issue Mar 28, 2018
ghost pushed a commit that referenced this issue Mar 28, 2018
ghost pushed a commit that referenced this issue Mar 28, 2018
@Stephen-Gates
Copy link
Contributor Author

Stephen-Gates commented Mar 28, 2018

@mattredbox can this be closed? (#618 and #615 raised separately)

@ghost
Copy link

ghost commented Mar 28, 2018

Hi @Stephen-Gates
I believe it works ok from the main window.
I'm not sure this quite works correctly from the separate Errors window, so either keep open or open a separate issue for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f:Feature-request This issue is a request for a new feature fn:Validation
Projects
None yet
Development

No branches or pull requests

2 participants