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

Resolve Task Progression and Error in Guided Templates #1514

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

sanjacornelius
Copy link
Contributor

@sanjacornelius sanjacornelius commented Jan 18, 2024

This PR addresses an ongoing bug in CI servers related to task progression and error handling in Guided Templates. The issues included a 422 error indicating the task was already closed, replication of closed tasks displaying, and incorrect task statuses (In Progress instead of Completed) upon completion.

Cause

  1. The component was not automatically progressing to the next task.
  2. An error was thrown from Screen Builder upon closing the first task, with an unknown getScreenEndpoint message.

Solution

  1. Removed the initial getNextTask method and allow the component progresses correctly.
  2. Updated the conditional to check if the getScreenEndpoint variable exists, preventing an error and allowing the component to progress.

How to Test

  1. Install the latest Send Email Connector.
  2. Symlink the latest Screen Builder.
  3. Run php artisan processmaker:sync-guided-templates.
  4. Navigate to Processes > Guided Templates.
  5. Select a guided template.
  6. Click 'Start Now' and complete the process (use 'Skip' if needed).
  7. Verify no 422 errors occur.
  8. Confirm that previously closed tasks do not replicate.
  9. After completing the process, check Requests to ensure it has a status of 'Completed'.

Related Tickets & Packages

ci:next
ci:processmaker:observation/FOUR-13331

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

Copy link

processmaker-sonarqube bot commented Jan 18, 2024

Copy link

cypress bot commented Jan 18, 2024

Passing run #265 ↗︎

0 267 14 0 Flakiness 0

Details:

Merge 547d1d5 into 325908f...
Project: screen-builder Commit: 1e80726a68 ℹ️
Status: Passed Duration: 06:52 💡
Started: Jan 18, 2024 11:24 PM Ended: Jan 18, 2024 11:31 PM

Review all test suite changes for PR #1514 ↗︎

@eiresendez eiresendez self-requested a review January 19, 2024 16:47
@ryancooley ryancooley merged commit bf84163 into next Jan 20, 2024
21 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants