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

[ACA-3416] Add Claim/Release actions on adf task form #5753

Merged

Conversation

sivakumar414ram
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)

https://issues.alfresco.com/jira/browse/ACA-3416
Task form does not have claim/release actions as part the form actions.

What is the new behaviour?

Now if the Task been shared among the candidate, task form will show claim/release actions based on the task status

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2020

Codecov Report

Merging #5753 into develop will increase coverage by 0.84%.
The diff coverage is 94.44%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #5753      +/-   ##
===========================================
+ Coverage    83.76%   84.60%   +0.84%     
===========================================
  Files          945      203     -742     
  Lines        26858     7244   -19614     
  Branches      3775     1035    -2740     
===========================================
- Hits         22497     6129   -16368     
+ Misses        3234      807    -2427     
+ Partials      1127      308     -819     
Impacted Files Coverage Δ
...k-list/components/task-form/task-form.component.ts 92.56% <92.85%> (+2.84%) ⬆️
...-list/components/task-form/claim-task.directive.ts 93.10% <93.10%> (ø)
...ist/components/task-form/unclaim-task.directive.ts 93.10% <93.10%> (ø)
.../lib/task/directives/claim-task-cloud.directive.ts 91.42% <100.00%> (ø)
...d/src/lib/task/directives/task-directive.module.ts 100.00% <100.00%> (ø)
...ib/task/directives/unclaim-task-cloud.directive.ts 96.66% <100.00%> (ø)
...ces/src/lib/form/form-custom-outcomes.component.ts 100.00% <100.00%> (ø)
lib/process-services/src/lib/form/form.module.ts 100.00% <100.00%> (ø)
lib/process-services/src/lib/form/public-api.ts 100.00% <100.00%> (ø)
.../lib/task-list/components/task-header.component.ts 93.65% <100.00%> (+3.79%) ⬆️
... and 774 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b161cea...db2e461. Read the comment docs.

lib/process-services/src/lib/form/form.component.ts Outdated Show resolved Hide resolved
@@ -117,6 +117,14 @@ export class TaskFormComponent implements OnInit {
@Output()
cancel = new EventEmitter<void>();

/** Emitted when the task is claimed. */
@Output()
claim: EventEmitter<any> = new EventEmitter<any>();
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure this logic should be in the form

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's call them as the one in the cloud

Copy link
Contributor

@mauriziovitale mauriziovitale left a comment

Choose a reason for hiding this comment

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

check the comments

@sivakumar414ram sivakumar414ram force-pushed the dev-siva-ACA-3416-add-claim-release-actions-on-task-form branch from cd7718f to a3ecd11 Compare June 9, 2020 12:09
@mauriziovitale mauriziovitale merged commit ea62b1e into develop Jun 10, 2020
@mauriziovitale mauriziovitale deleted the dev-siva-ACA-3416-add-claim-release-actions-on-task-form branch June 10, 2020 09:43
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.

None yet

5 participants