irods-contrib / metalnx-web

Metalnx Web Application
https://metalnx.github.io/
BSD 3-Clause "New" or "Revised" License
36 stars 36 forks source link

collection browser columns not sorting when clicked to (re)sort #223

Closed trel closed 3 years ago

trel commented 3 years ago

Similar to #9 but also related to #52

Possibly due to https://github.com/irods-contrib/metalnx-web/commit/de1dcd123328bb0eeaabc575758cf6cf442c543c

Current logs when clicking on a single 'sort icon'...

2021-04-23 17:05:21 INFO  CollectionListingUtils:784 - listDataObjectsUnderPath for: ObjStat [absolutePath=/tempZone/home/rods, objectPath=, objectType=COLLECTION, dataId=10011, checksum=, ownerName=rods, ownerZo
ne=tempZone, objSize=0, createdAt=Wed Jan 13 21:11:09 GMT 2021, modifiedAt=Fri Apr 23 13:20:37 GMT 2021, specColType=NORMAL, collectionPath=, cacheDir=, cacheDirty=false, replNumber=0, standInGeneratedObjStat=fal
se]
2021-04-23 17:05:21 INFO  CollectionListingUtils:717 - queryForPathAndReturnResultSet for: /tempZone/home/rods
2021-04-23 17:05:21 INFO  IRODSGenQueryExecutorImpl:176 - executeIRODSQueryWithPagingInZone()
2021-04-23 17:05:21 INFO  IRODSGenQueryExecutorImpl:182 - query: IRODSGenQueryFromBuilder [irodsGenQueryBuilderData=IRODSGenQueryBuilderQueryData [selectFields=[Select field
   selectFieldColumnName:COLL_NAME
   selectFieldNumericTranslation:501
   selectFieldType:FIELD
   selectFieldSource:DEFINED_QUERY_FIELD, Select field
   selectFieldColumnName:DATA_NAME
   selectFieldNumericTranslation:403
   selectFieldType:FIELD
   selectFieldSource:DEFINED_QUERY_FIELD, Select field
   selectFieldColumnName:DATA_CREATE_TIME
   selectFieldNumericTranslation:419
   selectFieldType:FIELD
   selectFieldSource:DEFINED_QUERY_FIELD, Select field
   selectFieldColumnName:DATA_MODIFY_TIME
   selectFieldNumericTranslation:420
   selectFieldType:FIELD
   selectFieldSource:DEFINED_QUERY_FIELD, Select field
   selectFieldColumnName:DATA_ID
   selectFieldNumericTranslation:401
   selectFieldType:FIELD
   selectFieldSource:DEFINED_QUERY_FIELD, Select field
   selectFieldColumnName:DATA_SIZE
   selectFieldNumericTranslation:407
   selectFieldType:FIELD
   selectFieldSource:DEFINED_QUERY_FIELD, Select field
   selectFieldColumnName:DATA_REPL_NUM
   selectFieldNumericTranslation:404
   selectFieldType:FIELD
   selectFieldSource:DEFINED_QUERY_FIELD, Select field
   selectFieldColumnName:DATA_OWNER_NAME
   selectFieldNumericTranslation:411
   selectFieldType:FIELD
   selectFieldSource:DEFINED_QUERY_FIELD, Select field
   selectFieldColumnName:DATA_OWNER_ZONE
   selectFieldNumericTranslation:412
   selectFieldType:FIELD
   selectFieldSource:DEFINED_QUERY_FIELD], conditions=[GenQueryBuilderCondition
         selectFieldSource:DEFINED_QUERY_FIELD
         selectFieldNumericTranslation:501
         selectFieldColumnName:COLL_NAME
         operator:EQUAL
         value:'/tempZone/home/rods'], orderByFields=[], distinct=true, upperCase=false, computeTotalRowCount=true]]
2021-04-23 17:05:21 INFO  GenQueryProcessor:85 - continuation value: 0
2021-04-23 17:05:21 INFO  GenQueryProcessor:95 - total records:14
2021-04-23 17:05:21 INFO  QueryResultProcessingUtils:57 - rows returned from iRODS query: 14
2021-04-23 17:05:21 INFO  GenQueryProcessor:116 - auto closing result set
2021-04-23 17:05:21 INFO  GenQueryProcessor:145 - closeResults()
2021-04-23 17:05:21 INFO  GenQueryProcessor:151 - no results to close, ignore
2021-04-23 17:05:21 INFO  CollectionServiceImpl:855 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  CollectionServiceImpl:869 - mapListingEntryToDataGridCollectionAndDataObject()
2021-04-23 17:05:21 INFO  HttpResponseHandlerInterceptor:52 - postHandle()

Note the empty... orderByFields=[] in:

   selectFieldSource:DEFINED_QUERY_FIELD], conditions=[GenQueryBuilderCondition
         selectFieldSource:DEFINED_QUERY_FIELD
         selectFieldNumericTranslation:501
         selectFieldColumnName:COLL_NAME
         operator:EQUAL
         value:'/tempZone/home/rods'], orderByFields=[], distinct=true, upperCase=false, computeTotalRowCount=true]]