-
Notifications
You must be signed in to change notification settings - Fork 2
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
Data Review Tool rewrite #223
Comments
Ideas for new checks from internal discussions, that better solve for what data support managers find useful in the current Key Field Information:
Unlike other checks, it is useful to report on the details of these checks even when they pass. It is also useful to report (similar to Pelican):
Plus, if possible (Slack):
An important design caveat is that users are not uploading full datasets or representative samples. The checks need to make sense even for a sample. We'll need to word any messages carefully. e.g. "the sample doesn't contain awards" not "your dataset doesn't contain awards" or something. In general, along the lines of the earlier user research, we need the DRT to be useful, interpretable and actionable for OCDS implementers. If something is needed for data support, we might prefer to implement it as a notebook. (Of course, it is more convenient for team members to not load another tab.) |
See also open-contracting/ocds-extensions#128 about ensuring that oneOf reports subschema errors correctly, for more than just the oneOf used for embedded vs linked releases. |
I am using the OCID_PREFIX_RE = re.compile(r"^ocds-[a-z0-9]{6}")
def ocid_prefix_format(data_paths):
values = [
(value, "/".join(map(str, full_path)))
for path in (
("releases", "ocid"),
("records", "ocid"),
("records", "releases", "ocid"),
("records", "compiledRelease", "ocid"),
)
if (full_paths := data_paths.get(path))
for full_path, value in full_paths.items()
if isinstance(value, str) and not OCID_PREFIX_RE.match(value)
]
if values:
return {"conformance_errors": {"ocds_prefixes_bad_format": values}}
return {} |
Web frontend (templates and text)
Web backend
Unflatten
in Kingfisher Collect to get unflatten results from temporary directory.Library (libcoveocds)
Remove JSON serializing of errors (originates in lib-cove)[This is needed to aggregate similar error]Learning
While everything is fresh, read latest JSON Schema to see if anything can be simplified by adopting new versions
The text was updated successfully, but these errors were encountered: