National-Forestry-Authority / forests

3 stars 1 forks source link

HQ / Field roles + PoC of approval workflow #86

Open pcambra opened 3 years ago

LeScruf commented 2 years ago

Provisional candidate roles are:

  1. System admin - front-end - for user and data management.
  2. HQ 1 - Senior Management (Directoral Level) -> view everything; edit nothing
  3. HQ 2 - Coordinator & Officers - view all themes across all Ranges for which they are responsible (see below)
  4. Range - Range Manager - view and edit their range only for all themes
  5. Sector - Sector Manager - view and edit their sector only for all themes, and view (only) the range
  6. Beat - Forest Supervisor - view the range in which they work only

Themes are: (we need to work out how to label / structure this, if it's straight-forward to do, otherwise ignore) CFM, inventory, natural forest management, plantations, land use / tree farmers, nurseries, survey, tourism

Job roles and users: Users should be assignable to any one of a pre-created list of job roles by the system admin: these assignments are transferable so that a user with specifc user details can be assigned to a specific organisational role, with them being able to be transferred and assigned a different organisational role (function, range) at any time. Users should therefore be identified by their organisational title / role on the system, which will change from time to time. Thus any log should be assigned to or reported by a user role, not by a personal user identity.

Cascading permissions - 2 can lock 3's edit rights who can lock 4's edit rights on any editable datum, as part of a work flow.

As part of this we should have a global log for all log ons/offs and all edits / creations / deletions to content.

pcambra commented 2 years ago

Land with types (Range > Sector > Beat?) and Sectors contain CFRs.

This relates to geospacial permissions https://github.com/Cambrico/farm_nfa/issues/28, how should we implement the permissions at that level, do we have a "derivative" per land entity? Do we have special fields on the Land type to manage permissions?

pcambra commented 2 years ago

https://github.com/Cambrico/farm_nfa/issues/184 is part of this too

LeScruf commented 2 years ago

For now - just focusing on Natural Forests (plantations to come):

For creating an allocated task (optionally as part of plans) for approval - the work flow should be able to start at any level Sector Manager -> Range Manager -> Coordinator Natural Forests -> Director Natural Forests Officer Natural Forests -> Coordinator -> Director Natural Forests

For creating a budget for an allocated task (optionally as part of plans) for approval - the work flow should be able to start at any level Sector Manager -> Range Manager -> Coordinator Natural Forests -> Director Natural Forests Officer Natural Forests -> Coordinator -> Director Natural Forests

For reporting on the stage of completion of the implementation of an allocated task Forest Supervisor (optional) -> Sector Manager -> Range Manager -> Coordinator Natural Forests

For the submission of reports Sector Manager -> Range Manager -> Coordinator Natural Forests Officer Natural Forests -> Coordinator -> Director Natural Forests

pcambra commented 2 years ago

Two workflows, one for plantations and one for natural forests. (Plan level)

Every log type created on a plan have a workflow.

@LeScruf the information we need is the following:

For Natural plans.

LeScruf commented 2 years ago

image

and

image

The work flow suggests that the follow fields in the management log form should be shifted to the top of the form and stand out clearly in the management log view list:

  1. Management activity - image
  2. Log status - image
  3. Flags - image

So these changes - if they make sense - would need to be created as separate issues.

pcambra commented 2 years ago

@LeScruf could you please clarify these items for me?

LeScruf commented 2 years ago

@pcambra - here we go:

  1. They are applied for different logs - i.e. either one can be applied for any natural forest log, but they can't obviously be both applied to the same log.
  2. I think we need to figure this out - perhaps under the user menu? Let's experiment?
  3. Yes - on the one hand I agree with with arbitrariness of percentage completions, but from a management perspective, an indication of how complete an activity is, seems to be of comfort (or alarm) and in popular demand. Again, let's experiment and see how it goes?
pcambra commented 2 years ago

@LeScruf

LeScruf commented 2 years ago

I think a drop down selection? Would that work? So either workflow can be used for any log, but of course not simultaneously? But there could be multiple instances of both workflows for the same log type tho - each a separate instance but for a different activity.

pcambra commented 2 years ago

@LeScruf I need to do some research on whether we can have a dynamic workflow per task/log, we can definitely do it per type of task (activity, harvest, planting...)

pcambra commented 2 years ago

Note: These are specific for natural forests.

Once you change a workflow, you can't change it, so this can be done on creation only.