opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
81 stars 62 forks source link

Configurable workqueues #7073

Open rikukissa opened 1 month ago

rikukissa commented 1 month ago

Implement country config configurable workqueues. Configuration should leverage advanced searches search parameters

https://opencrvsworkspace.slack.com/archives/GHCFF9M6X/p1717000313286379

Dev tasks

[
  {
    "slug": "in-progress", 
    "name": "In progress",
    "required_scopes": ["view-in-progress-records"],
    "query": { "registrationStatuses": ['IN_PROGRESS'] },
  },
  {
    "slug": "correction-requested", 
    "name": "Correction requested",
    "required_scopes": ["view-correction-requests"],
    "query": { registrationStatuses: ['CORRECTION_REQUESTED'] }
  }
]
naftis commented 1 month ago

@jpye-finch

Currently we fetch all workqueues at the same time when the app is loaded.

Is there value in that or could we load each of them dynamically when that workqueue page is opened? This could simplify the workqueue loading, just an thought at this point though. If you don't have internet you can see the workqueues you have opened earlier.

jpye-finch commented 1 month ago

Yes it could work. Would the experience not be same as we have to day? When you navigate between workqueues after login and initial load. You see the latest state of the workqueue whilst we check for changes.

As long as you can still see your assigned records so you can work offline. We are good imo

euanmillar commented 1 month ago

This is also functional and based on experiment ascertain estimate.