Skip to content

Clarify trigger event context #2965

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

Merged
merged 10 commits into from
Jun 29, 2022
Merged

Clarify trigger event context #2965

merged 10 commits into from
Jun 29, 2022

Conversation

p7nov
Copy link
Contributor

@p7nov p7nov commented Jun 20, 2022

Rephrase paragraph about event context in Triggers for better understanding (feedback in #2538).
Resolves #2538

@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 20, 2022 11:15 Inactive
@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 20, 2022 11:22 Inactive
@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 20, 2022 11:35 Inactive
@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 20, 2022 11:49 Inactive
@p7nov p7nov requested a review from locker June 20, 2022 12:23
@locker locker requested review from alyapunov and removed request for locker June 20, 2022 12:35
@p7nov p7nov requested a review from Korablev77 June 21, 2022 05:55
@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 22, 2022 05:48 Inactive
from it (such as `os.exit() <http://www.lua.org/manual/5.1/manual.html#pdf-os.exit>`_
or :doc:`/reference/reference_lua/box_txn_management/rollback`), the behavior
is undefined.
* Triggers must work within the event context. This means that their functions

Choose a reason for hiding this comment

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

their functions

Я думаю правильнее говорить тело функции и/или реализация: "... their implementation should not...". Или "This means that function implementing trigger".

event context

Я так понимаю основной вопрос был здесь: не совсем понятно что это. Я бы написал, что тут не стоит изменять глобальное состояние программы, то есть работать только с переменными, которые передаются в сам триггер.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for clarification. Rephrased the text.

@p7nov p7nov requested a review from Korablev77 June 27, 2022 05:29
@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 27, 2022 05:30 Inactive
@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 27, 2022 05:41 Inactive
@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 27, 2022 05:54 Inactive
@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 27, 2022 05:55 Inactive
@p7nov p7nov removed the request for review from alyapunov June 27, 2022 07:22
@p7nov p7nov assigned p7nov and unassigned alyapunov Jun 27, 2022
@Korablev77
Copy link

Вроде ок, но я бы еще кому-то дал почитать

@p7nov p7nov requested a review from patiencedaur June 28, 2022 12:59
Copy link
Contributor

@patiencedaur patiencedaur left a comment

Choose a reason for hiding this comment

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

Language-related suggestions.

Co-authored-by: Dia Patience Daur <[email protected]>
@github-actions github-actions bot temporarily deployed to branch-gh-2538-triggers June 29, 2022 08:53 Inactive
@p7nov p7nov merged commit 5fe0ba8 into latest Jun 29, 2022
@p7nov p7nov deleted the gh-2538-triggers branch June 29, 2022 10:27
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.

[2pt] feedback: Триггеры
4 participants