Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared View is empty when using sort rule #1524

Open
ISC-PRO opened this issue Jan 6, 2025 · 3 comments
Open

Shared View is empty when using sort rule #1524

ISC-PRO opened this issue Jan 6, 2025 · 3 comments
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working

Comments

@ISC-PRO
Copy link

ISC-PRO commented Jan 6, 2025

Steps to reproduce

  1. Create a simple list "HowTo" with only column "ToDo", Type "Text"

  2. Create a view "Items" of table "HowTo" with default, selected columns

  3. Create two items one minute apart: "ToDo1" AND "ToDo2"

  4. Change the view "Items" and add sorting with rule "Erstellt am" by DESC
    -> RESULT: ToDo2, ToDo1

  5. Share the view with person or group
    -> RESULT: view "Items" is empty for all shared users

  6. Delete (as owner) the sort rule for view "Items"
    -> RESULT: view "Items" is visible to all shared users

Expected behavior

Show all items with sorting (DESC) for all shared users.
For the own user the view correct.

Actual behavior

The view is empty for all shared users.

Tables app version

0.8.1

Browser

Edge 131.0.2903.99

Operating system

Nextcloud Hub 9 (30.0.2)

@ISC-PRO ISC-PRO added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Jan 6, 2025
@blizzz blizzz added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Jan 6, 2025
@blizzz
Copy link
Member

blizzz commented Jan 6, 2025

@ISC-PRO thanks for filing this report. I can reproduce it.

Browser console output for: [Vue warn]: Error in render: "TypeError: sortCols[0] is null"
[Vue warn]: Error in render: "TypeError: sortCols[0] is null"

found in

---> <CustomTable> at src/shared/components/ncTable/sections/CustomTable.vue
       <NcTable> at src/shared/components/ncTable/NcTable.vue
         <TableView> at src/modules/main/partials/TableView.vue
           <CustomView> at src/modules/main/sections/View.vue
             <MainWrapper> at src/modules/main/sections/MainWrapper.vue
               <View> at src/pages/View.vue
                 <NcAppContent>
                   <NcContent>
                     <App> at src/App.vue
                       <Root> tables-main.js:136846:21
    warn https://nc.zara/master/apps-repos/tables/js/tables-main.js:136846
    logError https://nc.zara/master/apps-repos/tables/js/tables-main.js:135284
    globalHandleError https://nc.zara/master/apps-repos/tables/js/tables-main.js:135280
    handleError https://nc.zara/master/apps-repos/tables/js/tables-main.js:135247
    _render https://nc.zara/master/apps-repos/tables/js/tables-main.js:134926
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    Watcher https://nc.zara/master/apps-repos/tables/js/tables-main.js:135675
    mountComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136131
    $mount https://nc.zara/master/apps-repos/tables/js/tables-main.js:141014
    init https://nc.zara/master/apps-repos/tables/js/tables-main.js:136648
    createComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:138808
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138762
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    patch https://nc.zara/master/apps-repos/tables/js/tables-main.js:139312
    _update https://nc.zara/master/apps-repos/tables/js/tables-main.js:136004
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    Watcher https://nc.zara/master/apps-repos/tables/js/tables-main.js:135675
    mountComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136131
    $mount https://nc.zara/master/apps-repos/tables/js/tables-main.js:141014
    init https://nc.zara/master/apps-repos/tables/js/tables-main.js:136648
    createComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:138808
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138762
    patch https://nc.zara/master/apps-repos/tables/js/tables-main.js:139312
    _update https://nc.zara/master/apps-repos/tables/js/tables-main.js:136004
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    Watcher https://nc.zara/master/apps-repos/tables/js/tables-main.js:135675
    mountComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136131
    $mount https://nc.zara/master/apps-repos/tables/js/tables-main.js:141014
    init https://nc.zara/master/apps-repos/tables/js/tables-main.js:136648
    createComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:138808
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138762
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    patch https://nc.zara/master/apps-repos/tables/js/tables-main.js:139312
    _update https://nc.zara/master/apps-repos/tables/js/tables-main.js:136004
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    Watcher https://nc.zara/master/apps-repos/tables/js/tables-main.js:135675
    mountComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136131
    $mount https://nc.zara/master/apps-repos/tables/js/tables-main.js:141014
    init https://nc.zara/master/apps-repos/tables/js/tables-main.js:136648
    createComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:138808
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138762
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    updateChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:139057
    patchVnode https://nc.zara/master/apps-repos/tables/js/tables-main.js:139150
    patch https://nc.zara/master/apps-repos/tables/js/tables-main.js:139318
    _update https://nc.zara/master/apps-repos/tables/js/tables-main.js:136008
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    run https://nc.zara/master/apps-repos/tables/js/tables-main.js:135761
    flushSchedulerQueue https://nc.zara/master/apps-repos/tables/js/tables-main.js:136364
    nextTick https://nc.zara/master/apps-repos/tables/js/tables-main.js:135382
    flushCallbacks https://nc.zara/master/apps-repos/tables/js/tables-main.js:135304
Browser console output for: TypeError: sortCols[0] is null
TypeError: sortCols[0] is null
    sortColumn https://nc.zara/master/apps-repos/tables/js/tables-main.js:16630
    sort https://nc.zara/master/apps-repos/tables/js/tables-main.js:16630
    getSearchedAndFilteredAndSortedRows https://nc.zara/master/apps-repos/tables/js/tables-main.js:16641
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    evaluate https://nc.zara/master/apps-repos/tables/js/tables-main.js:135786
    computedGetter https://nc.zara/master/apps-repos/tables/js/tables-main.js:137776
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:137570
    render https://nc.zara/master/apps-repos/tables/js/tables-main.js:27338
    _render https://nc.zara/master/apps-repos/tables/js/tables-main.js:134923
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    Watcher https://nc.zara/master/apps-repos/tables/js/tables-main.js:135675
    mountComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136131
    $mount https://nc.zara/master/apps-repos/tables/js/tables-main.js:141014
    init https://nc.zara/master/apps-repos/tables/js/tables-main.js:136648
    createComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:138808
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138762
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    patch https://nc.zara/master/apps-repos/tables/js/tables-main.js:139312
    _update https://nc.zara/master/apps-repos/tables/js/tables-main.js:136004
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    Watcher https://nc.zara/master/apps-repos/tables/js/tables-main.js:135675
    mountComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136131
    $mount https://nc.zara/master/apps-repos/tables/js/tables-main.js:141014
    init https://nc.zara/master/apps-repos/tables/js/tables-main.js:136648
    createComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:138808
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138762
    patch https://nc.zara/master/apps-repos/tables/js/tables-main.js:139312
    _update https://nc.zara/master/apps-repos/tables/js/tables-main.js:136004
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    Watcher https://nc.zara/master/apps-repos/tables/js/tables-main.js:135675
    mountComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136131
    $mount https://nc.zara/master/apps-repos/tables/js/tables-main.js:141014
    init https://nc.zara/master/apps-repos/tables/js/tables-main.js:136648
    createComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:138808
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138762
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    patch https://nc.zara/master/apps-repos/tables/js/tables-main.js:139312
    _update https://nc.zara/master/apps-repos/tables/js/tables-main.js:136004
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    Watcher https://nc.zara/master/apps-repos/tables/js/tables-main.js:135675
    mountComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136131
    $mount https://nc.zara/master/apps-repos/tables/js/tables-main.js:141014
    init https://nc.zara/master/apps-repos/tables/js/tables-main.js:136648
    createComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:138808
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138762
    createChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:138881
    createElm https://nc.zara/master/apps-repos/tables/js/tables-main.js:138785
    updateChildren https://nc.zara/master/apps-repos/tables/js/tables-main.js:139057
    patchVnode https://nc.zara/master/apps-repos/tables/js/tables-main.js:139150
    patch https://nc.zara/master/apps-repos/tables/js/tables-main.js:139318
    _update https://nc.zara/master/apps-repos/tables/js/tables-main.js:136008
    updateComponent https://nc.zara/master/apps-repos/tables/js/tables-main.js:136114
    get https://nc.zara/master/apps-repos/tables/js/tables-main.js:135685
    run https://nc.zara/master/apps-repos/tables/js/tables-main.js:135761
    flushSchedulerQueue https://nc.zara/master/apps-repos/tables/js/tables-main.js:136364
    nextTick https://nc.zara/master/apps-repos/tables/js/tables-main.js:135382
    flushCallbacks https://nc.zara/master/apps-repos/tables/js/tables-main.js:135304
tables-main.js:135288:17

@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Jan 6, 2025
@blizzz blizzz moved this from 🧭 Planning evaluation (don't pick) to 📄 To do (~10 entries) in 📝 Office team Jan 6, 2025
@blizzz
Copy link
Member

blizzz commented Jan 6, 2025

And indeed the server replies with sort data as null 🤔

[
  {
    "id": 175,
    "tableId": 881,
    "title": "Items",
    "description": "",
    "emoji": "😇",
    "ownership": "User1",
    "createdBy": "User1",
    "createdAt": "2025-01-06 13:27:28",
    "lastEditBy": "User1",
    "lastEditAt": "2025-01-06 13:28:57",
    "columns": [
      2920
    ],
    "sort": [
      null
    ],
    "isShared": true,
    "favorite": false,
    "onSharePermissions": {
      "read": true,
      "create": true,
      "update": true,
      "delete": false,
      "manage": false
    },
    "hasShares": false,
    "rowsCount": 3,
    "ownerDisplayName": "User1",
    "filter": []
  }
]

So looks like a backend thing.

@ISC-PRO
Copy link
Author

ISC-PRO commented Jan 6, 2025

Thanks for the quick reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working
Projects
Status: 📄 To do (~10 entries)
Development

No branches or pull requests

2 participants