IATI / D-Portal

http://d-portal.org/
Other
30 stars 23 forks source link

Graphs - default to 2023? #686

Open stevieflow opened 2 days ago

stevieflow commented 2 days ago

Currently, these graphs default to all years:

d-portal-11-20-2024_04_23_PM

Now we have the CRS removed https://github.com/IATI/D-Portal/issues/655 - is it feasible to default these graphs to a shorter time period --: eg 2023 (as the most recently completed year)?

I appreciate that might not always work for all views (some publishers may not have an recent data, for example) but it would be more helpful than an aggregate on all years

cc/ @isabelbirds

xriss commented 2 days ago

We might want to decide on how best to pick the year? I'd recommend the year from 18 months back.

So first half of 2024 we would show 2022 and second half it would be 2023. Since that gives publishers two quarters of 2024 to publish 2023 data ( and 1 quarter of the financial year ) So there should be data for the year when we start to display it.

IE: the year switches at start of July to the previous year.

Does that sound like a plan?

NB: We do have a custom settings of when a year "starts" which we should also take into account when displaying this?

stevieflow commented 2 days ago

Thanks @xriss - much appreciated

Yes - broadly agree with your proposal, and not going to offer a counter one!

I think if we can move away from All Years, now that CRS is gone, it'll be great

As we know, a fiscal year can have a different start dates - I think the default for d-portal is currently 1 Jan, with the option to then change it? If so, then let's keep with that here

stevieflow commented 5 hours ago

So first half of 2024 we would show 2022 and second half it would be 2023. Since that gives publishers two quarters of 2024 to publish 2023 data ( and 1 quarter of the financial year ) So there should be data for the year when we start to display it.

@xriss back when the CRS data was current, I think d-portal did do something along these lines?