jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
572 stars 122 forks source link

Sorting issue on WebDAV documents view #2396

Closed dtaimanov closed 8 months ago

dtaimanov commented 11 months ago
  1. Create several WebDAV documents
  2. Sort by last modified date: изображение
  3. Click on v1 of middle document and add new version in dialog
  4. Click Refresh: documents sorted correctly
  5. Click "<-" in breadcrums line

    ER: documents sorted correctly AR: documents sorted randomly

изображение
fractal3000 commented 11 months ago
  1. Open dialog with WebDAV files.

  2. Create several documents.

  3. Try to sort documents by "name" or by "lock state" or by "versioning" column. (May be this problem is also actual for the "Last modified by" field) ER: Sorting is performed AR: Sorting is not performed

  4. Open dialog with WebDAV files.

  5. Create document.

  6. Open "Manage versions" dialog

  7. Add several versions with different file names

  8. Try to sort version items by "Version", "Name" column(may be by "Author" column too) ER: Sorting is performed AR: Sorting is not performed

fractal3000 commented 10 months ago

Acceptance tests for new functionality (test case in description of the ticket is not actual) Preconditions

Create project Install WebDAV add-on. Open WebDAV documents screen Add some collections Add some documents Add some collections Add some documents (in order collection and documents have not consecuent time of creation) Add some collections and documents by logged in as different user. Select any collection and create some collections and documents in it with the same method as descibed above. Note, that names of collections and document should demonstrate level of hiearchy. Repeat this for the next level of hiearchy and for other collections

Select minimum pagination limit

At first time count of the elements on the root of hiearchy and in the different collections should be less than pagination limit.

Disable versioning for the parth of the documents on the different levels Lock some documents

Disable versioning on some documents

TC0 Check pagination options ER 10, 25, 50, 100 items should be appeared(25 is default value)

TC1 Sorting in Hiearchy mode

  1. Try to sort documents by any field on the root level ER when sorting is disabled documents should be sorted by name, but categories should be at first. When sorting by any column is enabled elements should be sorted by selected field with selected order and by name in addition to selected sorting, but in any case categories should be at the top of the list.

  2. Try to sort documents by any field on the second and third level of document hierarchy ER: same

  3. Repeat 1 and 2 steps with clicking "Refresh" button

  4. Create more documents and categories in order its count should be more then selected pagination limit

  5. Repeat 1-3 steps

TC2.1 Pagination reset when changing current collection (current parent object for the list)

TC 3 Creating new document or collection and click refresh button

TC4 navigation by "Bread crumbs"

TC5 navigation by "Path" field TC5.1 navigation by "Path" field(empty) TC5.2 navigation by "Path" field(invalid URI) TC5.3 navigation by "Path" field(document not found) TC5.3 navigation by "Path" field(check localization messages)

TC6 Sorting on Version list screen(sorting by "name" should be disabled) Default sorting should be by "Version" field in reverse order

TC6 Search and sorting(without and with pagination) TC6 Search and sorting with refresh button

TC7 Saving filter and applying filter

TC8 Going by URL link with search parameters https://localhost:8443/webdav/webdavdocuments?genericFilterCondition=property%3Acollection_equal_true

TC9 Moving from search mode to previous context by clicking the arrow

TC10 Moving from search mode to any collection by clicking on it TC11 Moving from search mode to any collection by clicking on "Reset filter button"

ТС12 Pagination should be reseted when moving from search mode to hiearchy mode and vise versa.

fractal3000 commented 9 months ago

Implemented for "master" in commit https://github.com/jmix-framework/jmix-premium/commit/c52af01278e856d25ee593ed0ff94425ca7021ae

rusiaikinat commented 9 months ago

Reopened The table with values does not take up the entire screen 2560х1440 image

rusiaikinat commented 9 months ago
  1. Sorting : It works partially image

  2. Sorting document version : It works

  3. Sorting after search : See point 1

  4. Search : It works partially image

  5. Saving filter: It works

fractal3000 commented 9 months ago

Reverted from release 2.1

syncro commented 8 months ago

currently sort by Document name (for files) is unable to be fixed and requires data sensitive rework with migrations provided

rusiaikinat commented 8 months ago

Documents uploaded earlier are not sorted correctly image

list and order of text files image

Gavrilov-Ivan commented 8 months ago

As mentioned before there is a known issue with sorting by file name - it's impossible to fix now and requires additional research and rework. Are there any other issues besides this one? Sorting by another columns?