P3-Core-Dev-Team / P3-Q-A

This repo is for tracking features
Other
0 stars 0 forks source link

Dell-User Preference updated with MM-dd-yyyy date format. Search critiera breadcrumb doesnt reflect that format and datefilter not working #75

Closed raniangamuthu closed 4 months ago

raniangamuthu commented 4 months ago

Login>update the date preference to be MM-dd-yyyy Search Form > Enter the date criteria using the calendar and the date format displayed as set in user preference.>Execute search>Search result page the breadcrumb still shows in yyyy-MM-dd format. Also, the date filter is not working as expected. Attached screenshots below: Screenshot 2024-02-11 202211 Screenshot 2024-02-11 202146 Screenshot 2024-02-11 202132

kilam005 commented 4 months ago

This issue has been informed to team. Work is in progress.

kilam005 commented 4 months ago

@raniangamuthu the changes are made and will be avaialble by tomorrow for deployment.

For Date format in breadcrumb Fix details the user preference was pushed to the breadcrumb area See references below

image image image


image image image


w.r.t Date filter not working RCA there was a code typo.

Fix details code typo was rectified. See references below image

raniangamuthu commented 4 months ago

Additionally, the sorting is not working when the preference is changed. image

kilam005 commented 4 months ago

@raniangamuthu Please check of the result column's configuration is marked as date. This seems to be query formatted date column and result column is configured as string

raniangamuthu commented 4 months ago

you are right Malik but i am not able to cast the string say 01/01/2024 to date type, looks like Trino limitation. Need some guidance here

kilam005 commented 4 months ago

@raniangamuthu

Can you give some clarity on the date column field and some sample data to understand the format.

Once I get these info, I can provide you query guidance

kilam005 commented 4 months ago

For your specific question on how to cast mm/dd/yyyy date you can use the below

date_parse('01/01/2024', '%m/%d/%Y')

The above function will return a timestamp value 2024-01-01 00:00:00.000

Using

date(date_parse('01/01/2024', '%m/%d/%Y')) should get you result as date ie. 2024-01-01

Give this a try and let me know if you need more assistance.

Udhayanila8 commented 4 months ago

Tested in 3.1.7 version also. Server : 192.168.56.172

Screenshots

image image image

kilam005 commented 4 months ago

As discussed with @raniangamuthu , user perference translation to date fiedls was patched. Extedning option to allow format selection will be adoped in next version release

Udhayanila8 commented 4 months ago

Tested in 2024.01.45313_P1 version in 146 server. image image

kilam005 commented 4 months ago

@raniangamuthu the fix is available in Effectv environment. Please check and give closure