Skip to content

Support time window in the past in the APIexposure of data in the past is added#60

Merged
jgarciahospital merged 8 commits intocamaraproject:mainfrom
gregory1g:support_past
Jan 28, 2025
Merged

Support time window in the past in the APIexposure of data in the past is added#60
jgarciahospital merged 8 commits intocamaraproject:mainfrom
gregory1g:support_past

Conversation

@gregory1g
Copy link
Contributor

What type of PR is this?

  • enhancement/feature

What this PR does / why we need it:

API definition is enhanced to support dates in the past as well as suggested in issue #51

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 4, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

sachinvodafone
sachinvodafone previously approved these changes Dec 18, 2024
Copy link
Collaborator

@bigludo7 bigludo7 left a comment

Choose a reason for hiding this comment

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

One very small fix and one request for clarification please :)
Except that look good for me.

@population_density_data_retrievePopulationDensity_24_timeframe_crosses_request_time
Scenario: Error 400 when startDate is set to a date in the past and the endDate is set to a date in the future
Given the request body property "$.startDate" is set to a date in the past
And the request body property "$.endDate" is set to a date in teh future
Copy link
Collaborator

Choose a reason for hiding this comment

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

date in teh --> date in the

and must have time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ
(i.e. which allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
The minimum startTime is the time of the request.
The minimum startTime must cover at least 3 months before the request time.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not clear for me (but perhaps this is my English).
Do we mean that request in the past must query information older than 3 months or the contrary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My idea was to declare a minimal time frame everyone must support. I.e. everyone who implements API must support 3 months, if someone exposes 1 year - its a bonus.

sachinvodafone
sachinvodafone previously approved these changes Jan 15, 2025
@jgarciahospital
Copy link
Collaborator

@gregory1g please check comments to move forward and close this PR

Copy link
Collaborator

@bigludo7 bigludo7 left a comment

Choose a reason for hiding this comment

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

LGTM

@jgarciahospital
Copy link
Collaborator

@gregory1g can you please confirm to move on with the RC creation?

gregory1g and others added 2 commits January 28, 2025 11:56
Co-authored-by: Jorge Garcia Hospital <129095857+jgarciahospital@users.noreply.github.com>
Copy link
Collaborator

@jgarciahospital jgarciahospital left a comment

Choose a reason for hiding this comment

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

LGTM

@jgarciahospital jgarciahospital merged commit 16f4aa0 into camaraproject:main Jan 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants