opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 896 forks source link

integrating Jalali (shamsi/ Iranian) calendar #4405

Open nevahid opened 1 year ago

nevahid commented 1 year ago

Is your feature request related to a problem? Please describe. The dates and calendar are in Gregorian calendar, thus it can't be used in countries which use other calendars such as Jalali (Shamsi) calendar. Describe the solution you'd like It would be great if we can choose between different calendar types in dashboard. I don't know if this can be achieved by changing locale and if yes, how can this be done? Describe alternatives you've considered I tried running a pipeline with setting locale to "fa_IR", but didn't succeed. maybe some changes in dashboard can give us what we are looking for. for example if there is a middleware in dashboard backend that converts date from a calendar type to the other (conversion is really easy and there are many node libraries for that), But i still think changing opensearch server calendar type is better. Additional context if anybody have any other solution, I would be really thankful. @anirudha

dblock commented 1 year ago

I think this is a Dashboards request, moved.

wbeckler commented 1 year ago

What do you mean by "changing opensearch server calendar type"?

nevahid commented 1 year ago

Hi, sorry for late reply, Currently Gregorian calendar system is used in opensearch, but we use Jalaali Calendar system which is different in months' name and days. For example today is 2nd of 7 in Gregorian calendar, but in Jalaali it is 11th of 4. We want to show our jalaali formatted date strings in a timeseries. is it possible? for example ranges of days in each month

wbeckler commented 1 year ago

This sounds like a useful feature. Would you be up for trying to contribute a PR?

nevahid commented 1 year ago

Yes i would like to, but i don't know where to start.

wbeckler commented 1 year ago

The best way to start is to do an easier issue by looking for an issue marked "good first issue" in this repository. Then look at the developer guide materials to set up a local environment and try to tackle the first issue. Once you have that under your belt it would be easier to design a solution to the calendar issue.