这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dimaodnokoz
Copy link
Collaborator

@dimaodnokoz dimaodnokoz commented Jun 7, 2024

Switch for Dialog

  • Added in Dialog switch method to switch to new step and proceed at once
  • Added SwitchToAnotherStepException, which is thrown by switch method
  • Added catch of exception in DialogManager
  • Added switch to proceedConfiguredStep in Dialog and in advanced-dialogs.md
  • Added tests for all that:
    -- modified PassiveTestDialog to test switch and switch-in-ConfiguredSteps in DialogManagerTest.php
    -- moved test of afterLastStep-after-jump from DialogMangerTest.php to DialogTest.php

End function for Dialog

  • Modified end() function in Dialog to have the same result if called in last step and in some other step:
    --step complpeted
    -- all after step completed (afterEveryStep for any step, + afterLastStep for last step)
    -- dialog forgotten
  • Added test in DialogTest.php for that

…once. Added SwitchToAnotherStepException, which is thrown by switch function. Added catch of exception in DialogManager. Added switch to proceedConfiguredStep in Dialog and in advanced-dialogs.md. Added tests for all that: modified PassiveTestDialog to test switch and switch-in-ConfiguredSteps in DialogManagerTest.php, moved test of afterLastStep-after-jump from DialogMangerTest.php to DialogTest.php
…n last step and in some other step: step complpeted, all after step completed (afterEveryStep for any step, + afterLastStep for last step), dialog forgotten. Added test in DialogTest.php for that.
Copy link

@lptn lptn left a comment

Choose a reason for hiding this comment

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

looks good to me!

@lptn lptn merged commit 8cace9c into koot-labs:master Jun 22, 2024
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.

2 participants