-
Notifications
You must be signed in to change notification settings - Fork 0
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
210 mapping updates #294
210 mapping updates #294
Conversation
Note: need to update mapping, rename Budgets and projects extension to "Project extension". |
update OCDS mapping to reflect logic from convert-to-oc4ids, separate mappings
@pindec I've added my changes for #216 to this PR and updated the PR description with a summary. Please could you review? I have a couple of outstanding things to do per the summary, but they are just presentation, so I would like to get your feedback on the substantive changes. To give a bit of context: the logic in Thanks! |
@jpmckinney do you have any ideas for:
|
I think we'll have to add a feature to the csv-table-no-translate directive to accept a list of columns to include or exclude. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @duncandewhurst, looks good and I'm happy with the substantive changes.
On the two notes, I think that it's clear from the context which source of fields you are referring to, and object names help.
On the display issue, we could just add a * for the items that are covered by convert-to-oc4ids, rather than use italics, but I realise that's more problematic for parts where some logic is implemented and some not (e.g. Project Budget). Ditto the latter issue for adding another column. Maybe using colour here might be best.
|
||
#### Handling multiple currencies | ||
|
||
Some mappings involve converting values in OCDS, which may be in different currencies, to a base currency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we clarify here OCDS Kit doesn't do currency conversions (I can see it's clear in the mapping)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in edfdeae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would the sentence about currency conversion added under "Command-line tool and reference implementation" be more relevant here?
On the "use case to also have a column that simply lists the relevant OCDS field paths without the mapping logic", I think this would be useful as a quick reference. Depending on how the csv-tables render when columns can be excluded, it might be clearer as additional separate tables with just 'CoST IDS element' and 'OCDS field paths' columns, to avoid users having to scroll down to the horizontal scroll bar to then scroll right to see the simplified mapping. |
@jpmckinney although there's a couple of outstanding to-do's, I'd like to get your review. Please see the PR description and #294 (comment) for context.
It looks like https://github.com/crate/sphinx_csv_filter
Absent a better idea, I went for italicizing the text between the code literals.
I'll do this once the mapping is finalized. |
I'll review, but let's create a new issue about Sphinx extensions, since it's just a UI improvement and not fundamental to the changes in the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only skimmed the CSVs, but I assume they have been sufficiently reviewed.
|
||
#### Handling multiple currencies | ||
|
||
Some mappings involve converting values in OCDS, which may be in different currencies, to a base currency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would the sentence about currency conversion added under "Command-line tool and reference implementation" be more relevant here?
Co-authored-by: James McKinney <[email protected]>
Co-authored-by: James McKinney <[email protected]>
Co-authored-by: James McKinney <[email protected]>
Co-authored-by: James McKinney <[email protected]>
@jpmckinney for some reason I'm unable to reply to #294 (comment):
I thought it was better to keep all the OCDS Kit-related content under one heading, as it is only relevant to anyone interested in using the tool (and also easier to find and update if, for example, we add currency conversion to |
OK for sentence placement. |
Thanks! I'll merge this now, we can address the outstanding TO-DOs once #296 is done:
|
Fixes #210, Closes #216
General:
cost/index.md
to separate the OC4IDS and OCDS mappings, whilst maintaining the OCDS-OC4IDS-IDS relationshipSpecific mappings:
publicAuthority
field to OC4IDS mapping.sector
is an array of strings, butprojectSector
is a single code from an open codelist, andadditionalClassifications
has a structure to accommodate other codelists (and in OCDS for PPPs,planning/project/sector
is aClassification
object as well). Also updates example.json with example additionalClassification.Notes:
Contract
object incontracts
' rather than 'If there is more than one contract'. However, we can use the shorter form if you think it is clear enough.Discussion:
TO-DO:
convert-to-oc4ids
(the combination of italics and code formatting in the CSV files doesn't render correctly)