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 entities: use target instead of actionableBy #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

megan-dove
Copy link

This change was implemented to resolve the issue surrounding delegation in the Ethics product.
In Ethics, we use "targetApproverPerson" rather than the entity name as the state's actionableBy. In this case, we want to instead check M.target for the shared entity to allow delegation.

To test, add
feature std:configuration-data property: {"std_workflow:entity_shared_roles:use_target_for_entities": ["targetApproverPerson"]}
to ethics/hres_ethics/requirements.schema.

Upload to 9a55 (please let me know before you use the system).
Test application: https://dev9a55.infomanaged.co.uk/8v30y/ethics-application-eth2022-0165-

  • The Ethics Officers (as set on the University level) should be able to delegate and take over the task.
  • Please also check that the additional notification text is displaying correctly, e.g. 'This task was delegated to Julianna Dawidowicz by Samantha Davis.'.

@@ -29,6 +31,17 @@ var tableSharedRolesSelect = function(M, entityName) {
return q.length ? q[0] : null;
};

var replaceActionableByMaybe = function(M, actionableBy) {
if(USE_TARGET_FOR_ENTITIES.length) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will throw an exception is the config isn't defined. You should default it to [] on line 14 above to avoid this

Copy link
Member

@jennylouisew jennylouisew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - sorry, this was the wrong repo to make these changes in. You want https://github.com/haplo-org/haplo-standard-plugins-dev instead. Changes to standard plugins are made there and eventually migrated to here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants