workfloworchestrator / example-orchestrator-ui

Example orchestrator UI based on the orchestrator-ui-library
2 stars 0 forks source link

"Show all X" shows nothing #48

Open Sparrow1029 opened 1 month ago

Sparrow1029 commented 1 month ago

Not sure if this is the right place to post this issue, or if orchestrator-ui-library would be better...

When using the v2 UI and viewing the metadata page, subscription page, etc, setting the dropdown for number of rows to show to "Show all <...>" results in no rows being displayed.

Selecting any other number of rows works correctly

Screenshot of "Show 10 rows" Screenshot 2024-08-01 at 10 06 08 AM

"Show all" does not seem to work.

Screenshot of "show all rows" Screenshot 2024-08-01 at 10 06 55 AM

The log snippet below results from switching the selected amount of rows in the dropdown. They are from the backend, since the dev console in browser & frontend logs don't show anything relevant, as far as I can tell.

Logs ```text 2024-08-01 16:11:17 [debug ] resolve_resource_types() called [orchestrator.graphql.resolvers.resource_type] filter=[] range=[0, 10] sort=[GraphqlSort(field='resourceType', order=)] 2024-08-01 16:11:17 [debug ] Generated query loaders [orchestrator.graphql.utils.get_query_loaders] query_loaders=['ORM Path[Mapper[ResourceTypeTable(resource_types)] -> ResourceTypeTable.product_blocks -> Mapper[ProductBlockTable(product_blocks)]]'] query_paths=['product_blocks.description', 'product_blocks.name', 'product_blocks.product_block_id', 'product_blocks.status', 'product_blocks.created_at', 'product_blocks.end_date', 'page_info.end_cursor', 'page_info.has_next_page', 'page_info.has_previous_page', 'page_info.start_cursor', 'page_info.total_items', 'page_info.sort_fields', 'page_info.filter_fields', 'resource_type_id', 'resource_type', 'description'] root_model= 2024-08-01 16:11:17 [info ] 192.168.128.1:40280 - "POST /api/graphql HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:18 [debug ] Authentication disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:18 [debug ] Authorization disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:18 [debug ] resolve_resource_types() called [orchestrator.graphql.resolvers.resource_type] filter=[] range=[0, 10] sort=[GraphqlSort(field='resourceType', order=)] 2024-08-01 16:11:18 [debug ] Generated query loaders [orchestrator.graphql.utils.get_query_loaders] query_loaders=['ORM Path[Mapper[ResourceTypeTable(resource_types)] -> ResourceTypeTable.product_blocks -> Mapper[ProductBlockTable(product_blocks)]]'] query_paths=['product_blocks.description', 'product_blocks.name', 'product_blocks.product_block_id', 'product_blocks.status', 'product_blocks.created_at', 'product_blocks.end_date', 'page_info.end_cursor', 'page_info.has_next_page', 'page_info.has_previous_page', 'page_info.start_cursor', 'page_info.total_items', 'page_info.sort_fields', 'page_info.filter_fields', 'resource_type_id', 'resource_type', 'description'] root_model= 2024-08-01 16:11:18 [debug ] Authentication disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:18 [debug ] Authorization disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:18 [debug ] resolve_workflows() called [orchestrator.graphql.resolvers.workflow] filter=[Filter(field='target', value='create')] range=[0, 1000000] sort=None 2024-08-01 16:11:18 [debug ] Generated query loaders [orchestrator.graphql.utils.get_query_loaders] query_loaders=['ORM Path[Mapper[WorkflowTable(workflows)] -> WorkflowTable.products -> Mapper[ProductTable(products)]]'] query_paths=['products.product_type', 'products.product_id', 'products.name', 'name'] root_model= 2024-08-01 16:11:18 [info ] 192.168.128.1:40296 - "POST /api/graphql HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:18 [info ] 192.168.128.1:40306 - "POST /api/graphql HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:18 [info ] 192.168.128.1:40280 - "GET /api/processes/status-counts HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:18 [info ] 192.168.128.1:40312 - "GET /api/translations/en-GB HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:18 [info ] 192.168.128.1:40298 - "GET /api/settings/status HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:20 [debug ] Authentication disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:20 [debug ] Authorization disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:20 [debug ] resolve_resource_types() called [orchestrator.graphql.resolvers.resource_type] filter=[] range=[0, 0] sort=[GraphqlSort(field='resourceType', order=)] 2024-08-01 16:11:20 [debug ] Generated query loaders [orchestrator.graphql.utils.get_query_loaders] query_loaders=['ORM Path[Mapper[ResourceTypeTable(resource_types)] -> ResourceTypeTable.product_blocks -> Mapper[ProductBlockTable(product_blocks)]]'] query_paths=['product_blocks.description', 'product_blocks.name', 'product_blocks.product_block_id', 'product_blocks.status', 'product_blocks.created_at', 'product_blocks.end_date', 'page_info.end_cursor', 'page_info.has_next_page', 'page_info.has_previous_page', 'page_info.start_cursor', 'page_info.total_items', 'page_info.sort_fields', 'page_info.filter_fields', 'resource_type_id', 'resource_type', 'description'] root_model= 2024-08-01 16:11:20 [info ] 192.168.128.1:40312 - "POST /api/graphql HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:21 [info ] 192.168.128.14:47482 - "GET /api/products HTTP/1.1" 307 [uvicorn.access] 2024-08-01 16:11:21 [info ] 192.168.128.14:47482 - "GET /api/products/ HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:22 [debug ] Authentication disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:22 [debug ] Authorization disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:22 [debug ] resolve_resource_types() called [orchestrator.graphql.resolvers.resource_type] filter=[] range=[0, 0] sort=[GraphqlSort(field='resourceType', order=)] 2024-08-01 16:11:22 [debug ] Generated query loaders [orchestrator.graphql.utils.get_query_loaders] query_loaders=['ORM Path[Mapper[ResourceTypeTable(resource_types)] -> ResourceTypeTable.product_blocks -> Mapper[ProductBlockTable(product_blocks)]]'] query_paths=['product_blocks.description', 'product_blocks.name', 'product_blocks.product_block_id', 'product_blocks.status', 'product_blocks.created_at', 'product_blocks.end_date', 'page_info.end_cursor', 'page_info.has_next_page', 'page_info.has_previous_page', 'page_info.start_cursor', 'page_info.total_items', 'page_info.sort_fields', 'page_info.filter_fields', 'resource_type_id', 'resource_type', 'description'] root_model= 2024-08-01 16:11:22 [info ] 192.168.128.1:40280 - "POST /api/graphql HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:22 [debug ] Authentication disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:22 [debug ] Authorization disabled [oauth2_lib.strawberry] OAUTH2_ACTIVE=False OAUTH2_AUTHORIZATION_ACTIVE=False 2024-08-01 16:11:22 [debug ] resolve_workflows() called [orchestrator.graphql.resolvers.workflow] filter=[Filter(field='target', value='create')] range=[0, 1000000] sort=None 2024-08-01 16:11:22 [debug ] Generated query loaders [orchestrator.graphql.utils.get_query_loaders] query_loaders=['ORM Path[Mapper[WorkflowTable(workflows)] -> WorkflowTable.products -> Mapper[ProductTable(products)]]'] query_paths=['products.product_type', 'products.product_id', 'products.name', 'name'] root_model= 2024-08-01 16:11:22 [info ] 192.168.128.1:40312 - "GET /api/settings/status HTTP/1.1" 200 [uvicorn.access] 2024-08-01 16:11:22 [info ] 192.168.128.1:40296 - "GET /api/processes/status-counts HTTP/1.1" 200 [uvicorn.access] ```
Sparrow1029 commented 1 month ago

Also I should say that this is on a branch of the backend where the celery worker is not yet functioning properly w/ websockets (There is an MR soon to fix that for our WFO implementation) -- the range[0, 0] may be from performing a page refresh -- but the range[0, 1000000] seems to imply that the graphql query should return all the rows...

Also, the URL query string shows

http://localhost:3000/metadata/resource-types?pageSize=0&pageIndex=0&sortBy=field-resourceType_order-ASC&queryString=

maybe pageSize=0 is contributing?