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

Review property requirements in Get Metrics schemas #345

Closed
nils-work opened this issue Oct 21, 2020 · 8 comments
Closed

Review property requirements in Get Metrics schemas #345

nils-work opened this issue Oct 21, 2020 · 8 comments

Comments

@nils-work
Copy link
Member

Description

Most of the properties in the Get Metrics response schema are marked as conditional but there are no conditions specified.
I expect many of these are intended to be mandatory.

Most of the sub-object properties are also conditional but that may relate to the period parameter of the endpoint specifying whether the CURRENT, HISTORIC (previous) or ALL values are being requested.

Properties in InvocationMetrics and AverageResponseMetrics are all conditional but the top-level objects in those schemas may be mandatory.

The RejectionMetrics properties are all optional which is different to the definitions for the other schemas which may also have only '0' values to report, if that is the reason behind their optionality (ErrorMetrics for example.)

Area Affected

ResponseMetricsList schema and sub-schemas.

Change Proposed

Clarify the requirements of the properties and update the schema documentation.

@CDR-API-Stream
Copy link
Collaborator

Hi @nils-work you are correct, and this issue is considered to be a documentation defect. An early draft of the data standards used to have a query parameter allowing specific metrics to be requested which was later removed however the conditionality at the object-level for the Metrics API response was not updated. This will be corrected in the current iteration.

The expectation has been that the DH will provide the full list of metrics when requested.

The field-level properties of the primary objects are conditional because they are based on the period query parameter and remain conditional.

@CDR-API-Stream CDR-API-Stream moved this from Full Backlog to Iteration Candidates in Data Standards Maintenance Mar 3, 2021
@CDR-API-Stream CDR-API-Stream moved this from Iteration Candidates to In Progress: Design in Data Standards Maintenance Mar 3, 2021
@CDR-API-Stream
Copy link
Collaborator

This fix has been staged for review here: https://github.com/ConsumerDataStandardsAustralia/standards-staging/tree/maintenance/345

@CDR-API-Stream CDR-API-Stream moved this from In Progress: Design to In Progress: Staging in Data Standards Maintenance Mar 17, 2021
@nils-work
Copy link
Member Author

Hi @CDR-API-Stream

The last line of this issue relates to the fields highlighted below in the RejectionMetricsV2 schema all being optional, which is different to the other object requirements.
It seems they should be a combination of mandatory and conditional -

image

@CDR-API-Stream
Copy link
Collaborator

Thank you @nils-work this is a documentation defect and will be corrected in the staged changes on standards-staging branch maintenance/345

@CDR-API-Stream
Copy link
Collaborator

These changes have been staged and they are available for review here: ConsumerDataStandardsAustralia/standards-staging@release/1.8.0...maintenance/345

@nils-work
Copy link
Member Author

Hi @CDR-API-Stream
Thank you for the updates, but it looks like there is a typo here for those last changes.
It should just be required

image

@CDR-API-Stream
Copy link
Collaborator

Thanks Nils. This was building fine as-is however it has been corrected.

@CDR-API-Stream CDR-API-Stream moved this from In Progress: Staging to Awaiting Chair Approval in Data Standards Maintenance Apr 19, 2021
@CDR-API-Stream CDR-API-Stream moved this from Awaiting Chair Approval to In Progress: Staging in Data Standards Maintenance Apr 19, 2021
@CDR-API-Stream CDR-API-Stream moved this from In Progress: Staging to Awaiting Chair Approval in Data Standards Maintenance Apr 19, 2021
@CDR-API-Stream
Copy link
Collaborator

The outcome of this issue has been approved by the Data Standards Chair for inclusion in v1.9.0. A change to the data standards was recommended.

This issue will be closed accordingly.

Data Standards Maintenance automation moved this from Awaiting Chair Approval to Done Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants